ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Help needed in implementation of java plug in node

Post new topic  Reply to topic
 Help needed in implementation of java plug in node « View previous topic :: View next topic » 
Author Message
ammu
PostPosted: Thu Apr 26, 2007 3:13 am    Post subject: Help needed in implementation of java plug in node Reply with quote

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
View user's profile Send private message
marcin.kasinski
PostPosted: Thu Apr 26, 2007 3:52 am    Post subject: Re: Help needed in implementation of java plug in node Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Have you restarted broker ?

Interesting link about User-defined nodes :

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/topic/com.ibm.etools.mft.eb.doc/as24883_.htm#as24883_
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
ammu
PostPosted: Thu Apr 26, 2007 3:59 am    Post subject: Re: Help needed in implementation of java plug in node Reply with quote

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
View user's profile Send private message
marcin.kasinski
PostPosted: Thu Apr 26, 2007 4:05 am    Post subject: Re: Help needed in implementation of java plug in node Reply with quote

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
View user's profile Send private message Visit poster's website
ammu
PostPosted: Thu Apr 26, 2007 6:52 pm    Post subject: Re:Help needed in implementation of java plug in node Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 26, 2007 9:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
ammu
PostPosted: Thu Apr 26, 2007 10:50 pm    Post subject: Re Reply with quote

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
View user's profile Send private message
marcin.kasinski
PostPosted: Thu Apr 26, 2007 11:01 pm    Post subject: Re: Re Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Have you red :

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/topic/com.ibm.etools.mft.doc/as10002_.htm

and

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/topic/com.ibm.etools.mft.doc/as24997_.htm

These are detailed instructions how to deploy Java user defined node.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
ammu
PostPosted: Fri Apr 27, 2007 1:17 am    Post subject: Reply with quote

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
View user's profile Send private message
marcin.kasinski
PostPosted: Fri Apr 27, 2007 1:28 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
ammu
PostPosted: Wed May 02, 2007 12:25 am    Post subject: Reply with quote

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
View user's profile Send private message
ammu
PostPosted: Wed Jun 06, 2007 9:12 pm    Post subject: Reply with quote

Apprentice

Joined: 26 Apr 2007
Posts: 25

Thanks all, its done..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Help needed in implementation of java plug in node
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.