java - does ejb commits on connection? -
I am using session bean in my application and the transaction is controlled only on the EJB layer. The problem I am facing is something committed. I am using the same connection used by EJB to include in a table, but if the transaction is committed then it is not included in the database. I can help with a problem.
I am not an EJB specialist, I usually Working with plain old Java objects, but ...
What is your problem with this fact that EJB does not manage transactions at the level of the connection? They use the Java transaction service to create transactions which can use multiple connections. Therefore, in order to be part of EJB's transaction, you have to obtain that transaction from the included transaction server and make your own inclusion part of that transaction. I believe how you do this, it really depends on what type of EJB environment you have (EJB 2 or 3 and so on)
But if your EJB is in the environment and EJB wants to put stuff into a single transaction, does it make its content, does it make sense to create EJB to create a table that you want to include in it, and take it out of the application server Want to
Comments
Post a Comment