/ Published in: Java

In this example we see that the @Depends annotation contains the JMX name of the stateless bean that we are dependent upon.
For example: jboss.j2ee:ear=dummyEar.ear,jar=dummyJar.jar,name=DummySLSB,service=EJB3
consists of:
jboss.j2ee: # our domain
ear=dummyEar.ear #containing deployment unit
jar=dummyJar.jar # the application container
name=DummySLSB # the name of the service
service=EJB3 # the service type
To find out these values its best to look at http://localhost:8080/jmx-console/ when the jboss is up.
For example: jboss.j2ee:ear=dummyEar.ear,jar=dummyJar.jar,name=DummySLSB,service=EJB3
consists of:
jboss.j2ee: # our domain
ear=dummyEar.ear #containing deployment unit
jar=dummyJar.jar # the application container
name=DummySLSB # the name of the service
service=EJB3 # the service type
To find out these values its best to look at http://localhost:8080/jmx-console/ when the jboss is up.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
@Depends(value = "jboss.j2ee:ear=dummyEar.ear,jar=dummyJar.jar,name=DummySLSB,service=EJB3") @Service(objectName = "jboss:custom=DummyMDB") @Local(DummyIFC.class) public class DummyMDB implements DummyIFC { // your methods here }
Comments
