2 Replies Latest reply on Jun 12, 2011 4:53 PM by nev can

    Seam outside the container

    David Britton Newbie

      We currently have a Standalone java application as well as a Web application using Seam.  Is there a way to allow the standalone java application to use Seam as well?


      I know this question is simplistic, but I'm having trouble finding this type of information available anywhere (thus maybe answering my own question).  The most interesting aspect I'm looking at getting from Seam for the standalone app is the entity manager (hibernate) that is managed by Seam.


      Thanks!


      -dpb

        • 1. Re: Seam outside the container
          Stuart Douglas Master

          Not really. It is possible to access the entity manager using JNDI, however this practice is discouraged by jboss and from memory is quite tricky to set up (can't remember why, but I think that you will almost certainly run into trouble). Also you do not actually get the seam managed entityManager, just an entityManager that comes from the same EntityManagerFactory.


          Your best bet is to put the appropriate logic in the seam app and use some kind of remote procedure call, either web service based or otherwise to access the information you need.

          • 2. Re: Seam outside the container
            nev can Newbie

            I am new to seam framework and having problems while I am trying to use the seam catch module from standalone application. I started to wonder it might not be possible. Do you know if I can use the seam catch module from standalone application?


            Thanks!