File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Call Jar pojo method from SAR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Call Jar pojo method from SAR" Watch "Call Jar pojo method from SAR" New topic
Author

Call Jar pojo method from SAR

Anurag Bhatia
Greenhorn

Joined: May 12, 2009
Posts: 27
I have and 2 files deployed on my jboss-4.2.2.GA server -

100project.ear (which contains other jar files)
200mbean.sar

I have to call a method in a pojo (which in turn calls an EJB Session bean) from one of the jars residing in the ear file. If I call the method directly from the sar then I get a ClassNotFoundException (no suprises there). I tried adding the jar to be called to the sar manifest.mf classpath but that did not work either. How do I make the sar call the method correctly?

--Anurag
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10202
    
166

I just answered this question in your jboss.org forum thread http://community.jboss.org/thread/166246?tstart=0


[My Blog] [JavaRanch Journal]
 
Don't get me started about those stupid light bulbs.
 
subject: Call Jar pojo method from SAR