Yeah, you can. Add this to jboss.xml:
for the bean in question add: for example (line configuration-name was added) <entity> <ejb-name>Terminalarm</ejb-name> <jndi-name>ejb/Terminalarm</jndi-name> <local-jndi-name>jisis.ejb.TerminalarmLocalHome</local-jndi-name> <configuration-name>Custom Commit Option</configuration-name> </entity> Then add a container-configurations element like this: The configuration-name above points to the container-name (name of configuration) below: <container-configurations> <container-configuration extends="Standard CMP 2.x EntityBean"> <container-name>Custom Commit Option</container-name> <!-- Sets commit-option to C, default is B --> <commit-option>C</commit-option> </container-configuration> </container-configurations> Later, Bernie -----Ursprüngliche Nachricht----- Von: Glenn Lewis [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 2. Dezember 2002 06:47 An: [EMAIL PROTECTED] Betreff: [JBoss-user] commit-option per bean? Hi All, Setup: Jboss 3.0.3 with CMP, Postgres 7. One of our session beans selects an entity bean instance deletes that instance from the table. Problem was that two clients could concurrently select the same instance and one would delete it, leaving the other with an invalid instance. This happened even if the select and delete was done inside a user transaction. We didn't want to change the transaction isolation level from READ_COMMITTED just for this problem, so instead the session bean now calls a postgres function that does the select and delete in one step. This solves the first (concurrency) problem, but because the changes are not made through the beans, the jboss cache is no longer valid. This can be solved by setting the commit-option to level C (from B), but that means all beans are at level C. Is there a way to set the commit-option per bean, or a better way to solve our orginal problem? Any help very much appreciated! thanks -- Glenn ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user