Issue Details (XML | Word | Printable)

Key: GLASSFISH-18899
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: David Zhao
Reporter: Nigel Deakin
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
glassfish

Implement support for Java EE platform default connection factory

Created: 13/Jul/12 02:46 PM   Updated: 07/Nov/12 06:20 PM   Resolved: 19/Oct/12 02:13 AM
Component/s: jms
Affects Version/s: 4.0
Fix Version/s: 4.0_b58

Time Tracking:
Not Specified

Issue Links:
Dependency
 

Tags: ee7platspec jms-2-implementation
Participants: David Zhao and Nigel Deakin


 Description  « Hide

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;


David Zhao added a comment - 10/Sep/12 08:09 AM

Revision 55867.


David Zhao added a comment - 11/Sep/12 11:38 AM

Revert for waiting 1 admin test case pass.


David Zhao added a comment - 13/Sep/12 06:50 AM - edited

Re-commit it by revision 55940.


Nigel Deakin added a comment - 17/Oct/12 04:27 PM

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.


David Zhao added a comment - 19/Oct/12 02:13 AM

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