Jetty and Atomikos JTA

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Jetty and Atomikos JTA

Franck Routier
Hi,

I am having a hard time trying to run Enhydra Shark workflow v2 in Jetty
(6.1.2pre1) :(
Shark needs Jndi and a JTA transaction manager to work, so I configured
Atomikos as described in http://docs.codehaus.org/display/JETTY/Atomikos.

When I start Jetty, I get the following messages :

1) first a warning : :WARN:  Deprecated configuration used for
./webapps-plus

Well I added the following lines

    <!-- =========================================================== -->
    <!-- JTA Transaction manager : Atomikos                          -->
    <!-- =========================================================== -->
    <New id="tx" class="org.mortbay.jetty.plus.naming.Transaction">
        <Arg>
            <New class="com.atomikos.icatch.jta.UserTransactionImp"/>
        </Arg>
    </New>

    <New id="sharkdb" class="org.mortbay.jetty.plus.naming.Resource">
        <Arg>jdbc/sharkdb</Arg>
        <Arg>
            <New class="com.atomikos.jdbc.SimpleDataSourceBean">
                <Set
name="xaDataSourceClassName">org.postgresql.xa.PGXADataSource</Set>
                <Set
name="xaDataSourceProperties">serverName=192.168.1.1;databaseName=shark2;portNumber=5432;user=myuser;password=mypass</Set>
                <Set name="UniqueResourceName">sharkdb_res</Set>
            </New>
        </Arg>
    </New>

2) when I try to start Shark, I need to have acces to the
UserTransaction. So I do this (in a Spring bean) :

