I agree with Brian. It would be great is the verifier could pick that up. I
was unfortunate to have to spend a fair amount of time finding this problem
in my app...

Emmanuel

----- Original Message -----
From: "Bryan Field-Elliot" <[EMAIL PROTECTED]>
To: "JBoss-User" <[EMAIL PROTECTED]>
Sent: Monday, March 12, 2001 3:59 PM
Subject: Re: [jBoss-User] CMP bean, trans-attribute "Supports" never seems
to commit


> I see; that does indeed make sense. I guiess it's never come up for me
> before, having used other app servers which do something different than
> jBoss concerning the "undefined region" of the spec.
>
> re: application servers -- perhaps that's an area for jBoss improvement,
> that the verifier can prevent you from deploying entity beans marked as
> Supports/Not Supported/Never?
>
> Thanks,
> Bryan
>
> James Cook wrote:
>
> > It is invalid to mark an entity bean's transaction as Supports, Not
Supported,
> > or Never. Actually, the spec calls this "undefined". Your example is a
prime
> > reason why this is so. ejbStore() only fires at the end of a
transaction. In
> > your case there never was one.
> >
> > Some application servers do not allow a non-transactional setting on
entity
> > beans.
> >
> > jim
> >
> > ----- Original Message -----
> > From: "Bryan Field-Elliot" <[EMAIL PROTECTED]>
> > To: "JBoss-User" <[EMAIL PROTECTED]>
> > Sent: Sunday, March 11, 2001 11:07 PM
> > Subject: [jBoss-User] CMP bean, trans-attribute "Supports" never seems
to commit
> >
> >
> >> I am new to jBoss, having been using JOnAS and Weblogic for the past
two
> >> years..
> >>
> >> I am testing a simple CMP entity bean via a simple client trying to do
a
> >> "create()". I am surprised to notice that if the <trans-attribute> of
> >> the bean is "Supports", then my create() never seems to commit (no
> >> record is ever inserted into the database, or if it is, then it is
> >> rolled back). However when I change the <trans-attribute> to
"Required",
> >> then a record is inserted correctly. I am _not_ using any explicit
> >> transaction code in my simple client or in my simple bean.
> >>
> >> Is this correct behavior, or is this a bug? I didn't think I needed a
> >> transaction in order to create() a bean.
> >>
> >> Environment:
> >>
> >> jBoss 2.0 final
> >> PostgreSQL 7.0.2
> >> RedHat Linux 7.0
> >> Sun JDK 1.3.0-02
> >>
> >> Thanks in advance,
> >> Bryan
> >>
> >>
> >>
> >> --
> >> --------------------------------------------------------------
> >> To subscribe:        [EMAIL PROTECTED]
> >> To unsubscribe:      [EMAIL PROTECTED]
> >>
> >>
> >
> >
> >
> > --
> > --------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> >
> >
>
>



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to