I think there is a serious problem!!!  Whom do I notify of this problem and 
how.  
Server Configuration:

JBoss 4.0.2
EJB 3 Preview 5
Hibernate 3.0.3
Hibernate mappings, code, DAO all mapped in a HAR file

Data saved, updated, deleted at the EJB layer.

Example
@MethodPermissions({"Sales"})
  |     @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
  |     public void newsimpleupdate()     {
  |             try {
  |               Session session = HibernateUtil.getSession();
  |               Transaction tx = session.beginTransaction();
  |              
  |               Types mytype = new Types(17);
  |               mytype.setId(17);
  |               mytype.setDescription("my new test");
  |               mytype.setType("Test5");
  |              
  |               session.update(mytype);
  |              
  |               tx.commit();
  |               HibernateUtil.closeSession();
  |             
  |             System.out.println("Updated Type to " + mytype.getType());
  |             }
  |             catch (Exception e) {log.error(e.getMessage()); }
  |    } 

Using Session Factory from JBoss results in commit failure in methods of update 
and delete.  Save works fine!  



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877898#3877898

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877898


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to