users@glassfish.java.net

Re: Problem with accessing EJB Components in a Remote ...

From: <forums_at_java.net>
Date: Sun, 26 Jan 2014 19:50:25 -0600 (CST)

Hi Vladimir, 1. yes, i agreed with you 2. Off course, you can use @EJB to
access an EJB but you need to define @LocalBean in the session bean class and
this annotation only can be used for accesing local EJB. Please refer to EJB
3.1 for further information. Commonly initialContext properties will need to
be define, if you want to access an EJB from remote/another server. You can
try this properties as in my replied email before (point 3). I usually use
this way rather than use container configuration. you can refer to this
answer :
http://stackoverflow.com/questions/3636507/access-to-remote-ejb-running-in-another-glassfishejb-container-from-another-gl
3. Yes, that configuration is used to configure IIOP port listener that your
remote server will listen for IIOP Request. default 3700 Hope this will help
you Thanks Ferry

--
[Message sent by forum member 'f3riyanto']
View Post: http://forums.java.net/node/900930