Theoretically yes, but resource-env-ref is an EJB2.0 spec addition that
has not been implemented yet. In the interim you would simply have to
use the global JNDI namespace:

new InitialContext().lookup("queue/StockQueue");

which is actually not as bad as it seems as Queues are administered objects that
have to be setup via a JMS provider mechanism and so you should always be able
to bind to the same location. I'll look at adding support for the resource-env-ref  
when I
fix an existing namespace issue.

----- Original Message ----- 
From: "Jason Dillon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 12, 2001 8:01 PM
Subject: Re: [JBoss-user] Using JMS resources (or other resources)


> Thanks... so would I use something like this:
> 
> <resource-env-ref>
>   <resource-env-ref-name>jms/StockQueue</resource-env-ref-name>
>   <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
> </resource-env-ref>
> 
> to get at the queue/topic information to use with the connection factory
> as configured below?
> 
> --jason
> 
> 



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to