Hello!

The output of example with jboss 3.2.5:
Tx: [EMAIL PROTECTED]
Factory: [EMAIL PROTECTED]
Connection1: [EMAIL PROTECTED]
WR1: http://localhost:80/upload/
WR2: http://localhost:80/upload/
WR1 sees Content
WR2 sees this before commitContent
WR2 sees this after commit Content


The result of my test with jboss 3.2.5 is the same as with jboss 4.0.0



Tuesday, November 23, 2004, 11:58:41 PM, you wrote:

OZ> Did the example work for you? I had the connector running with 3.x.x,
OZ> no idea if it works with JBoss 4.0...

OZ> Maybe Ryan has more knowledge...

OZ> Oliver


OZ> On Tue, 23 Nov 2004 20:04:39 +0200, Andrew Tibets
OZ> <[EMAIL PROTECTED]> wrote:
>> Hello!
>> 
>> I used WebDAV JCA Connector Jakarta Slide 2.1beta1 in xa-transaction.
>> 
>> Jboss 4.0
>> webdav-connector-ds.xml:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <connection-factories>
>>   <tx-connection-factory>
>>     <jndi-name>WebDAV-Connector</jndi-name>
>>     <xa-transaction/>
>>     <rar-name>webdav-2.1b2.rar</rar-name>
>>    
>> <connection-definition>javax.resource.cci.ConnectionFactory</connection-definition>
>>     <max-pool-size>20</max-pool-size>
>>     <blocking-timeout-millis>5000</blocking-timeout-millis>
>>     <idle-timeout-minutes>15</idle-timeout-minutes>
>>   </tx-connection-factory>
>> </connection-factories>
>> 
>> FileServiceSessionBean: (stateless session)
>>     private static final String HOST = "http://localhost:80/upload/";;
>>     private static final String USER = "root";
>>     private static final String PASSWORD = " root";
>>     private static final int TIMEOUT = 10;
>> 
>>     public void createFile() {
>>         WebDAVConnection conn1 = null;
>>         try {
>>             WebDAVConnectionSpec spec = new
>> WebDAVConnectionSpec(HOST, USER, PASSWORD, TIMEOUT);
>>             conn1 = (WebDAVConnection) davFactory.getConnection(spec);
>>             WebdavResource wr1 = conn1.getWebdavResource();
>>             logger.info("mkcolMethod: " +
>> wr1.mkcolMethod("/upload/testDir"));
>>             logger.info("putMethod: " +
>> wr1.putMethod("/upload/testDir/newFile.txt","test data"));
>>         } catch (IOException e) {
>>             throw new EJBException(e.getMessage(), e);
>>         } catch (ResourceException e) {
>>             throw new EJBException(e.getMessage(), e);
>>         } finally {
>>             if (conn1 != null)
>>                 try {
>>                     conn1.close();
>>                 } catch (ResourceException e) {
>>                     throw new EJBException(e.getMessage(), e);
>>                 }
>>         }
>>     }
>> 
>> "createFile" method has transaction attribute "Required".
>> 
>> As a result:
>> 19:52:28,993 ERROR [LogInterceptor]
>> TransactionRolledbackException in method: public abstract void
>> fileservice.FileServi
>> ceSession.createFile() throws java.rmi.RemoteException, causedBy:
>> org.jboss.tm.JBossRollbackException: Unable to commit,
>> tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=pc268/15, Branc
>> hQual=, localId=15] status=STATUS_NO_TRANSACTION; - nested
>> throwable: (javax.transaction.xa.XAException)
>>         at
>> org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:344)
>>         at
>> org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:457)
>>         at
>> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:325)
>>         at
>> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:149)
>>         at
>> org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
>>         at
>> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
>>         at
>> org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
>>         at
>> org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
>>         at org.jboss.ejb.Container.invoke(Container.java:854)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> 
>> I can't see what I've done wrong.
>> What should I do?
>> 


  Thanks

-- 
Best regards,
 Andrew                            mailto:[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to