Robert Hargreaves wrote:
> 
> Dear All
> 
> Is there any way of setting the isolation level of a CMP entity bean to
> TRANSACTION_SERIALIABLE?
Hi,
In the current version of JOnAS there is no way to set the isolation
level of a CMP
entity bean. In fact you work with the default isolation level of your
JDBC driver.
If you are in BMP you can use the setTransactionIsolation() method of
the connection
interface, however with the oracle thin jdbc driver I use when I try to
set isolation level I catch the following exception:
java.sql.SQLException: setTransactionIsolation: Only supports
TRANSACTION_READ_UNCOMMITTED

In JOnAS we have have not taken isolation level in deployment descriptor
into account because the EJB specifications have 
changed on that from EJB 1.0 to 1.1, and will still change with 2.0. 
Below an extract of a mail of Sun people on this subject: 
---------------------------------------------------------------------------------- 

 "Isolation was removed because the vendor community found that 
implementing isolation at the component level was too difficult. Some 
felt that isolation at the transaction level was the proper solution; 
however, no concensus was reached on a specific replacement semantics. 

This is a difficult problem that unfortunately has no clear solution at 
this time. We will be examining it again in the context of EJB 2.0 and 
possible by then a solution will emerge. 

At present, EJBs can use JDBC isolation facilities (since databases 
differ in the isolation facilities they provide, over reliance on this 
can lead to portability problems) as well as any deployment time 
isolation control provided by EJB containers. EJB 1.1 does not 
require that containers provide any specific isolation control." 
---------------------------------------------------------------------------------- 

It is not clear for us what strategy to choose for the next release of
JOnAS...

Best regards,
-- 
        Philippe

Philippe Coq  Groupe Bulll/BullSoft/OpenMaster  Phone: (33) 04 76 29 78
49
Bull S.A  - 1 rue de Provence - 38432 Echirolles Cedex France
[EMAIL PROTECTED]  http://www-frec.bull.com
Download our EJBServer at http://www.bullsoft.com/ejb
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to