Two things I am seeing that I would appreciate you considering when
you in there looking at the deployment stuff are the following:
1. An mbean in a sar that uses EJBs included in the sar as an ejb jar
with the following depends statement:
<server>
<mbean code="org.jboss.test.perf.test.PerfTest"
name="jboss.test:service=PerfTest">
<!-- We need the DefaultDS DataSource connection for entity beans -->
<depends>jboss:service=ConnectionFactoryLoader,name=DefaultDS</depends>
</mbean>
</server>
fails on startup of the server because the entity beans are deployed before
the
DefaultDS is available.
2. Reploying the sar causes a ClassCastException even though the previous
ejb jar and sar are undeployed first. The ServiceLibraries must not be
getting cleaned up correctly.
+++ testTimings()
testTimings failed:
java.lang.ClassCastException
at
com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemo
teObject.java:296)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
at org.jboss.test.perf.test.PerfTest.testTimings(PerfTest.java:94)
at org.jboss.test.perf.test.PerfTest.runTests(PerfTest.java:52)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at com.sun.jdmk.comm.HtmlInvokePage.buildPage(HtmlInvokePage.java:240)
at
com.sun.jdmk.comm.HtmlRequestHandler.processGetRequest(HtmlRequestHandler.ja
va:325)
at
com.sun.jdmk.comm.HtmlRequestHandler.processRequest(HtmlRequestHandler.java:
152)
at com.sun.jdmk.comm.HtmlRequestHandler.doRun(HtmlRequestHandler.java:79)
at com.sun.jdmk.comm.ClientHandler.run(ClientHandler.java:84)
at java.lang.Thread.run(Thread.java:484)
This code will be checked into the testsuite shortly and I'll file bug
reports for
these two issues. I haven't tried deploying the code as an ear that includes
a sar.
----- Original Message -----
From: "David Jencks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 8:51 AM
Subject: Re: [JBoss-dev] Mbean dependancies
> On 2002.02.12 11:13:35 -0500 Dave Smith wrote:
> > OK. So a did a little digging and tried this ..
> >
> > <depends>jboss.j2ee:service=EJB,jndiName=cadex/CompanyInfo</depends>
> >
> > So it then delays startup but once the EJB is deployed it does not start
> > the mbean. I'm I getting closer?
> >
>
> That's the mbean to use, but is your mbean doesn't start that means these
> ejb-mbeans aren't participating in dependency management yet.
>
> I'll try to take a look this afternoon.
>
> david jencks
> >
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development