You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Björn Danielsson <an...@apache.org> on 2012/06/27 16:51:58 UTC

CMS diff: Changing JMS Implementations

Clone URL (Committers only):
https://cms.apache.org/redirect?new=anonymous;action=diff;uri=http://openejb.apache.org/changing-jms-implementations.mdtext

Björn Danielsson

Index: /trunk/content/changing-jms-implementations.mdtext
===================================================================
--- /trunk/content/changing-jms-implementations.mdtext	(revision 1354295)
+++ /trunk/content/changing-jms-implementations.mdtext	(working copy)
@@ -28,12 +28,12 @@
 
 If the JMS implementation does not have a Resource Archive (`.rar` file) that defines a compliant Resource Adapter, the [Generic Resource Adapter for JMS](http://genericjmsra.java.net/) should work fine.
 
-To use this Adapter in TomEE or OpenEJB you'll need to create a `services-jar.xml` file and include that in a jar file and add it to the `<tomee.home>/lib/` directory.
+To use this Adapter in TomEE or OpenEJB you'll need to create a `service-jar.xml` file and include that in a jar file and add it to the `<tomee.home>/lib/` directory.
 Then you can declare `ConnectionFactory`, `Topic`, and `Queue` and more via the `tomee.xml` file.
 
 The one below should be considered boiler plate.  Updating it to contain some useful default values for your JMS implementation would be good.  These values can be overridden in the `tomee.xml` or `openejb.xml`
 
-Let's say that the following file lives in the jar at `META-INF/org.superbiz/services-jar.xml`
+Let's say that the following file lives in the jar at `META-INF/org.superbiz/service-jar.xml`
 
     <?xml version="1.0" encoding="UTF-8"?>
     <ServiceJar>
@@ -108,7 +108,7 @@
 Once this file is packed in a jar and added to the `<tomee.home>/lib` or  `<openejb.home>/lib` directory, you can 
 then declare and configure "instances" of these things in your `tomee.xml` or `openejb.xml` config file as follows:
 
-    <Resource id="My Generic Adapter" type="GenericJMSRA" provider="org.superbiz">
+    <Resource id="My Generic Adapter" type="GenericJMSRA" provider="org.superbiz:genericra">
     AdapterProperty1 PropertyValue1
     AdapterProperty2 PropertyValue2
     ...
@@ -116,7 +116,7 @@
 
 Or in properties like so:
 
-    myGenericAdapter = new://Resource?type=GenericJMSRA&provider=org.superbiz
+    myGenericAdapter = new://Resource?type=GenericJMSRA&provider=org.superbiz:genericra
     myGenericAdapter.AdapterProperty1 = PropertyValue1
     myGenericAdapter.AdapterProperty2 = PropertyValue2