Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8388

camel-jpa - Do not store CamelEntityManager as a header

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • Future
    • camel-jpa
    • None
    • Unknown

    Description

      We should try to avoid storing headers with are transient such as JpaEntityManager and other kinds. But instead allow access to them using a JpaMessage type that has a getter method to it,

      Then ppl can access it using

      EntityManager em = exchange.getIn(JpaMessage.class).getEntityManager();
      

      See SO for a problem when using as a header
      http://stackoverflow.com/questions/28608301/apache-camel-aggregate-persistence-and-hibernate

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: