Hello,
if i try to persist a newly created object inside an hibernate3-listener, this object get never persisted in the database. Using following code-snippet for persisting:
private void saveNewObjectFromWithinEventListener( Object myObject ) { try { InitialContext ctx = new InitialContext(); SessionFactory factory = (SessionFactory) ctx.lookup("java:/hibernate/SessionFactory"); factory.getCurrentSession().save(myObject); } catch (NamingException e) { throw new HibernateException(e); }