Ok. I found the answer in ejb3 trailblazer. The trail on JMX Service Objects talk about
how to annotate a service that depends on other services using @Depends tag. I guess the
same holds true for EJBs as well, i.e. if an EJB depends on a service, use @Depends tag.
I used following to make it work in my case:
| ClusterStatusMBean clusterStatusMbean = null;
|
| @Depends ("myapp:service=ClusterStatus")
| public void setClusterStatusMbean (ClusterStatusMBean mbean) {
| this.clusterStatusMbean = mbean;
| }
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006938#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...