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 » Calling Java Method in MB6.0

Post new topic  Reply to topic
 Calling Java Method in MB6.0 « View previous topic :: View next topic » 
Author Message
narendrach
PostPosted: Tue Nov 22, 2005 1:33 pm    Post subject: Calling Java Method in MB6.0 Reply with quote

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
View user's profile Send private message Yahoo Messenger
jbanoop
PostPosted: Tue Nov 22, 2005 6:11 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
JT
PostPosted: Tue Nov 22, 2005 8:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
wbibrk
PostPosted: Wed Nov 23, 2005 7:31 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
narendrach
PostPosted: Thu Nov 24, 2005 12:48 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Calling Java Method in MB6.0
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.