[jboss-cvs] JBossAS SVN: r110678 - in projects/jboss-jca/trunk/doc: samples/helloworld/src/main/java/org/jboss/jca/samples/helloworld and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Feb 15 12:46:18 EST 2011


Author: jesper.pedersen
Date: 2011-02-15 12:46:17 -0500 (Tue, 15 Feb 2011)
New Revision: 110678

Modified:
   projects/jboss-jca/trunk/doc/samples/helloworld/
   projects/jboss-jca/trunk/doc/samples/helloworld/src/main/java/org/jboss/jca/samples/helloworld/HelloWorldConnectionFactoryImpl.java
   projects/jboss-jca/trunk/doc/userguide/en-US/modules/sample.xml
Log:
Actually use the connection manager when getting a connection


Property changes on: projects/jboss-jca/trunk/doc/samples/helloworld
___________________________________________________________________
Added: svn:ignore
   + build
target
lib
reports



Modified: projects/jboss-jca/trunk/doc/samples/helloworld/src/main/java/org/jboss/jca/samples/helloworld/HelloWorldConnectionFactoryImpl.java
===================================================================
--- projects/jboss-jca/trunk/doc/samples/helloworld/src/main/java/org/jboss/jca/samples/helloworld/HelloWorldConnectionFactoryImpl.java	2011-02-15 17:31:44 UTC (rev 110677)
+++ projects/jboss-jca/trunk/doc/samples/helloworld/src/main/java/org/jboss/jca/samples/helloworld/HelloWorldConnectionFactoryImpl.java	2011-02-15 17:46:17 UTC (rev 110678)
@@ -63,7 +63,7 @@
    @Override
    public HelloWorldConnection getConnection() throws ResourceException
    {
-      return new HelloWorldConnectionImpl(mcf);
+      return (HelloWorldConnection)connectionManager.allocateConnection(mcf, null);
    }
 
    /**

Modified: projects/jboss-jca/trunk/doc/userguide/en-US/modules/sample.xml
===================================================================
--- projects/jboss-jca/trunk/doc/userguide/en-US/modules/sample.xml	2011-02-15 17:31:44 UTC (rev 110677)
+++ projects/jboss-jca/trunk/doc/userguide/en-US/modules/sample.xml	2011-02-15 17:46:17 UTC (rev 110678)
@@ -74,7 +74,7 @@
     </section>
 
     <section id="sample_helloworld_cfimpl">
-      <title>HelloWorld Connection Factory Impl</title>
+      <title>HelloWorld Connection Factory Implementation</title>
       <programlisting language="java">
 <xi:include parse="text" href="../../samples/helloworld/src/main/java/org/jboss/jca/samples/helloworld/HelloWorldConnectionFactoryImpl.java" xmlns:xi="http://www.w3.org/2001/XInclude"/>
       </programlisting>
@@ -88,7 +88,7 @@
     </section>
 
     <section id="sample_helloworld_connectionimpl">
-      <title>HelloWorld Connection Impl</title>
+      <title>HelloWorld Connection Implementation</title>
       <programlisting language="java">
 <xi:include parse="text" href="../../samples/helloworld/src/main/java/org/jboss/jca/samples/helloworld/HelloWorldConnectionImpl.java" xmlns:xi="http://www.w3.org/2001/XInclude"/>
       </programlisting>
@@ -109,7 +109,7 @@
     </section>
 
     <section id="sample_helloworld_testcase">
-      <title>HelloWorld Connection Testcase</title>
+      <title>HelloWorld Connection Test Case</title>
       <programlisting language="java">
 <xi:include parse="text" href="../../samples/helloworld/src/test/java/org/jboss/jca/samples/helloworld/ConnectorTestCase.java" xmlns:xi="http://www.w3.org/2001/XInclude"/>
       </programlisting>



More information about the jboss-cvs-commits mailing list