[jboss-cvs] JBossAS SVN: r110269 - in projects/jboss-jca/trunk/doc/samples/helloworld/src: main/resources/META-INF and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jan 4 19:22:05 EST 2011


Author: jeff.zhang
Date: 2011-01-04 19:22:04 -0500 (Tue, 04 Jan 2011)
New Revision: 110269

Modified:
   projects/jboss-jca/trunk/doc/samples/helloworld/src/main/java/org/jboss/jca/samples/helloworld/HelloWorldConnectionManager.java
   projects/jboss-jca/trunk/doc/samples/helloworld/src/main/java/org/jboss/jca/samples/helloworld/HelloWorldManagedConnectionFactory.java
   projects/jboss-jca/trunk/doc/samples/helloworld/src/main/java/org/jboss/jca/samples/helloworld/HelloWorldManagedConnectionMetaData.java
   projects/jboss-jca/trunk/doc/samples/helloworld/src/main/resources/META-INF/ironjacamar.xml
   projects/jboss-jca/trunk/doc/samples/helloworld/src/test/java/org/jboss/jca/samples/helloworld/ConnectorTestCase.java
Log:
sample code adjust for doc format

Modified: projects/jboss-jca/trunk/doc/samples/helloworld/src/main/java/org/jboss/jca/samples/helloworld/HelloWorldConnectionManager.java
===================================================================
--- projects/jboss-jca/trunk/doc/samples/helloworld/src/main/java/org/jboss/jca/samples/helloworld/HelloWorldConnectionManager.java	2011-01-04 20:16:41 UTC (rev 110268)
+++ projects/jboss-jca/trunk/doc/samples/helloworld/src/main/java/org/jboss/jca/samples/helloworld/HelloWorldConnectionManager.java	2011-01-05 00:22:04 UTC (rev 110269)
@@ -53,7 +53,8 @@
     * @exception ResourceException Thrown if an error occurs
     */
    @Override
-   public Object allocateConnection(ManagedConnectionFactory mcf, ConnectionRequestInfo cri) throws ResourceException
+   public Object allocateConnection(ManagedConnectionFactory mcf, ConnectionRequestInfo cri) 
+      throws ResourceException
    {
       return null;
    }

Modified: projects/jboss-jca/trunk/doc/samples/helloworld/src/main/java/org/jboss/jca/samples/helloworld/HelloWorldManagedConnectionFactory.java
===================================================================
--- projects/jboss-jca/trunk/doc/samples/helloworld/src/main/java/org/jboss/jca/samples/helloworld/HelloWorldManagedConnectionFactory.java	2011-01-04 20:16:41 UTC (rev 110268)
+++ projects/jboss-jca/trunk/doc/samples/helloworld/src/main/java/org/jboss/jca/samples/helloworld/HelloWorldManagedConnectionFactory.java	2011-01-05 00:22:04 UTC (rev 110269)
@@ -46,7 +46,8 @@
    connectionFactoryImpl = HelloWorldConnectionFactoryImpl.class,
    connection = HelloWorldConnection.class,
    connectionImpl = HelloWorldConnectionImpl.class)
