NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
piccaza
Joined: 07 Jun 2012 Posts: 1
|
Posted: Thu Jun 07, 2012 9:03 am Post subject: EJB Remote invocation |
|
|
i want make a Remote EJB call btw two system conected by lan.
Both system using glas fish, netbeans.
In system one,
have two java class.
one interface
Interface do{ public string doSmthng(); }
one session bean class
class sessionBene implements do{ string doSmthing(){ return "caled"; }
}
In second system.
i had a bean class,
how can i call th other system.
i write code like this but not wrking:
public void remoteCaller() throws NamingException{
Properties properties = new Properties();
properties.setProperty("org.omg.CORBA.ORBInitialHost", "192.168.2.129");
InitialContext ctx = new InitialContext(properties);
do dointrf= (do) ctx.lookup(do.class.getName());
s=dointrf.doSomthng();
}
am a newbe to EJB and remote callings pls help.. |
|
| Back to top |
|
 |
Antonio Varela Posted via mailing list.
|
Posted: Thu Jun 07, 2012 9:10 pm Post subject: Re: EJB Remote invocation |
|
|
You may find this link useful:
http://glassfish.java.net/javaee5/ejb/EJB_FAQ.html
Regards,
On Thu, Jun 7, 2012 at 2:03 AM, piccaza <address-removed> wrote:
| Quote: | i want make a Remote EJB call btw two system conected by lan.
Both system using glas fish, netbeans.
In system one,
have two java class.
one interface
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|