Object transac = new InitialContext().lookup("java:comp/UserTransaction");
System.out.println("########################### Transac class =
"+transac.getClass());
UserTransaction ut = null;
ut = (UserTransaction) new
InitialContext().lookup("java:comp/UserTransaction");

I don't get further, as this results in the following output :

########################### Transac class = class
com.atomikos.icatch.jta.UserTransactionImp
559  [main] ERROR org.apache.commons.logging.impl.SLF4JLog - Context
initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'shark' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Invocation of init method failed;
nested exception is java.lang.ClassCastException:
com.atomikos.icatch.jta.UserTransactionImp

It seems I cannot cast UserTransactionImp into UserTransaction !!!!
I am probably missing something...

Any hint ?
Thanks,

Franck






-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Jetty and Atomikos JTA

Franck Routier
Could this be due to having different versions of
javax.jta.UserTransaction between my app and Atomikos ????


Franck Routier a écrit :

> Hi,
>
> I am having a hard time trying to run Enhydra Shark workflow v2 in Jetty
> (6.1.2pre1) :(
> Shark needs Jndi and a JTA transaction manager to work, so I configured
> Atomikos as described in http://docs.codehaus.org/display/JETTY/Atomikos.
>
> When I start Jetty, I get the following messages :
>
> 1) first a warning : :WARN:  Deprecated configuration used for
> ./webapps-plus
>
> Well I added the following lines
>
>     <!-- =========================================================== -->
>     <!-- JTA Transaction manager : Atomikos                          -->
>     <!-- =========================================================== -->
>     <New id="tx" class="org.mortbay.jetty.plus.naming.Transaction">
>         <Arg>
>             <New class="com.atomikos.icatch.jta.UserTransactionImp"/>
>         </Arg>
>     </New>
>
>     <New id="sharkdb" class="org.mortbay.jetty.plus.naming.Resource">
>         <Arg>jdbc/sharkdb</Arg>
>         <Arg>
>             <New class="com.atomikos.jdbc.SimpleDataSourceBean">
>                 <Set
> name="xaDataSourceClassName">org.postgresql.xa.PGXADataSource</Set>
>                 <Set
> name="xaDataSourceProperties">serverName=192.168.1.1;databaseName=shark2;portNumber=5432;user=myuser;password=mypass</Set>
>                 <Set name="UniqueResourceName">sharkdb_res</Set>
>             </New>
>         </Arg>
>     </New>
>
> 2) when I try to start Shark, I need to have acces to the
> UserTransaction. So I do this (in a Spring bean) :
>
> Object transac = new InitialContext().lookup("java:comp/UserTransaction");
> System.out.println("########################### Transac class =
> "+transac.getClass());
> UserTransaction ut = null;
> ut = (UserTransaction) new
> InitialContext().lookup("java:comp/UserTransaction");
>
> I don't get further, as this results in the following output :
>
> ########################### Transac class = class
> com.atomikos.icatch.jta.UserTransactionImp
> 559  [main] ERROR org.apache.commons.logging.impl.SLF4JLog - Context
> initialization failed
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'shark' defined in ServletContext resource
> [/WEB-INF/applicationContext.xml]: Invocation of init method failed;
> nested exception is java.lang.ClassCastException:
> com.atomikos.icatch.jta.UserTransactionImp
>
> It seems I cannot cast UserTransactionImp into UserTransaction !!!!
> I am probably missing something...
>
> Any hint ?
> Thanks,
>
> Franck
>
>
>
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> jetty-discuss mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/jetty-discuss
>
>  



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Jetty and Atomikos JTA

jan_bartel
Franck,

It could even be caused by having multiple versions of the same
jta jar in both jetty/lib and in your webapp. You should only need
to place the jta jar in jetty/lib.

regards
Jan

Franck Routier wrote:

> Could this be due to having different versions of
> javax.jta.UserTransaction between my app and Atomikos ????
>
>
> Franck Routier a écrit :
>> Hi,
>>
>> I am having a hard time trying to run Enhydra Shark workflow v2 in Jetty
>> (6.1.2pre1) :(
>> Shark needs Jndi and a JTA transaction manager to work, so I configured
>> Atomikos as described in http://docs.codehaus.org/display/JETTY/Atomikos.
>>
>> When I start Jetty, I get the following messages :
>>
>> 1) first a warning : :WARN:  Deprecated configuration used for
>> ./webapps-plus
>>
>> Well I added the following lines
>>
>>     <!-- =========================================================== -->
>>     <!-- JTA Transaction manager : Atomikos                          -->
>>     <!-- =========================================================== -->
>>     <New id="tx" class="org.mortbay.jetty.plus.naming.Transaction">
>>         <Arg>
>>             <New class="com.atomikos.icatch.jta.UserTransactionImp"/>
>>         </Arg>
>>     </New>
>>
>>     <New id="sharkdb" class="org.mortbay.jetty.plus.naming.Resource">
>>         <Arg>jdbc/sharkdb</Arg>
>>         <Arg>
>>             <New class="com.atomikos.jdbc.SimpleDataSourceBean">
>>                 <Set
>> name="xaDataSourceClassName">org.postgresql.xa.PGXADataSource</Set>
>>                 <Set
>> name="xaDataSourceProperties">serverName=192.168.1.1;databaseName=shark2;portNumber=5432;user=myuser;password=mypass</Set>
>>                 <Set name="UniqueResourceName">sharkdb_res</Set>
>>             </New>
>>         </Arg>
>>     </New>
>>
>> 2) when I try to start Shark, I need to have acces to the
>> UserTransaction. So I do this (in a Spring bean) :
>>
>> Object transac = new InitialContext().lookup("java:comp/UserTransaction");
>> System.out.println("########################### Transac class =
>> "+transac.getClass());
>> UserTransaction ut = null;
>> ut = (UserTransaction) new
>> InitialContext().lookup("java:comp/UserTransaction");
>>
>> I don't get further, as this results in the following output :
>>
>> ########################### Transac class = class
>> com.atomikos.icatch.jta.UserTransactionImp
>> 559  [main] ERROR org.apache.commons.logging.impl.SLF4JLog - Context
>> initialization failed
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean with name 'shark' defined in ServletContext resource
>> [/WEB-INF/applicationContext.xml]: Invocation of init method failed;
>> nested exception is java.lang.ClassCastException:
>> com.atomikos.icatch.jta.UserTransactionImp
>>
>> It seems I cannot cast UserTransactionImp into UserTransaction !!!!
>> I am probably missing something...
>>
>> Any hint ?
>> Thanks,
>>
>> Franck
>>
>>
>>
>>
>>
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job easier.
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> jetty-discuss mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/jetty-discuss
>>
>>  
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Jetty and Atomikos JTA

Franck Routier
Thanks Jan,

Shark ships with a lot of libs, I will have to sort all this out and try
again...

Any hint on the first point (deprecated configuration) ?

Franck

Jan Bartel a écrit :

> Franck,
>
> It could even be caused by having multiple versions of the same
> jta jar in both jetty/lib and in your webapp. You should only need
> to place the jta jar in jetty/lib.
>
> regards
> Jan
>
> Franck Routier wrote:
>  
>> Could this be due to having different versions of
>> javax.jta.UserTransaction between my app and Atomikos ????
>>
>>
>> Franck Routier a écrit :
>>    
>>> Hi,
>>>
>>> I am having a hard time trying to run Enhydra Shark workflow v2 in Jetty
>>> (6.1.2pre1) :(
>>> Shark needs Jndi and a JTA transaction manager to work, so I configured
>>> Atomikos as described in http://docs.codehaus.org/display/JETTY/Atomikos.
>>>
>>> When I start Jetty, I get the following messages :
>>>
>>> 1) first a warning : :WARN:  Deprecated configuration used for
>>> ./webapps-plus
>>>
>>> Well I added the following lines
>>>
>>>     <!-- =========================================================== -->
>>>     <!-- JTA Transaction manager : Atomikos                          -->
>>>     <!-- =========================================================== -->
>>>     <New id="tx" class="org.mortbay.jetty.plus.naming.Transaction">
>>>         <Arg>
>>>             <New class="com.atomikos.icatch.jta.UserTransactionImp"/>
>>>         </Arg>
>>>     </New>
>>>
>>>     <New id="sharkdb" class="org.mortbay.jetty.plus.naming.Resource">
>>>         <Arg>jdbc/sharkdb</Arg>
>>>         <Arg>
>>>             <New class="com.atomikos.jdbc.SimpleDataSourceBean">
>>>                 <Set
>>> name="xaDataSourceClassName">org.postgresql.xa.PGXADataSource</Set>
>>>                 <Set
>>> name="xaDataSourceProperties">serverName=192.168.1.1;databaseName=shark2;portNumber=5432;user=myuser;password=mypass</Set>
>>>                 <Set name="UniqueResourceName">sharkdb_res</Set>
>>>             </New>
>>>         </Arg>
>>>     </New>
>>>
>>> 2) when I try to start Shark, I need to have acces to the
>>> UserTransaction. So I do this (in a Spring bean) :
>>>
>>> Object transac = new InitialContext().lookup("java:comp/UserTransaction");
>>> System.out.println("########################### Transac class =
>>> "+transac.getClass());
>>> UserTransaction ut = null;
>>> ut = (UserTransaction) new
>>> InitialContext().lookup("java:comp/UserTransaction");
>>>
>>> I don't get further, as this results in the following output :
>>>
>>> ########################### Transac class = class
>>> com.atomikos.icatch.jta.UserTransactionImp
>>> 559  [main] ERROR org.apache.commons.logging.impl.SLF4JLog - Context
>>> initialization failed
>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>> bean with name 'shark' defined in ServletContext resource
>>> [/WEB-INF/applicationContext.xml]: Invocation of init method failed;
>>> nested exception is java.lang.ClassCastException:
>>> com.atomikos.icatch.jta.UserTransactionImp
>>>
>>> It seems I cannot cast UserTransactionImp into UserTransaction !!!!
>>> I am probably missing something...
>>>
>>> Any hint ?
>>> Thanks,
>>>
>>> Franck
>>>
>>>
>>>
>>>
>>>
>>>
>>> -------------------------------------------------------------------------
>>> Using Tomcat but need to do more? Need to support web services, security?
>>> Get stuff done quickly with pre-integrated technology to make your job easier.
>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>> _______________________________________________
>>> jetty-discuss mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/jetty-discuss
>>>
>>>  
>>>      
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job easier.
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>    
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> jetty-discuss mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/jetty-discuss
>
>  



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Jetty and Atomikos JTA

jan_bartel
Hi Franck,

The deprecated warning is just because a couple of releases ago
we changed the API to deprecate the WebAppContext.addWebApplications()
method and I haven't got around to updating the etc/jetty-plus.xml
file yet to use a WebAppDeployer instead. It's a harmless warning,
you can ignore it until I modify the etc/jetty.xml file, or if you
can't wait, copy the example of setting up a WebAppDeployer
in etc/jetty.xml and add a line to set up the plus config
something like:

  <Set name="configurationClasses"><Ref id="plusConfig" /></Set>

cheers
Jan

Franck Routier wrote:

> Thanks Jan,
>
> Shark ships with a lot of libs, I will have to sort all this out and try
> again...
>
> Any hint on the first point (deprecated configuration) ?
>
> Franck
>
> Jan Bartel a écrit :
>> Franck,
>>
>> It could even be caused by having multiple versions of the same
>> jta jar in both jetty/lib and in your webapp. You should only need
>> to place the jta jar in jetty/lib.
>>
>> regards
>> Jan
>>
>> Franck Routier wrote:
>>  
>>> Could this be due to having different versions of
>>> javax.jta.UserTransaction between my app and Atomikos ????
>>>
>>>
>>> Franck Routier a écrit :
>>>    
>>>> Hi,
>>>>
>>>> I am having a hard time trying to run Enhydra Shark workflow v2 in Jetty
>>>> (6.1.2pre1) :(
>>>> Shark needs Jndi and a JTA transaction manager to work, so I configured
>>>> Atomikos as described in http://docs.codehaus.org/display/JETTY/Atomikos.
>>>>
>>>> When I start Jetty, I get the following messages :
>>>>
>>>> 1) first a warning : :WARN:  Deprecated configuration used for
>>>> ./webapps-plus
>>>>
>>>> Well I added the following lines
>>>>
>>>>     <!-- =========================================================== -->
>>>>     <!-- JTA Transaction manager : Atomikos                          -->
>>>>     <!-- =========================================================== -->
>>>>     <New id="tx" class="org.mortbay.jetty.plus.naming.Transaction">
>>>>         <Arg>
>>>>             <New class="com.atomikos.icatch.jta.UserTransactionImp"/>
>>>>         </Arg>
>>>>     </New>
>>>>
>>>>     <New id="sharkdb" class="org.mortbay.jetty.plus.naming.Resource">
>>>>         <Arg>jdbc/sharkdb</Arg>
>>>>         <Arg>
>>>>             <New class="com.atomikos.jdbc.SimpleDataSourceBean">
>>>>                 <Set
>>>> name="xaDataSourceClassName">org.postgresql.xa.PGXADataSource</Set>
>>>>                 <Set
>>>> name="xaDataSourceProperties">serverName=192.168.1.1;databaseName=shark2;portNumber=5432;user=myuser;password=mypass</Set>
>>>>                 <Set name="UniqueResourceName">sharkdb_res</Set>
>>>>             </New>
>>>>         </Arg>
>>>>     </New>
>>>>
>>>> 2) when I try to start Shark, I need to have acces to the
>>>> UserTransaction. So I do this (in a Spring bean) :
>>>>
>>>> Object transac = new InitialContext().lookup("java:comp/UserTransaction");
>>>> System.out.println("########################### Transac class =
>>>> "+transac.getClass());
>>>> UserTransaction ut = null;
>>>> ut = (UserTransaction) new
>>>> InitialContext().lookup("java:comp/UserTransaction");
>>>>
>>>> I don't get further, as this results in the following output :
>>>>
>>>> ########################### Transac class = class
>>>> com.atomikos.icatch.jta.UserTransactionImp
>>>> 559  [main] ERROR org.apache.commons.logging.impl.SLF4JLog - Context
>>>> initialization failed
>>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>>> bean with name 'shark' defined in ServletContext resource
>>>> [/WEB-INF/applicationContext.xml]: Invocation of init method failed;
>>>> nested exception is java.lang.ClassCastException:
>>>> com.atomikos.icatch.jta.UserTransactionImp
>>>>
>>>> It seems I cannot cast UserTransactionImp into UserTransaction !!!!
>>>> I am probably missing something...
>>>>
>>>> Any hint ?
>>>> Thanks,
>>>>
>>>> Franck
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------------
>>>> Using Tomcat but need to do more? Need to support web services, security?
>>>> Get stuff done quickly with pre-integrated technology to make your job easier.
>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>> _______________________________________________
>>>> jetty-discuss mailing list
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/jetty-discuss
>>>>
>>>>  
>>>>      
>>> -------------------------------------------------------------------------
>>> Using Tomcat but need to do more? Need to support web services, security?
>>> Get stuff done quickly with pre-integrated technology to make your job easier.
>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>    
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job easier.
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> jetty-discuss mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/jetty-discuss
>>
>>  
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Jetty and Atomikos JTA (solved)

Franck Routier
In reply to this post by jan_bartel
Ok, I found the culprit jar !

So, I just want to give my setup, in case this can serve someone...
(maybe myself in a few month :)
Shark need access to :
- UserTransaction (in java:comp/UserTransaction)
- the TransactionManager (looks for it in
java:comp/env/javax.transaction.TransactionManager)
- a DataSource (looks for it in java:comp/env/jdbc/sharkdb by default)

So here is how I setup this in Jetty :

    <New id="atomikos"
class="com.atomikos.icatch.jta.UserTransactionManager">
        <Set name="forceShutdown">true</Set>
    </New>

    <New id="tm" class="org.mortbay.jetty.plus.naming.Resource">
        <Arg>javax.transaction.TransactionManager</Arg>
        <Arg>
            <Ref id="atomikos"/>
        </Arg>
    </New>

    <New id="tx" class="org.mortbay.jetty.plus.naming.Transaction">
        <Arg>
            <New class="com.atomikos.icatch.jta.UserTransactionImp"/>
        </Arg>
    </New>

    <New id="sharkdb" class="org.mortbay.jetty.plus.naming.Resource">
        <Arg>jdbc/sharkdb</Arg>
        <Arg>
            <New class="com.atomikos.jdbc.SimpleDataSourceBean">
                <Set
name="xaDataSourceClassName">org.postgresql.xa.PGXADataSource</Set>
                <Set
name="xaDataSourceProperties">serverName=ipaddress;databaseName=shark2;portNumber=5432;user=myUser;password=myPass</Set>
                <Set name="UniqueResourceName">sharkdb_res</Set>
            </New>
        </Arg>
    </New>

Works like a charm.

Franck


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss
Loading...