3 Replies Latest reply on Jan 15, 2008 7:37 AM by pmuir

    <transaction:ejb-transaction /> troubles

    efbiaiinzinz

      Can someone explain to me exactly, how this tag being/not being in components.xml affects the application and how seam works ?
      Right now, we have problem with Icefaces integration, where file upload stops to work when this tag is in components.xml. things end up in Ejb not found exception.
      See http://www.icefaces.org/JForum/posts/list/6613.page for specific stack traces that I have already posted at icefaces site.

      To get things working again, we moved from ejb approach to pojo approach to get file upload working and also removed the ejb-transaction tag.

      Can anyone tell me what side effects does the pojo approach have over ejb approach and what would/could happen when we use ejb's and don't use ejb-transaction tag.

      Also if someone who knows about icefaces and long running conversations has any ide how to modify the uploadservet to get things working, that would be nice too.

        • 1. Re: <transaction:ejb-transaction /> troubles
          pmuir

          It provides transaction synchronization between Seam and the container (callbacks on the container doing something with the transaction).

          The exception isn't familiar to me, but then I don't spend much time with glassfish.

          Even if you use POJOs, you still want to use EJB3 transaction sync if you are in a JEE app server.

          • 2. Re: <transaction:ejb-transaction /> troubles
            efbiaiinzinz

            The exception is not related to glassfish only, we also deployed on weblogic server and the icefaces inputfile failed in same way.

            Do you have any pointers or ideas what to change in icefaces upload servlet to make is use seam contexts and things correctly ?

            I'm willing to be the testsubject to recompile icefaces and test different approaches.

            Currently icefaces file upload works only if backing bean is session scoped and while doing upload, and no seam injection/bijection gets done etc.

            • 3. Re: <transaction:ejb-transaction /> troubles
              pmuir

              Try it on JBoss AS and post the stack trace, I'll see if I can spot anything :)