This discussion is archived
0 Replies Latest reply: Aug 28, 2013 12:16 AM by SmartMO RSS

Hibernate Session Factory under entityManager

SmartMO Newbie
Currently Being Moderated

I have a Spring Roo generated JSF application that works great.

 

My problem comes from an integration task where I must integrate the data and objects in that JSF application in WebSphere Message Broker.

 

The JSF application uses EntityManager to persist the data.

 

To use my same classes, entities, etc. in Broker Java Compute Node, I must use the broker's JDBC connection.

 

My question is, can I navigate from the EntityManager down to some level where the Hibernate Session Factory is found so I can override and inject the Connection from Broker?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points