You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2014/09/18 23:33:34 UTC

[jira] [Commented] (OPENEJB-2104) JNDI queue name containing forward slash returns dynamic queue

    [ https://issues.apache.org/jira/browse/OPENEJB-2104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14139555#comment-14139555 ] 

Romain Manni-Bucau commented on OPENEJB-2104:
---------------------------------------------

Sorry don't get it, you defined jms/tzg/oneScheduler/jobQueue

you can declare:

{code}
<Resource id="jms/tzg/oneScheduler/jobQueue" type="javax.jms.Queue">
PhysicalName = tzg/oneScheduler/jobQueue
</Resource>
{code}

to change it

> JNDI queue name containing forward slash returns dynamic queue
> --------------------------------------------------------------
>
>                 Key: OPENEJB-2104
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-2104
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 4.7.0
>         Environment: TomEE 1.7.0
>            Reporter: Lou Aloia
>            Priority: Minor
>
> When performing a JNDI lookup for a queue as follows
> {{(Destination) ictx.lookup("java:comp/env/jms/tzg/oneScheduler/jobQueue");}}
> The queue returned is 
> {{queue://jms/tzg/oneScheduler/jobQueue}}
> instead of 
> {{queue://tzg/oneScheduler/jobQueue}}
> tomee.xml
> {{<Resource id="jms/tzg/oneScheduler/jobQueue" type="javax.jms.Queue"/>}}
> web.xml
> {quote}
> <resource-ref id="ResourceRef_4">
>       	<res-ref-name>jms/tzg/oneScheduler/jobQueue</res-ref-name>
>       	<res-type>javax.jms.Queue</res-type>
>       	<res-auth>Container</res-auth>
>       	<res-sharing-scope>Shareable</res-sharing-scope>
> </resource-ref>
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)