On Thu, 2003-10-09 at 05:53, Neal Sanche wrote:
> I realize this message was posted a *long* time ago, but it never got
> a reply, and I am running into the same difficulty now. Is there any
> way to assign a JNDI name to an MDB, or supress the automatic
> assignment of a JNDI name so that conflicts like this don't occur?
>
Use something like the following in jboss.xml
<message-driven>
<ejb-name>test/mdb</ejb-name>
<local-jndi-name>somethingelse</local-jndi-name>
<destination-jndi-name>queue/testQueue</destination-jndi-name>
</message-driven>
The notional jndi-name is used to give the MDB an ObjectName in JMX.
Regards,
Adrian
> Cheers.
>
> -Neal
>
> On April 3, 2003 10:30 am, Weiqi Gao wrote:
> > In trying to deploy multiple ears that uses shared ejb-jars in the
> > same instance of JBoss, I'm using scoped deployment of ears and
> > modifying the global JNDI name of the session beans:
> > app1.ear (scoped)
> > shared-ejb.jar (JNDI name ejb/Foo -> ejb/Foo/app1)
> > non-shared-ejb.jar, etc.
> >
> > app2.ear (scoped)
> > shared-ejb.jar (JNDI name ejb/Foo -> ejb/Foo/app2)
> > non-shared-ejb.jar, etc.
> >
> > I encountered a problem with MDBs. I have an MDB in
> > shared-ejb.jar. There is no JNDI name for me to alter because it is
> > an MDB. However the deployer assigns a local JNDI name to it
> > anyway based on its ejb-name. My MDB named ejb/Bar occupies the
> > JNDI name /local/ejb/Bar upon deployment. And this causes a
> > conflict between app1.ear and app2.ear when deployed in the same
> > instance of JBoss.
> >
> > The only way out that I can see is to change the ejb-name of the
> > MDB. Are there other alternatives?
> >
> > Thanks for your help.
> >
> > --
> > Weiqi Gao
> > [EMAIL PROTECTED]
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: ValueWeb:
> > Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> > No other company gives more support or power for your dedicated
> > server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
--
xxxxxxxxxxxxxxxxxxxxxxxx
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user