NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

EJB Remote invocation

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
piccaza



Joined: 07 Jun 2012
Posts: 1

PostPosted: Thu Jun 07, 2012 9:03 am    Post subject: EJB Remote invocation Reply with 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
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.





PostPosted: Thu Jun 07, 2012 9:10 pm    Post subject: Re: EJB Remote invocation Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo