Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb client

 
Neeraj Vij
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have some ejbs deployed on a server. For invoking/using those ejbs, I need to create a client for it.

Do I need to have app. server(like weblogic etc) for creating a client ?

or I can invoke through some standalone java client program/ jsp client deployed on tomcat.

Please help.

Thanks,
Neeraj.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A stand alone client should be fine.
 
Neeraj Vij
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks paul. if it's possible please provide some sample code.

what sort of permission a client needs to have to be able to hit the ejbs.

for example- GetAppData ejb is deployed on websphere server at x.x.x.x ip at yyyy port.

and I want to invoke the GetAppData ejb from a different system with ip t.t.t.t

what permission m/c t.t.t.t needs to have for accessing ejb on x.x.x.x ip at yyyy port.


Thanks again
Neeraj.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34835
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Neeraj Vij:
thanks paul. if it's possible please provide some sample code.

IBM provides sample code and extensive detail on the setup.


what sort of permission a client needs to have to be able to hit the ejbs.

You'd need firewall permissions (on the ports etc) to access the remote machine. Beyond that, it depends on what EJB security settings you have set up if any.

[edited because I forgot to answer 2nd half of question]
[ September 18, 2008: Message edited by: Jeanne Boyarsky ]
 
vikram veera
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
You can find the sample code in the below URL.

EJB Stateless session bean and Java Standalone client code

Thanks
Vikram
www.developerparadise.com
 
Neeraj Vij
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a ton for the help.

Neeraj.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic