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 » JavaCompute with external jar

Post new topic  Reply to topic Goto page Previous  1, 2
 JavaCompute with external jar « View previous topic :: View next topic » 
Author Message
jefflowrey
PostPosted: Fri Nov 24, 2006 8:13 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

All the jars in shared-classes should be loaded.

You should not need to use the classloader.

Is it possible that this second jar file is a composite jar - that is it contains embedded jar files?

I think the classloader doesn't handle that.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
accosun
PostPosted: Fri Nov 24, 2006 8:24 am    Post subject: Reply with quote

Apprentice

Joined: 20 Dec 2001
Posts: 45
Location: Moscow

jefflowrey wrote:

Is it possible that this second jar file is a composite jar - that is it contains embedded jar files?


No, this jar contains only *.class files.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
accosun
PostPosted: Mon Nov 27, 2006 9:55 am    Post subject: SOLVED! Reply with quote

Apprentice

Joined: 20 Dec 2001
Posts: 45
Location: Moscow

Hi!

Problem with external JAR has been solved!

It was connected with particular threads and classloaders. I added this line from InfoCenter to my code:

Thread.currentThread.setContextClassLoader(this.getClass().getClassLoader());

and everything is OK now. With external JARs in shared-classes it works fine.
Thank you for support!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » JavaCompute with external jar
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.