[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - How does JBoss use the jdbc-type value in jbosscmp-jdbc.xml?

2006-06-29 Thread bobsmith
Hello, If I have a CMP field that has a jdbc-type tag specified, then does JBoss use that to determine which getter method (getString, getInt etc) to call on the ResultSet? And if the jdbc-type tag is not present for the cmp field, does it use the return type of the getter method in the entity

[JBoss-user] [JCA/JBoss] - Re: ManagedConnectionPool behaviour inconsistencies between

2006-01-19 Thread bobsmith
Given the terse (and unhelpful) response, I re-read my original question to ensure there was enough information there to describe the problem, and there clearly is. So why the question is "unanswerable" escapes me, but I will post a little more detail in the hope that a useful reply is forthcomi

[JBoss-user] [JCA/JBoss] - ManagedConnectionPool behaviour inconsistencies between 3.2.

2006-01-19 Thread bobsmith
Hello, JBossManagedConnectionPool is behaving differently between 3.2.6 and 4.0.2. I have an application that is using MySQL streaming result sets. The MySQL version is 4.0.20a and the Connector/J version is 3.1.6. In some cases I have embedded queries. In other words, I scroll through the fir

[JBoss-user] [JCA/JBoss] - Re: Trouble enlisting direct JDBC in a transaction

2005-09-26 Thread bobsmith
anonymous wrote : | If you want to manage transactions yourself (not a good idea most times) then lookup UserTransaction object from JNDI and use that. Dont use the transaction manager. It cant help you :) | I can get hold of the UserTransaction via JNDI as you mention, but is that any goo

[JBoss-user] [JCA/JBoss] - Re: Trouble enlisting direct JDBC in a transaction

2005-09-26 Thread bobsmith
Thank you for your reply, niwhsa. It appears that the MysqlXADataSource class was removed from Connector/J version 3.0 onwards because "it didn't work well". Bug id is 1737 and can be found here: http://bugs.mysql.com/bug.php?id=1737 The bug report says that JBoss provides an XA wrapper for no

[JBoss-user] [JCA/JBoss] - Trouble enlisting direct JDBC in a transaction

2005-09-23 Thread bobsmith
Hello, I am getting a ClassCastException when doing the following: | XADataSource m_XADataSource = (XADataSource) ctx.lookup("java:/MyDataSource"); | My problem is no doubt not just the above line but my whole understanding of the area of Transactions. I am replacing the entity beans in

[JBoss-user] [Persistence & CMP/JBoss] - Exception during start up regarding table creation

2005-02-22 Thread bobsmith
I am using JBoss 3.2.6 and MySQL version 4.0.20 on Windows XP. I'm getting the following error when starting JBoss: 2005-02-22 04:02:15,000 ERROR [org.jboss.ejb.EntityContainer] Starting failed jboss.j2ee:jndiName=ejb/T1Bean,service=EJB org.jboss.deployment.DeploymentException: Error while creat

[JBoss-user] [JCA/JBoss] - listInUseConnections operation missing in 3.2.6 (CachedConne

2005-01-04 Thread bobsmith
The operation listInUseConnections should be available on CacehdConnectionManager from version 3.2.6. I have just installed 3.2.6 but this operation is not available. I have debug set to true in the transaction-service.xml file in my deploy folder. Anyone got any ideas why I can't see this opera