aspose file tools*
The moose likes Websphere and the fly likes simple client to call EAR running in WAS server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "simple client to call EAR running in WAS server" Watch "simple client to call EAR running in WAS server" New topic
Author

simple client to call EAR running in WAS server

Yog Ananth
Greenhorn

Joined: Dec 28, 2004
Posts: 27
Is it possible to invoke normal java client to my application (test.EAR) is running in WAS server ? I am getting communication exception. Please provide some sample client to invoke ejb is running in was server.

Thanks in advance

YOGA
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

When you say Java client, do you mean a stand-alone Java application, like a swing or awt product? If so, they must run inside a J2EE client container provided by WebSphere. They can't run in a normal SDK JVM. It's provided by IBM.

If you mean a Java client such as a servlet, especially if it's running in the same EAR, it should be a normal lookup, such as the code below:



-Cameron McKenzie
 
wood burning stoves
 
subject: simple client to call EAR running in WAS server