aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes ejb client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "ejb client" Watch "ejb client" New topic
Author

ejb client

Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315
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

Joined: Apr 14, 2004
Posts: 10336

A stand alone client should be fine.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315
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

Joined: May 26, 2003
Posts: 31079
    
163

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 ]

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
vikram veera
Ranch Hand

Joined: Dec 26, 2000
Posts: 43
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

Joined: Nov 25, 2003
Posts: 315
thanks a ton for the help.

Neeraj.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ejb client