Hi Armin,

I used rc5. Now I use rc6 and everything works fine whith
PersistenceBrokerFactorySyncImpl.

Thanks.



|---------+--------------------------->
|         |           Armin Waibel    |
|         |           <[EMAIL PROTECTED]|
|         |           rg>             |
|         |                           |
|         |           06.04.2004 18:15|
|         |           Bitte antworten |
|         |           an "OJB Users   |
|         |           List"           |
|         |                           |
|---------+--------------------------->
  
>-------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                           |
  |        An:      OJB Users List <[EMAIL PROTECTED]>                                 
                                      |
  |        Kopie:                                                                      
                                           |
  |        Thema:   Re: batchMode in a managed environment                             
                                           |
  
>-------------------------------------------------------------------------------------------------------------------------------|



Hi Andreas,

which version do you use?
If you use rc6 or CVS did you try to use
PersistenceBrokerFactorySyncImpl as PersistenceBrokerFactory in
OJB.properties file (if you only use the PB-api)?

regards,
Armin

[EMAIL PROTECTED] wrote:
> Hi,
>
> I want to use batchMode in a stateless session bean (B) which is called
> from a message driven bean (A).
> The transaction is started from bean A. Both use container transaction
> 'Required'.
>
> Bean B:
>     PersistenceBroker broker =
> PersistenceBrokerFactory.createPersistenceBroker(pbKey);
>     broker.serviceConnectionManager().setBatchMode(true);
>
>     // broker.beginTransaction();
>
>     .... some inserts ...
>
>     // broker.commitTransaction();
>
>     broker.close();
>
> If I call begin and commitTransaction everything works fine, but this
> doesn't make sense
> in a managed environment. If I don't call it, nothing happens.
>
> Thanks in advance for your reply.
> Andreas
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to