javaee / javaee-spec

Java EE Platform Specification
https://javaee.github.io/javaee-spec
Other
389 stars 69 forks source link

Error in JMS resource definition examples #26

Closed glassfishrobot closed 9 years ago

glassfishrobot commented 11 years ago

In section EE.5.18.4 and EE.5.18.5 of the Java EE7 spec, the examples for the JMS definitions (in the deployment descriptor and using the annotations) are incorrect.

Both jms-connection-factory and jms-destination require to define a element while the examples use incorrectly the to define the JMS interface.

Same error applies to the annotations' examples.

Correct examples would be:

<jms-connection-factory>
   ...
   <name>java:app/MyJMSCF</name>
   <interface-name>javax.jms.QueueConnectionFactory</interface-name>
   ...
</jms-connection-factory>

@JMSConnectionFactoryDefinition(
      name="java:app/MyJMSCF",
      interfaceName="javax.jms.QueueConnectionFactory",
      resourceAdapter="myJMSRA"
)

<jms-destination>
   ...
   <name>java:app/MyJMSDestination</name>
   <interface-name>javax.jms.Queue</interface-name>
   ...
</jms-destination>

@JMSDestinationDefinition(
      name="java:app/MyJMSQueue",
      interfaceName="javax.jms.Queue",
      destinationName="myQueue1"
)
glassfishrobot commented 11 years ago

Reported by jmesnil_

glassfishrobot commented 9 years ago

ldemichiel said: These are correct in the final version of the Java EE 7 spec.

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAVAEE_SPEC-26

glassfishrobot commented 9 years ago

Marked as fixed on Tuesday, January 6th 2015, 5:45:21 pm