-
1. Re: MBean dependant of Session Bean deploy HOW?
dimitris Oct 8, 2004 4:36 AM (in response to jivkoto)When a component (ear, ejb jar, war, ..) is deployed entries are created in the jboss.management.local domain,
e.g. I deployed jboss-media-entity-ejb.jar and I got (among others)
EJBModule=jboss-media-entity-ejb.jar,J2EEApplication=null,J2EEServer=Local,j2eeType=StatelessSessionBean,name=ejb/media/MediaEntityManager
So, one way to solve it, it to set a dependency on this MBean that represents a StatelessSessionBean in this case. -
2. Re: MBean dependant of Session Bean deploy HOW?
jivkoto Oct 8, 2004 8:05 AM (in response to jivkoto)Hi again,
sorry that being persistent but I can't fix it like this. Maybe I make same mistake. If you could help?
Here is what i write:
jboss.management.local:EJBModule=Test.jar,J2EEApplication=Test.ear,J2EEServer=Local,j2eeType=StatelessSessionBean,name=ejb/SObserver -
3. Re: MBean dependant of Session Bean deploy HOW?
jivkoto Oct 8, 2004 8:07 AM (in response to jivkoto)Here is it :
<depends>jboss.management.local:EJBModule=Test.jar,J2EEApplication=Test.ear,J2EEServer=Local,j2eeType=StatelessSessionBean,name=ejb/SObserver</depends>
-
4. Re: MBean dependant of Session Bean deploy HOW?
dimitris Oct 8, 2004 8:23 AM (in response to jivkoto)So what's the problem now? Does it complaint or still the dependency doesn't work?
Can you try to put instead a dependency on the EJB module as a whole, instead of the session bean? -
5. Re: MBean dependant of Session Bean deploy HOW?
jivkoto Oct 8, 2004 8:43 AM (in response to jivkoto)Every try is finishing like this:
15:40:06,843 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope ration 'checkIncompleteDeployments()' Cause: Incomplete Deployment listing: Packages waiting for a deployer: <none> Incompletely deployed packages: <none> MBeans waiting for classes: <none> MBeans waiting for other MBeans: [ObjectName: com.test.jmx:service=Observer state: CONFIGURED I Depend On: com.test.jmx:service=timer jboss.management.local:J2EEApplication=Test.ear,J2EEServer=Local,j2eeTyp e=EJBModule,name=Test.jar
-
6. Re: MBean dependant of Session Bean deploy HOW?
dimitris Oct 8, 2004 9:01 AM (in response to jivkoto)It has to do with that particular MBean being in the "Registered" rather than "Started" state.
Can you try a difference dependency, like:
jboss.j2ee:module=jboss-media-entity-ejb.jar,service=EjbModule
Do you see this domain: jboss.j2ee? (or this is on jboss4.0+ only?) -
7. Re: MBean dependant of Session Bean deploy HOW?
jivkoto Oct 8, 2004 9:22 AM (in response to jivkoto)It seems to work now
16:16:44,890 INFO [EjbModule] Started jboss.j2ee:module=TestEJB.jar,service=EjbModule 16:16:45,171 INFO [Observer] [:startObserverTimer] ObserverTimer with initial d elay 0 and delay 5000 is now started! 16:16:45,171 DEBUG [Observer] [:start] -------------------------Just started!--- ------------------
My MBean starts after module is started.
Thank you very much for the help.
P.S. I will see if I could make the dependence up to the session bean anyway :)