The Server JVM crashes after I call an EJB method that executes Hibernate Code.
Everything works though - it writes the records to the DB and all that and crashes after that.
Code:
<property name="current_session_context_class">jta</property>
<property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="transaction.manager_lookup_class">org.hibernate.transaction.WebSphereTransactionManagerLookup</property>
I've tried the WebSphereExtendedJTATransactionLookup with no luck either - it fails with:
Quote:
org.hibernate.TransactionException: could not register synchronization with JTA TransactionManager
Code:
ScreenDAO screenDAO = new ScreenDAO();
Session session = screenDAO.getCurrentSession();
Screen screen = (Screen) session.load(Screen.class, screenId);
NotificationType notificationType = (NotificationType) session.load(NotificationType.class, notificationTypeCode);
Notification notification = new Notification(screen, notificationType);
notification.generateAndSendNotification();
notification.save(session);
I do not have any beginTransaction() or commit() as this is running in a Session Bean with Container Managed Transactions.
Does anyone have a clue why the JVM Crashes?