Uploaded image for project: 'Seam Persistence'
  1. Seam Persistence
  2. SEAMPERSIST-27

A seam managed hibernate session should not require an active request context

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.0.0.Beta4
    • Labels:
      None

      Description

      I am trying to use a seam managed hibernate session from a WebApplication Startup event. There is no request context at this time causing the injection to fail. It is because of the dependency on org.jboss.seam.persistence.transaction.EjbSynchronizations that a request context is required.

        Gliffy Diagrams

          Activity

          Hide
          swd847 Stuart Douglas added a comment -

          Resolved by making the Synchronizations components @ApplicationScoped and using ThreadLocals to track the syncronizations

          Show
          swd847 Stuart Douglas added a comment - Resolved by making the Synchronizations components @ApplicationScoped and using ThreadLocals to track the syncronizations
          Hide
          shane.bryzak Shane Bryzak added a comment -

          Reopen to change fix version

          Show
          shane.bryzak Shane Bryzak added a comment - Reopen to change fix version

            People

            • Assignee:
              swd847 Stuart Douglas
              Reporter:
              pieter.martin Pieter Martin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development