glassfish
  1. glassfish
  2. GLASSFISH-18899

Implement support for Java EE platform default connection factory

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.0_b58
    • Component/s: jms
    • Labels:
      None

      Description

      This issue covers the implementation of Java EE 7 section EE.5.19 "Default JMS Connection Factory"

      For a definitive description of this requirement, see the Java EE 7 specification. In the Java EE 7 Early Draft this was:

      The Java EE Platform requires that a Java EE Product Provider provide a JMS provider in the operational environment (see Section EE.2.7.8, "Java™ Message Service (JMS)") . The Java EE Product Provider must also provide a preconfigured, JMS ConnectionFactory for use by the application in accessing this JMS provider.

      The Java EE Product Provider must make the default JMS connection factory accessible to the application under the JNDI name java:comp/defaultJMSConnectionFactory.

      The Application Component Provider or Deployer may explicitly bind a JMS ConnectionFactory resource reference to the default connection factory using the lookup element of the Resource annotation or the lookup-name element of the resource-ref deployment descriptor element. For example,

      @Resource(name="myJMSCF",
      lookup="java:comp/defaultJMSConnectionFactory")
      ConnectionFactory myJMScf;
      

      In the absence of such a binding for a JMS connection factory resource reference, the reference will map to a JMS connection factory for the product's JMS provider.
      For example, the following will map to a preconfigured connection factory for the product's default JMS provider:

      @Resource(name="myJMSCF")
      ConnectionFactory myJMScf;
      

        Issue Links

          Activity

          Hide
          David Zhao added a comment -

          Revision 55867.

          Show
          David Zhao added a comment - Revision 55867.
          Hide
          David Zhao added a comment -

          Revert for waiting 1 admin test case pass.

          Show
          David Zhao added a comment - Revert for waiting 1 admin test case pass.
          Hide
          David Zhao added a comment - - edited

          Re-commit it by revision 55940.

          Show
          David Zhao added a comment - - edited Re-commit it by revision 55940.
          Hide
          Nigel Deakin added a comment -

          According to the second "Java EE 7 EDR candidate" (EE.5.21) at
          http://java.net/projects/javaee-spec/downloads/download/JavaEE_Platform_Spec_EDR2_candidate.pdf the JNDI name of the platform default connection factory has changed to java:comp/DefaultJMSConnectionFactory. The implementation will need updating accordingly.

          Show
          Nigel Deakin added a comment - According to the second "Java EE 7 EDR candidate" (EE.5.21) at http://java.net/projects/javaee-spec/downloads/download/JavaEE_Platform_Spec_EDR2_candidate.pdf the JNDI name of the platform default connection factory has changed to java:comp/DefaultJMSConnectionFactory. The implementation will need updating accordingly.
          Hide
          David Zhao added a comment -

          Changed the jndi name to java:comp/DefaultJMSConnectionFactory accordingly.

          Show
          David Zhao added a comment - Changed the jndi name to java:comp/ D efaultJMSConnectionFactory accordingly.

            People

            • Assignee:
              David Zhao
              Reporter:
              Nigel Deakin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: