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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user