[jboss-user] [EJB 3.0] - Re: jdbc Query Timeout ( Is This a Bug? )
grdzeli_kaci
do-not-reply at jboss.com
Wed Jan 31 01:10:19 EST 2007
hi all, i found out one way.
when i changed the session bean, add this:
| @Resource(mappedName="java:/TimesTenXAClientDS") DataSource
| myTestDB;
and then i tryed get information from timesten database it works :)
| try{
| Connection con = myTestDB.getConnection();
| PreparedStatement stmt = con.prepareStatement("selects
| SERVICEID from RT.SUBSCRIBERSERVICEPARAMETERS where SERVICEPARAMETERID
| = 11111;");
| ResultSet result = stmt.executeQuery();
| System.out.println(" return data");
| while (result.next()) {
| System.out.println(" ------
| "+result.getInt(1));
|
| }
|
but it is not good idea, becouse i need entity transaction management,
i think that bug is in the entity manager.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008656#4008656
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008656
More information about the jboss-user
mailing list