I am using WebSphere 2.02 Advanced Edition . It doesn't support EJB Spec 1.1 .
According to 1.0 spec, Entity beans can be created with TX_BEAN_MANAGED transaction
attribute.
Manisha
Erich Siegrist wrote:
> Hi Manisha,
>
> Since you are using an entity bean, the only valid transaction demarcation type for
> the bean is "ContainerManaged". (1.1 spec. 11.3.1).
> And if an instance of a "container managed transaction demarcation" bean attempts
> to invoke getUserTransaction, the container must throw a
> java.lang.IllegalStateException.
> (per 1.1. spec. 11.6.2.10 - however this behaviour was first introduced in 1.1
> draft 3, and your container implementation may relay on an older spec.)
>
> -Erich
>
> Manisha Umbarje wrote:
>
> > Hi ,
> >
> > I am using BMP Entity Bean and tried to get UserTransaction in ejbCreate() by
> > calling context.getUserTransaction(). But it gives me null pointer exception at
> > that point.
> > I find this a bit baffling since according to specs, UserTransaction begins
> > before client calls create().Am I missing something here ? I am working with
> > WebSphere 2.02 Advaned Edition.
> >
> > Any help would be greatly appreciated.
> > Manisha.
> >
> > ===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff EJB-INTEREST". For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".