Author |
Message
|
ammu |
Posted: Thu Apr 26, 2007 3:13 am Post subject: Help needed in implementation of java plug in node |
|
|
Apprentice
Joined: 26 Apr 2007 Posts: 25
|
i have downloaded the sample java plugin node project "Search Filter Node" available in the broker and tried running the project, it is working fine .
Now i have changed its java code and deployed but broker is still picking the old java code. can u plz suggest what mistake i am doing?
If i want to make the project from the scratch to implement the java plugin node project how should i start plz suggest.
From WBI help i am not able to figure out the correct sequence in which the java plugin node project is to be developed.
It would be of gr8 help if any body could suggest the correct order to be followed for developing the java plugin node.
thanx
ammu |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Thu Apr 26, 2007 3:52 am Post subject: Re: Help needed in implementation of java plug in node |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
|
Back to top |
|
 |
ammu |
Posted: Thu Apr 26, 2007 3:59 am Post subject: Re: Help needed in implementation of java plug in node |
|
|
Apprentice
Joined: 26 Apr 2007 Posts: 25
|
marcin.kasinski wrote: |
Have you restarted broker ? |
yes i have restarted the broker and also restarted the toolkit with -clean option . Still the old java code is running and the new one is not getting reflected in the plug-in functionality even after that.
i have checked the link and tried implementing it.
I created a Java projecet and and a plugin project, but Iam not able to interklink them both together there is some issue with the jar file creation.
So what could be done?
Last edited by ammu on Thu Apr 26, 2007 4:06 am; edited 1 time in total |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Thu Apr 26, 2007 4:05 am Post subject: Re: Help needed in implementation of java plug in node |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
Where have you placed newest version ?
Are sure you deployed correct version ? _________________ Marcin |
|
Back to top |
|
 |
ammu |
Posted: Thu Apr 26, 2007 6:52 pm Post subject: Re:Help needed in implementation of java plug in node |
|
|
Apprentice
Joined: 26 Apr 2007 Posts: 25
|
I have replaced the old code with the new code and the class file was generated . After that I deployed it and tried it in the same manner in which I have tried to deploy the sample plugin node. Its getting deployed and i did all the neccessary steps as required i.e. which is given along with the samples and tried executing it. But the output iam getting is for the old code. The new version is not getting reflected.
The main problem iam facing is with the jar file. Iam not able to generate the jar file. After making changes to the java code do we need to genmerate a new jar file for the plugin node? If so how can it be generated? |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 26, 2007 9:16 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You need to make sure of three things
1) That you are either recreating, refreshing, or otherwise renewing the contents of the bar file, including the jar file
2) That you are not receiving any errors in the deployment step, as shown in the Event Log/system log
3) That you are not seeing phantom execution groups. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
ammu |
Posted: Thu Apr 26, 2007 10:50 pm Post subject: Re |
|
|
Apprentice
Joined: 26 Apr 2007 Posts: 25
|
Steps what i have done.
1. i have taken a sample javaplugin node project and deployed this project it was running fine.
2. after that i have changed the java code of this project and deployed it, no error was there in the event log.
3. but when i tried running this it was reflecting the old java code.
4. I guess the jar file is the problem, i am not able to generate the jar file.
Can u plz suggest how to generate the jar file?
5. Can u plz suggest the step wise procedure to create a user define java node from the scratch?
6. i checked the wbi broker help and ibm site but not able to follow the procedure, as it is not given in the sequence it is confusing. |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Thu Apr 26, 2007 11:01 pm Post subject: Re: Re |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
|
Back to top |
|
 |
ammu |
Posted: Fri Apr 27, 2007 1:17 am Post subject: |
|
|
Apprentice
Joined: 26 Apr 2007 Posts: 25
|
I have read the following pages but still Iam not able to implement it.
Iam not able to identify the resources to be added into the jar file.
The problem is that even after deployment, the plug-in node is working with same old functionality. the o/p is not as per the changes what i have made in java code.
P.S: Plug-in node is already available. Its working fine. But i need to make a change to its functionality. When i change the java code as per my need, its not getting reflected in the o/p. This is our exact problem. |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Fri Apr 27, 2007 1:28 am Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
Please read
http://www-128.ibm.com/developerworks/websphere/library/techarticles/0504_belyavsky/0504_belyavsky.html
Make changes in project then ...
From this tutorial:
Quote: |
1. Switch to the Java Perspective.
2. Right-click on the src folder inside your node plug-in project and select Export….
3. Select JAR file. Click Next.
4. Verify that Export generated class files and resources is checked.
5. For the JAR file field, click Browse… and locate your node plug-in project. It is important to place the file in the project root, and name the file in the form <project-name>.jar, in your case, WebOrderPluginNode.jar. Click Save.
6. Click Finish. |
_________________ Marcin |
|
Back to top |
|
 |
ammu |
Posted: Wed May 02, 2007 12:25 am Post subject: |
|
|
Apprentice
Joined: 26 Apr 2007 Posts: 25
|
I tried exporting the jar files. But I was not able to see the required jar files and extensions required during exporting. |
|
Back to top |
|
 |
ammu |
Posted: Wed Jun 06, 2007 9:12 pm Post subject: |
|
|
Apprentice
Joined: 26 Apr 2007 Posts: 25
|
Thanks all, its done..  |
|
Back to top |
|
 |
|