Quantcast
Channel: GlassFish Related Items on Java.net
Viewing all articles
Browse latest Browse all 1091

How to inject a JMS queue without mappedName?

$
0
0

Hello,

I've configured a JMS queue in GlassFish 4.1 JNDI using admin console. The following code works fine in my servlet:

@Resource(mappedName = "OutgoingTradeOrders")
Destination ordersQueue;

But I don't want to use mappedName as it may not work in other app servers. I tried the following syntax, but it gives me injection exception:

@Resource(lookup = "java:global/jms/OutgoingTradeOrders")
Destination ordersQueue;

Does GlassFisf 4.1 support global naming syntax?

Thanks
Yakov


Viewing all articles
Browse latest Browse all 1091