[JAVAEETUTORIAL-262] Java EE 6 tutorial example clientsessionmdb add-resources glassfish-resources.xml gives resourcename.isnot.unique error Created: 27/Feb/14  Updated: 25/Mar/14  Resolved: 25/Mar/14

Status: Closed
Project: javaeetutorial
Component/s: examples
Affects Version/s: 6.0.8
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: amyk Assignee: Kim Haase
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


The workaround is to rename the connector-resource 'pool-name' and connector-connection-pool 'name' in the example's glassfish-resources.xml or use example from Java EE tutorial 7.0.3 for GlassFish 4

1. install GlassFish 4.0
2. svn co https://svn.java.net/svn/javaeetutorial~svn/branches/javaee-tutorial-6/examples
asadmin add-resources examples/jms/clientsessionmdb/setup/glassfish-resources.xml

Connector connection pool jms/ConnectionFactory created.
Administered object jms/Topic created.
Unable to create connector resource jms/ConnectionFactory. Constraints for this ConnectorResource configuration have been violated: on property [ ] violation reason [


Command add-resources executed successfully.

Comment by Kim Haase [ 25/Mar/14 ]

We recommend that with GlassFish 4 you follow the Java EE 7 Tutorial and use the Java EE 7 examples. The Java EE 6 examples are not guaranteed to work with GlassFish 4, only with GlassFish 3, which supports Java EE 6. The Java EE 6 examples are not being maintained.

Thank you for your interest in the Java EE platform.

Generated at Sat Oct 10 20:26:49 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.