-
1. Re: How to use an EntityHome from a standalone java client
simplex-software Oct 31, 2012 2:04 PM (in response to simplex-software)Does this forum still exist ? I'm asking as, this last time, I posted a couple of questions without that anybody seems to feel concerned.
-
2. Re: How to use an EntityHome from a standalone java client
teacurran Nov 4, 2012 1:46 PM (in response to simplex-software)hmm. so you are using seam2 entity home objects and you want them to work without running inside a servlet container? Am I reading that correctly?
I would look into doing something like this:
{code}
MockServletContext servletContext = new MockServletContext();
ServletLifecycle.beginApplication(servletContext);
Initialization init = new Initialization(servletContext);
init.create().init();
Lifecycle.beginCall();
//use your entity home here
Lifecycle.endCall();
{code}
-
3. Re: How to use an EntityHome from a standalone java client
simplex-software Nov 12, 2012 7:33 AM (in response to teacurran)No, I'm using Seam 2 entity homes which can only run in the container but need to call them from a java stand-alone application. I'm not mocking anything here and this is not for test purposes.