|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Calling Java Method in MB6.0 |
« View previous topic :: View next topic » |
Author |
Message
|
narendrach |
Posted: Tue Nov 22, 2005 1:33 pm Post subject: Calling Java Method in MB6.0 |
|
|
Voyager
Joined: 29 Jun 2005 Posts: 78
|
hi,
i am calling a java method from my ESQL in MB6.0 But i am getting a error such as class not found
but i had set my Java class File path in Environment Variables .
but still i am getting the same error
and even ..
i tried in another way but even it is also not working
i created a jar file of my java project and placed it in classes folder.
and when i tried to add my msgflow project to the bar File, i am able to see the jar automatically coming into my bar file .even though i could not able to get output _________________ Narendra CH |
|
Back to top |
|
 |
jbanoop |
Posted: Tue Nov 22, 2005 6:11 pm Post subject: |
|
|
Chevalier
Joined: 17 Sep 2005 Posts: 401 Location: SC
|
I am not sure of MB 6.0 .
Here is how I am doing it on 5.0.
For invoking the java method, after putting the class file in the classpath (personally I point to my java project in the workspace which saves me the trouble of jar ing it every time), you need to restart the broker.
It is not required that you add the jar/java class to the bar file.
Also it would be worth making sure that in ESQL you are giving the proper package , class n method name.
In case you have added the path to your system classpath variable you may also have to restart the m/c for the modified classpath to take effect.
Hope this helps.
Regards,
Anoop |
|
Back to top |
|
 |
JT |
Posted: Tue Nov 22, 2005 8:11 pm Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
Also, ensure that any dependent classes that may be referenced are included in the CLASSPATH. |
|
Back to top |
|
 |
wbibrk |
Posted: Wed Nov 23, 2005 7:31 am Post subject: |
|
|
Apprentice
Joined: 09 Jul 2005 Posts: 46
|
If it is Windows, remember to reboot as the system environment variables do
not take effect until a reboot |
|
Back to top |
|
 |
narendrach |
Posted: Thu Nov 24, 2005 12:48 pm Post subject: |
|
|
Voyager
Joined: 29 Jun 2005 Posts: 78
|
thanks for ur suggestions to all
i got the result it is working in6.0
set the classpath of the class file from CommandConsole of MB6.0
and even set them in environmental variables ..
no need to do a jar file _________________ Narendra CH |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|