Emmanuel Sciara wrote:
>
> Hi guys,
>
> Here is the following scenario:
>
> I want to deploy a session bean.
>
> I want my ejb jar to contain only the session bean and
> my utility classes to be in a separate utility jar.
> This utility jar is in the jboss lib directory, and
> still my ejb jar will not deploy. What do i do wrong?
>
> answer: my jar *has* to be in the lib/ext directory,
> and not in the lib as the doc suggest it being
> possible.
>
> Also, this utility jar is not hot-deployed. Apparently
> the JBoss server has to be restarted to pick the
> library, and in this case if anything is changed in my
> utility classes after a release, it means I cannot
> hot-deploy my application. Or would one not proceed
> this way?
The way you would normally do this, I think, is to put both the ejb-jar
and the jar of you utility classes in an EAR with some sort of classpath
manifest. This is described in the J2EE spec.
Hot-deployment works through classloaders. If your classes are loaded by
a non-disposable classloader then they can't be thrown away and
reloaded.
Toby.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]