[GLASSFISH-20638] Java EE 7 JMS definitions on GlassFish 4 are not created Created: 16/Jun/13 Updated: 20/Nov/14 Resolved: 17/Jun/13
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
this does not do anything , I had to create these jms artifacts manually in the admin console.
|Comment by David Zhao [ 17/Jun/13 ]|
Can you elaborate what do you mean 'this does not do anything'?
According to EE7 spec EE.5.18.5, the JMS Connection Factory and Destination resources may be defined in any of the JNDI namespaces described in Section EE.5.2.2, "Application Component Environment Namespaces".
for example, the name should be declared with namespaces:
By default, if environment entries declared without namespace, those will be created in the java:comp/env namespace.
So if you have the following definition, you can look it up from JNDI by "java:comp/env/MyConnectionFactory2".
BTW, please note that resources created by annotations will not show up in the admin console, they are only available in JNDI at runtime.
|Comment by biemond [ 17/Jun/13 ]|
I resolved it. When you use this "MyConnectionFactory2" as name , you can't find it in the java:comp, java:module, java:app, java:global jndi tree
So change it to
and do a lookup
So keep them in sync ( definition and inject) and never use without java:global or java:app etc.