Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

ejb client  RSS feed

 
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.
 
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.
 
author & internet detective
Posts: 39285
727
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 ]
 
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.
 
And will you succeed? Yes you will indeed! (98 and 3/4 % guaranteed) - Seuss. tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!