File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes about @Remote Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "about @Remote" Watch "about @Remote" New topic
Author

about @Remote

Tang Yue
Ranch Hand

Joined: Nov 11, 2008
Posts: 40
In the code sample of chapter 3 of EJB in action, the client uses a EJB with a @Remote interface. However, the client in this sample runs within the same JVM as the EJB. So I don't see any remoteness in this sample.

If I runs the client code on another computer, how can the container on that computer find the remote EJB? Should I set the JNDI of that computer to the JNDI address of the EJB's computer? How can I do so?(I didn't find jndi.properties in my c:\sun\jdk)

I haven't seen anything on this in EJB in action yet. I am completely new to JNDI and have just read the appendix E to learn the basis of it.


Houston Rockets go go go!
Reza Rahman
author
Ranch Hand

Joined: Feb 01, 2005
Posts: 580
Tang,

Take a look at the jndi.properties shipped with the source code. Putting that in the classpath is all that's needed to inject/look-up a remote EJB.

We wanted to cover JNDI in greater detail, but were unable to do so due to some objections from a handful of technical reviewers close to the Spring community. We hope to have better JNDI coverage in the second edition. For now, take a look here: http://www.informit.com/articles/article.aspx?p=384904.

Regards,
Reza

P.S.: For questions very specific to the book, try using the Manning author online forum: http://www.manning.com/panda/. That way, my co-author Debu Panda can help too. Also, I imagine the folks here don't enjoy answering questions specific to a given book :-).


Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
Tang Yue
Ranch Hand

Joined: Nov 11, 2008
Posts: 40
Thank you very much! I have to use a web proxy to access www.manning.com/panda because I guess it the site is blocked by the Great Firewall of China.
Reza Rahman
author
Ranch Hand

Joined: Feb 01, 2005
Posts: 580
Tang,

Wonderful--so either Manning or we have managed to anger the Chinese authorities somehow? LOL...

Regards,
Reza
Dilshan Edirisuriya
Ranch Hand

Joined: Apr 22, 2006
Posts: 299
Hi Reza Rahman, nice to see you here.

Currently I am reading EJB3 in action and I found it as a nice book comparing to other books in the market. The way it is written is appreciated.

Keep up the good works


Dilshan Edirisuriya SCJP1.4, SCWCD1.4, SCBCD 5
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Also, I imagine the folks here don't enjoy answering questions specific to a given book :-)

We try to answer as much as we can, no matter which book the rancher refers to


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: about @Remote
 
Similar Threads
JNDI lookup of local and remote home interfaces
websphere network deployment v6.1 load-balancing for local ejb client
Question for Kathy about PortableRemoteObject.narrow()
JNDI and EJB
Writing a remote client to access EJBs