In my program, Im calling a stateless session bean's method1().
Now method1() starts a user transaction (the transaction is fully bean managed) and after calling a stored proc(using jdbc), calls method2() of the same session bean(this is just a simple java call).
method2 creates a CMP for table 1. After that, it calls a stored proc which accesses table 1. but this stored proc is not getting executed. it is going into an endless wait cycle.
Before calling the stored proc (the one that hangs), I have not updated any values in the CMP.
The CMP will use a separate connection to the DB than the one used for running the stored procs. But they are still in the same user transaction.
(I wish I cud post the code here, but I cant due to IPR reasons)
;)
My question is , does just creating the CMP lock that row of the table??
-
problem with CMP and oracle stored proc (3 messages)
- Posted by: Kamati Pura
- Posted on: April 20 2005 09:08 EDT
Threaded Messages (3)
- problem with CMP and oracle stored proc by Deepak Dixit on April 20 2005 10:44 EDT
- problem with CMP and oracle stored proc by Kamati Pura on April 28 2005 03:11 EDT
- problem with CMP and oracle stored proc by sawan parihar on April 21 2005 08:23 EDT
-
problem with CMP and oracle stored proc[ Go to top ]
- Posted by: Deepak Dixit
- Posted on: April 20 2005 10:44 EDT
- in response to Kamati Pura
Hi,
Which DataSource are you using , Tx-DataSource or non - Tx DataSource.
-D. -
problem with CMP and oracle stored proc[ Go to top ]
- Posted by: Kamati Pura
- Posted on: April 28 2005 03:11 EDT
- in response to Deepak Dixit
Hi
I was using the non TX data source. Switching to a Tx data source solved the problem.
But I was unable to find enough documentation about transactional datasources. As far as I had analyzed, mine was not a distributed transaction. And Tx Datasources are required for distributed transactions only.
Can you tell me more about it, or give me links for some documentation?
Cheers
Ajay -
problem with CMP and oracle stored proc[ Go to top ]
- Posted by: sawan parihar
- Posted on: April 21 2005 08:23 EDT
- in response to Kamati Pura
Hi,
Does stored procedure in method1 works on table 1. Because the container will ask the database to unlock the record only after the transaction is over.
cheers.