5 Replies Latest reply on Jul 30, 2014 11:27 AM by Born Free

    transaction propagation and jdbc dao in ejb 2.1

    Born Free Newbie

      Hello All,

      I have a stateless session bean, in one of the methods I am using jdbc dao to get some data from db. This dao does select query. Session bean starts transaction and updates data, within same transaction I want to retrieve that data using jdbc dao. Since the data is not yet committed dao does not returns correct values. Jdbc dao does not have any transaction related logic it has just one select query. jdbc dao get connection from jndi. Any idea why the transaction started by session bean cannot be propagated to jdbc?

      Is there any other way to get the updated data in same transaction using dao?


      Any help is highly appreciated.