This may be a little off-topic - hopefully not too far off...
I posted a few days ago with a problem where the jonas ejb container
was not synching changes to the entity bean with the database. The
container was aware of the bean mods, and when doing a "sync" or
"stop" via the JonasAdmin tool it would update the database. But, it
wouldn't update the database when the running program modified the
entity bean.
We found the problem, but we don't know whether we were doing
something wrong, or whether we found a bug in Jonas. So, my question
is whether or not the below ejb-jar.xml fragment is invalid.
--------------------------------------------------
When using GenIC with the ejb-jar.xml fragment below, we have the "non-syncing"
problem.
...
<assembly-descriptor>
<container-transaction>
<method><ejb-name>enClientBean</ejb-name><method-intf>Home</method-intf><method-name>*</method-name></method>
<method><ejb-name>enClientBean</ejb-name><method-intf>Remote</method-intf><method-name>*</method-name></method>
<trans-attribute>NotSupported</trans-attribute>
</container-transaction>
<container-transaction>
<method><ejb-name>enClientBean</ejb-name><method-name>*</method-name></method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
...
--------------------------------------------------
When using GenIC with the ejb-jar.xml fragment below, our bean works fine.
...
<assembly-descriptor>
<container-transaction>
<method><ejb-name>enClientBean</ejb-name><method-name>*</method-name></method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
...
In the first, non-working, fragment the Home and Remote interfaces
were declared to be tx type NotSupported while the rest of the bean
was declared tx type Required. In the second, working, fragment the
NotSupported declarations are removed.
We've seen example ejb-jar.xml files (not the ones supplied by Jonas)
which looked like the first (non-working) example above. But that
doesn't necessarily mean that it was a correct way of doing things...
Thanks for any feedback,
(And thanks for doing Jonas!)
Laurie Tynor
[EMAIL PROTECTED]
----
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".