mbeans - EJB Lookup inside SAR -


my ear contains ejb file , sar file. cannot lookup on deployed ejb bean inside of mbean contained in sar file.

i getting namenotfoundexception. how can lookup in ejb2x home interface inside mbean service (deployed via sar file on ear)????

i have solved issue below:

1) mbean not locate que ejb in jndi tree because not referenced in mbean declaration dependency. so, did this:

<mbean code="app.schedulermanager" name="company:service=schedulermanager">    <depends>jboss.j2ee:module=my-ejb-jar.jar,service=ejbmodule</depends> </mbean> 

2) declared in meta-inf/jboss.xml of ejb jar dependency can found:

<jmx-name>jboss.j2ee:module=my-ejb-jar.jar,service=ejbmodule</jmx-name> 

Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -