This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Call Jar pojo method from SAR" Watch "Call Jar pojo method from SAR" New topic

Call Jar pojo method from SAR

Anurag Bhatia

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)

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 classpath but that did not work either. How do I make the sar call the method correctly?

Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

I just answered this question in your forum thread

[My Blog] [JavaRanch Journal]
I agree. Here's the link:
subject: Call Jar pojo method from SAR
It's not a secret anymore!