glassfish
  1. glassfish
  2. GLASSFISH-20730

Can't use global JNDI name for JMS destination via admin console

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When I try to specify a global JNDI name like java:global/jms/pointsQueue for a JMS destination via the admin console, I get this error message:

      Unable to create administered object java:global/jms/pointsQueue2. Constraints for this AdminObjectResource configuration have been violated: on property [ ] violation reason [ resource name cannot contain ':' character

      Unless I am missing something, this has to be a serious bug since most people should now be using portable JNDI names?

        Activity

        Hide
        martinandersson.com added a comment -

        This applies just as well trying to setup JDBC resources.

        Show
        martinandersson.com added a comment - This applies just as well trying to setup JDBC resources.
        Hide
        martinandersson.com added a comment -

        GlassFish administration guide says on page 12-13 about JDBC resources:

        "Because all JNDI names are in the java:comp/env subcontext, when specifying the
        JNDI name of a JDBC resource in the Administration Console, use only the jdbc/name
        format. For example, a payroll database might be specified as jdbc/payrolldb."

        Source: https://glassfish.java.net/docs/4.0/administration-guide.pdf

        GlassFish will not deploy my app if I min persistence.xml file declare a JTA datasource like so:

        <jta-data-source>java:comp/env/jdbc/myDataSource</jta-data-source>

        Just as I did in the admin GUI console, I have to declare it like so:

        <jta-data-source>jdbc/myDataSource</jta-data-source>

        Meaning we cannot use any other scopes in our JNDI name?

        Show
        martinandersson.com added a comment - GlassFish administration guide says on page 12-13 about JDBC resources: "Because all JNDI names are in the java:comp/env subcontext, when specifying the JNDI name of a JDBC resource in the Administration Console, use only the jdbc/name format. For example, a payroll database might be specified as jdbc/payrolldb." Source: https://glassfish.java.net/docs/4.0/administration-guide.pdf GlassFish will not deploy my app if I min persistence.xml file declare a JTA datasource like so: <jta-data-source>java:comp/env/jdbc/myDataSource</jta-data-source> Just as I did in the admin GUI console, I have to declare it like so: <jta-data-source>jdbc/myDataSource</jta-data-source> Meaning we cannot use any other scopes in our JNDI name?

          People

          • Assignee:
            michael.y.chen
            Reporter:
            reza_rahman
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: