• Post Reply Bookmark Topic Watch Topic
  • New Topic

Connect to two connection pool

 
ahmad seddighi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, everybody,

I have two entity bean, associated with two different datasource and connection pool, how can I look up these two entity bean, and get them from one session bean.

now, when I looking up and get them, an exception throws :
Illegal attemp to connect two another connection pool.

regards
Ahmad R. Seddighi
[ June 22, 2004: Message edited by: ahmad seddighi ]
 
Slava Imeshev
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should a) set up both beans to use TXDataSources b) set up pools to use XA driver instead of plain JDBC drivers.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!