Yes, you are correct in that assumption, sorry about the confusion.

Do you know how to mark an entities create methods as 'Required', leaving
the rest as 'Supports'?

I still think that there is something wrong with jboss's tx handling.
Originally I was creating these beans from a stateless session, with a
method that was marked as 'Required'.  It created two beans that were marked
as 'Supports' and still no rows were inserted when using the minerva
datasource.  When I switched to the oracle datasource it looked like each
bean was created within different (or non-existant) transactions, since the
second bean failed with a fk constraint, which should not have happened if
they were both inserted in the same transaction.

--jason


On Fri, 1 Dec 2000, Aaron Mulder wrote:

>       I assume you mean that no record was inserted, not that a record
> with the field 'never' was inserted.
>       Supports means that if there is no transaction when the bean is
> called, then no transaction will be used.  If there is a transaction when
> the bean is called, then that transaction will be used.
>       Required means that if there is no transaction when the bean is
> called, then a transaction will be created and used.  If there is a
> transaction when the bean is called, then that transaction will be used.
>       If all of your beans are marked as Supports, then no transaction
> will ever be created, and as a result all DB operations will be rolled
> back.  When you change them to Required, then any bean called directly by
> a client will create a transaction, and any beans it calls will use that
> transaction, so the data the beans write will be committed.
>
> Aaron
>
> On Fri, 1 Dec 2000, Jason Dillon wrote:
> > Hello again.  I ran an even simplier example, with one bean.  I tried to
> > create it using the minerva datasource and the record 'never' got inserted.
> > All of the beans methods were marked as 'Supports' transactions.  I changed
> > them to 'Required' and it works fine.
> >
> > Is there something wrong with 'Supports'?
> >
> > --jason
>
>
>
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
>



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to