DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7693>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7693

New tyrex classes in naming-factory.jar causes exceptions

           Summary: New tyrex classes in naming-factory.jar causes
                    exceptions
           Product: Tomcat 4
           Version: 4.0.4 Beta 2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I've been using TC4 for a while now. I'm using the MS SQL Server JDBC drivers 
(and have been for a while), and install them as a resource in TC using the 
Tyrex JNDI implementation. In TC 4.0.3 everything works fine, however in TC 
4.0.4 (b1 and b2) I get exceptions. 

I simply doing the following

ctx = new javax.naming.InitialContext();
ds = (javax.sql.DataSource)ctx.lookup("java:comp/env/jdbc/WhitePages");
conn = ds.getConnection();
conn.setAutoCommit(false);        

and I get this exception

java.sql.SQLException: Commit not supported in enlisted connections.
   at tyrex.jdbc.EnlistedConnection.commit(EnlistedConnection.java:154)
   at com.develop.ewebjava.lab.GetPessimistic.doGet(GetPessimistic.java:60)

If I look at the class returned through getConnection I get this hierarchy

tyrex.jdbc.EnlistedConnection
tyrex.jdbc.AbstractTyrexConnectionImpl
java.lang.Object

and for the interface hierarchy

java.sql.Connection
tyrex.tm.EnlistedResource


If I run the same code in TC 4.03 then it all works fine and the class 
hierarchy looks like this

com.microsoft.jdbc.sqlserver.SQLServerConnection
com.microsoft.jdbc.base.BaseConnection
java.lang.Object

so it looks like Tyrex (in TC 4.0.4) is wrapping the JDBC connection with its 
own class. There is no change to the tyrex.jar file, however the 
TyrexDataSourceFactory and TyrexTransactionFactory classes in TC/lib/naming-
factory.jar have changed.

Thanks,

Kevin Jones

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

Reply via email to