-
1. Re: JBoss 3 and Local Interfaces
davidjencks Feb 12, 2002 5:37 PM (in response to gigatoad)???
local means "in the same vm" so if tomcat (or your client) and jboss are in different vms, you can't use local interfaces in tomcat (or your client). Was this your question? -
2. Re: JBoss 3 and Local Interfaces
gigatoad Feb 13, 2002 7:56 AM (in response to gigatoad)ok.
Is there some easy way (aside from waiting for a JBoss 3.0 / Tomcat Integration build) to run them in the same VM?
And how would I run a client app ( simple java class ) in the same VM as JBoss.
I would really like to test the local interfaces but am finding it difficult to find an environment to do this in!
thanks!
brenton -
3. Re: JBoss 3 and Local Interfaces
pboddie Feb 14, 2002 8:18 AM (in response to gigatoad)Yes, one of the problems with beans which must have local interfaces (CMP 2.0 entity beans, for example) is that it's hard to test them using a client! Still, what you can do is to provide remote interfaces for some of the beans and to invoke those from a client.
Add "home" and "remote" elements to your deployment descriptor, provide remote home and bean interface definitions, and implement any new methods that are now necessary in your bean's implementation - you may need to be careful to avoid methods of the same name where only the return type is different, and I suppose that this is why people recommend a "session bean facade".
So, you could implement a session bean which has remote interfaces and which relays calls to the local interfaces of your existing beans. That should also provide a way of testing them.