javaeetutorial
  1. javaeetutorial
  2. JAVAEETUTORIAL-262

Java EE 6 tutorial example clientsessionmdb add-resources glassfish-resources.xml gives resourcename.isnot.unique error

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 6.0.8
    • Fix Version/s: None
    • Component/s: examples
    • Labels:
      None

      Description

      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 [

      {resourcename.isnot.unique}

      ]
      Command add-resources executed successfully.

        Activity

        Hide
        Kim Haase added a comment -

        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.

        Show
        Kim Haase added a comment - 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.

          People

          • Assignee:
            Kim Haase
            Reporter:
            amyk
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: