Skip to content

Commit 1effa91

Browse files
committed
Fix TempQueueTest for Glassfish
- lookup or mappedName must be used for injecting @JMSDestination with global name - otherwise deployment or JmsClient instantiation fails with NullPointerException
1 parent f8aa98a commit 1effa91

File tree

1 file changed

+1
-1
lines changed
  • jms/temp-destination/src/main/java/org/javaee7/jms/temp/destination

1 file changed

+1
-1
lines changed

jms/temp-destination/src/main/java/org/javaee7/jms/temp/destination/JmsClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@Stateless
1818
public class JmsClient {
1919

20-
@Resource(name = Resources.REQUEST_QUEUE)
20+
@Resource(lookup = Resources.REQUEST_QUEUE)
2121
Queue requestQueue;
2222

2323
@Inject

0 commit comments

Comments
 (0)