Ben,
Here is the code segment I was using to get the exception
using the Hibernate API. The scenario is to create a new
object using this code and than update that object again using
the same code segment within a JBoss CMT. The exception
will happen on the session.flush() of the update. Is this enough
of a code segment for you?
Thanks,
Rich
Session session = null;
try {
Context context = new InitialContext();
SessionFactory sessionFactory =
(SessionFactory)context.lookup("java:/hibernate/HibernateFactory");
session = sessionFactory.openSession();
Object object = session.saveOrUpdateCopy(mappedObj);
session.flush();
} catch (Exception e) {
e.printStackTrace();
} finally {
session.close(session);
}
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841075#3841075
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841075
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development