Integrating Hibernate and jPOS Framework

Today i want to share about Integrating Hibernate and jPOS Framework. The implementation will based on my old post about Implementation jPOS Transaction Manager you can read the jPOS project on these post. The jPOS System is look like: i will add new participant for FinancialTransaction group called FinancialTransactionLogging, the participant is responsible for inserting the FinancialTransactionQueryRemoteHost response into database using Hibernate framework. First, For integrating Hibernate and jPOS, i create new qbean called HibernateManager that extends org.jpos.q2.QBeanSupport the initService methods will buildSessionFactory for init the hibernate SessionFactory object.

Continue reading