You are using the connection outside an explicit jta transaction.  if you
know this, you can ignore the message.  Perhaps I should remove it.  It's
designed to help people not do this:

Connection c = ds.getConnection();
UserTransaction ut = (look up ut)
ut.begin();//MUST BE DONE BEFORE CONNECTION IS OBTAINED TO ENROLL CX IN TX
c.do something();
ut.commit();connection is not enrolled, so has no effect
c.close();//you get warning

This statement order is ok in 3.x but not 2.x

david jencks


On 2002.09.05 04:35:31 -0400 song chen wrote:
> Hello,
>   i'm a new user to JBoss and this mail list. 
> 
>   In my programming, when try to read data from a database (oracle
> 8.1.6), using Jboss 2.4.4, i got such error at the server side:
> 
> [ERROR,XAConnectionFactory] Unable to deregister with TransactionManager
> java.lang.IllegalArgumentException: xaRes not enlisted
> ....
> ....
> 
>   Anyone can tell the reason?
> 
>   also, in other circumstances, like Weblogic, the code is OK.
> 
>   And more, is it true that one can't use commit() and rollback() in
> program?
> 
>   thanks in advance
> 
> song
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html; charset=gb2312">
> <META content="MSHTML 6.00.2716.2200" name=GENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=#ffffff>
> <DIV><FONT size=2>Hello,</FONT></DIV>
> <DIV><FONT size=2>&nbsp; i'm a new user to JBoss and this mail list. 
> </FONT></DIV>
> <DIV><FONT size=2></FONT>&nbsp;</DIV>
> <DIV><FONT size=2>&nbsp; In my programming, when try to read data from a 
> database (oracle 8.1.6), using Jboss 2.4.4, i got such error at the
> server 
> side:</FONT></DIV>
> <DIV><FONT size=2></FONT>&nbsp;</DIV>
> <DIV><FONT size=2>[ERROR,XAConnectionFactory] Unable to deregister with 
> TransactionManager<BR>java.lang.IllegalArgumentException: xaRes not 
> enlisted</FONT></DIV>
> <DIV><FONT size=2>....</FONT></DIV>
> <DIV><FONT size=2>....</FONT></DIV>
> <DIV><FONT size=2></FONT>&nbsp;</DIV>
> <DIV><FONT size=2>&nbsp; Anyone can tell the reason?</FONT></DIV>
> <DIV><FONT size=2></FONT>&nbsp;</DIV>
> <DIV><FONT size=2>&nbsp; also, in other circumstances, like Weblogic, the
> code 
> is OK.</FONT></DIV>
> <DIV><FONT size=2></FONT>&nbsp;</DIV>
> <DIV><FONT size=2>&nbsp; And more, is it true that one can't use commit()
> and 
> rollback() in program?</FONT></DIV>
> <DIV><FONT size=2></FONT>&nbsp;</DIV>
> <DIV><FONT size=2>&nbsp; thanks in advance</FONT></DIV>
> <DIV><FONT size=2></FONT>&nbsp;</DIV>
> <DIV><FONT size=2>song</FONT></DIV></BODY></HTML>
> 


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to