Win a copy of liveProject: Protecting User Data with Spring Security and OAuth2 this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

about @Remote

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 580
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 :-).
 
Tang Yue
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 580
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tang,

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

Regards,
Reza
 
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Hey, I'm supposed to be the guide! Wait up! No fair! You have the tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic