-
1. Call EJB method from SAR
jaikiran May 5, 2011 7:33 AM (in response to ab_99)Check the "classpath" and "codebase" attributes of the "server" element of your jboss-service.xml of the .sar. That's what controls the classpath of the .sar. For more details check the JBOSS_HOME/docs/jboss-service_4_2.dtd
-
2. Call EJB method from SAR
ab_99 May 10, 2011 3:47 AM (in response to jaikiran)@Jaikiran: Thanks a lot for the reply.
I looked into the dtd but I could not still find a way to specify a jar in the ear file onto the sar classpath. The docs say -
"
<!-- The codebase attribute specifies the base URL from which the jars or classes
are loaded from. If the codebase is '.' then it is equal to the mbean deployment URL.
Otherwise, it is resolved as a path spec relative to the serverHomeURL (e.g., file:/jboss-3.2.0)
using the URL ctor URL(serverHomeURL, codebase)
Examples:
<classpath codebase='.' archives='util.jar' />
<classpath codebase='http://classloader.dot.com' archives='*' />
<classpath codebase="lib" archives="*"/>
-->"
I tried adding the following classpath
<classpath codebase='.' archives='util.jar' />
where util.jar is inside the 100project.ear which is in the deploy directory with the 200mbean.sar