-public class HelloWorldManagedConnectionFactory implements ManagedConnectionFactory, ResourceAdapterAssociation
+public class HelloWorldManagedConnectionFactory 
+   implements ManagedConnectionFactory, ResourceAdapterAssociation
 {
 
    /** The serialVersionUID */

Modified: projects/jboss-jca/trunk/doc/samples/helloworld/src/main/java/org/jboss/jca/samples/helloworld/HelloWorldManagedConnectionMetaData.java
===================================================================
--- projects/jboss-jca/trunk/doc/samples/helloworld/src/main/java/org/jboss/jca/samples/helloworld/HelloWorldManagedConnectionMetaData.java	2011-01-04 20:16:41 UTC (rev 110268)
+++ projects/jboss-jca/trunk/doc/samples/helloworld/src/main/java/org/jboss/jca/samples/helloworld/HelloWorldManagedConnectionMetaData.java	2011-01-05 00:22:04 UTC (rev 110269)
@@ -40,7 +40,8 @@
    }
 
    /**
-    * Returns Product name of the underlying EIS instance connected through the ManagedConnection.
+    * Returns Product name of the underlying EIS instance connected 
+    * through the ManagedConnection.
     *
     * @return Product name of the EIS instance
     * @throws ResourceException Thrown if an error occurs
@@ -52,7 +53,8 @@
    }
 
    /**
-    * Returns Product version of the underlying EIS instance connected through the ManagedConnection.
+    * Returns Product version of the underlying EIS instance connected 
+    * through the ManagedConnection.
     *
     * @return Product version of the EIS instance
     * @throws ResourceException Thrown if an error occurs

Modified: projects/jboss-jca/trunk/doc/samples/helloworld/src/main/resources/META-INF/ironjacamar.xml
===================================================================
--- projects/jboss-jca/trunk/doc/samples/helloworld/src/main/resources/META-INF/ironjacamar.xml	2011-01-04 20:16:41 UTC (rev 110268)
+++ projects/jboss-jca/trunk/doc/samples/helloworld/src/main/resources/META-INF/ironjacamar.xml	2011-01-05 00:22:04 UTC (rev 110269)
@@ -1,10 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
-
 <ironjacamar>
-  
-   <connection-definitions>
-     <connection-definition class-name="org.jboss.jca.samples.helloworld.HelloWorldManagedConnectionFactory" 
-                            jndi-name="java:/eis/HelloWorld"/>
-   </connection-definitions>
-   
+  <connection-definitions>
+    <connection-definition 
+     class-name="org.jboss.jca.samples.helloworld.HelloWorldManagedConnectionFactory" 
+     jndi-name="java:/eis/HelloWorld"/>
+  </connection-definitions>
 </ironjacamar>

Modified: projects/jboss-jca/trunk/doc/samples/helloworld/src/test/java/org/jboss/jca/samples/helloworld/ConnectorTestCase.java
===================================================================
--- projects/jboss-jca/trunk/doc/samples/helloworld/src/test/java/org/jboss/jca/samples/helloworld/ConnectorTestCase.java	2011-01-04 20:16:41 UTC (rev 110268)
+++ projects/jboss-jca/trunk/doc/samples/helloworld/src/test/java/org/jboss/jca/samples/helloworld/ConnectorTestCase.java	2011-01-05 00:22:04 UTC (rev 110269)
@@ -60,11 +60,17 @@
    {
       ResourceAdapterArchive raa =
          ShrinkWrap.create(ResourceAdapterArchive.class, deploymentName + ".rar");
-      JavaArchive ja = ShrinkWrap.create(JavaArchive.class, UUID.randomUUID().toString() + ".jar");
-      ja.addClasses(HelloWorldResourceAdapter.class, HelloWorldManagedConnectionFactory.class, 
-         HelloWorldManagedConnection.class, HelloWorldManagedConnectionMetaData.class, 
-         HelloWorldConnectionManager.class, HelloWorldConnectionFactory.class, 
-         HelloWorldConnectionFactoryImpl.class, HelloWorldConnection.class, HelloWorldConnectionImpl.class);
+      JavaArchive ja = ShrinkWrap.create(JavaArchive.class, 
+         UUID.randomUUID().toString() + ".jar");
+      ja.addClasses(HelloWorldResourceAdapter.class, 
+         HelloWorldManagedConnectionFactory.class, 
+         HelloWorldManagedConnection.class, 
+         HelloWorldManagedConnectionMetaData.class, 
+         HelloWorldConnectionManager.class, 
+         HelloWorldConnectionFactory.class, 
+         HelloWorldConnectionFactoryImpl.class, 
+         HelloWorldConnection.class, 
+         HelloWorldConnectionImpl.class);
       raa.addLibrary(ja);
 
       return raa;



More information about the jboss-cvs-commits mailing list