[jboss-jira] [JBoss JIRA] Commented: (JBMESSAGING-1667) MBeans cannot have heirarchical names

Howard Gao (JIRA) jira-events at lists.jboss.org
Tue Jun 1 23:47:51 EDT 2010


    [ https://jira.jboss.org/browse/JBMESSAGING-1667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12533532#action_12533532 ] 

Howard Gao commented on JBMESSAGING-1667:
-----------------------------------------

Hi Justin,

I see why it worked. It is because a temporary destination is never registered with JNDI, so there is no JNDI bindings in the process of creating a temp destination. See DestinationJNDIMapper.registerDestination(). 
I think you can create a new Jira if this needs to be fixed. Thanks.

Howard



> MBeans cannot have heirarchical names
> -------------------------------------
>
>                 Key: JBMESSAGING-1667
>                 URL: https://jira.jboss.org/browse/JBMESSAGING-1667
>             Project: JBoss Messaging
>          Issue Type: Feature Request
>          Components: JMS Destination Manager
>    Affects Versions: 1.4.0.SP3.CP08, 1.4.4.GA
>         Environment: JBoss 5.1.0.GA
>            Reporter: Richard Kennard
>            Assignee: Howard Gao
>             Fix For: 1.4.0.SP3.CP09, 1.4.5.GA
>
>
> In JBoss 4.2.3.GA, it was possible to declare queues with 'heirarchical' names, for example:
> <mbean code="..." name="...,name=app1/emails">
> The forward slash in 'app1/emails' created a nested JNDI context of 'queue/app1/emails'. In JBoss 5.1.0.GA this no longer works. JBoss fails saying that the top-level context 'app1' does not exist. This is true, but JBoss should create it just-in-time.
> A workaround proposed on the forums is to use the 'JNDIName' attribute:
> <mbean code="..." name="...,name=emails">
>    <attribute name="JNDIName">app1/emails</attribute>
> This works from a JNDI perspective, but the mbean itself is still named just 'emails' leaving the potential for name clashes:
> <mbean code="..." name="...,name=emails">
>    <attribute name="JNDIName">app1/emails</attribute>
> <mbean code="..." name="...,name=emails">
>    <attribute name="JNDIName">app2/emails</attribute>
> In JBoss 4.2.3.GA it was possible to declare queue names safely nested within their own heirarchies to avoid the possibility of name clashes. It would be nice to have this in JBoss 5.1.0.GA too.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list