Hi guys, I have a few questions about how to look up local ejb
this is just part of my client code, which will be run as another java app.
ctx = new InitialContext(props);
System.out.println(MikeLocalHome.COMP_NAME);
MikeLocalHome home = (MikeLocalHome) ctx.lookup("MikeLocal");
a = home.create();
this is the exception I got when I try to do a create()
java.lang.NullPointerException
at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
I've search various post on this topic from the forum. It says I can't reference a
local EJB on the other JVM. What does other JVM means, if i start up JBoss app.
server..it runs on its own JVM?...so, if I start up my client app, it's on another
JVM?..even though it's the same computer
also, if I can't run local ejb on my client code, how would I test it?..I've seen post
saying use remote interfaces, and JBoss will optimize the performance?..is that
true?...does that mean I can let my servlet access ejb remotely(use remote interface),
but JBoss will treat them as local ejb?...
btw, if I deploy my local ejb in a servelt and access, it works fine...
sorry for the long post...tks a lot!!
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852158#3852158
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852158
---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user