my dog learned polymorphism
The moose likes JDBC and Relational Databases and the fly likes connection time out error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "connection time out error" Watch "connection time out error" New topic

connection time out error

manish gupta
Ranch Hand

Joined: Nov 06, 2005
Posts: 36
I am using MDB with weblogic 8.1 sp server.
I also created connection pool and datasource in admin console of weblogic. I am creating a connection with the help of data source.
it works for one database call but if you call another database call from same method it is giving error

The transaction is no longer active - status: 'Marked rollback. [Reason=weblogic.transaction.internal.TimedOutException: Transaction timed out after 29 seconds.

Could any one help me in this,how to reolve this problem?

Anupam Sinha
Ranch Hand

Joined: Apr 13, 2003
Posts: 1090
You have access to both the databases. Check the connection String. Check if there's any firewall blocking your access to the other db.
manish gupta
Ranch Hand

Joined: Nov 06, 2005
Posts: 36
database call mean jdbc call on same database
I am using only one database
Jan Cumps

Joined: Dec 20, 2006
Posts: 2565

Did you check Investigating Transaction Problems on BEA's support site? will get a TimedOutException which needs to be handled appropriately inside the application code. Information can be found in the API documentation:
Regards, Jan

OCUP UML fundamental and ITIL foundation
I agree. Here's the link:
subject: connection time out error
It's not a secret anymore!