• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to access EJB deployed in Different Machine in websphere  RSS feed

 
parimelazhagan vinayagam
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I created a simple sessionbean EJB.I deployed in my local machine and Standalone client also in my local machine.Everthing works fine.I am able to access the EJB.
but if i deployed the EJB in Different machine and i have changed the URL name in the stand alone client.It's again trying to access the localhost.
Can you guys/gals please explain where i am missing the configuration settings.

Thanks in Advance
Pari
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to pass a Map of values to the constructor of InitialContext so that it connects to the remote system. If you use the default constructor, it will use a local file and end up connecting to the local host (if that's how it's configured). So, check out the documentation for Websphere and find out what information you should be passing to the correct constructor.
 
parimelazhagan vinayagam
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
EJB is deplyed in remote machine which is in different network from the client machine.
Client and Server are running in websphere Server.
While client trying to access the EJB,its getting the following Error:
[4/17/05 17:00:04:329 IST] 3d024e0f WebGroup E SRVE0026E: [Servlet Error]-[A communication failure occurred while attempting to obtain an initial context with the provider URL: "iiop://hostname:2809". Make sure that any bootstrap address information in the URL is correct and that the target name server is running. A bootstrap address with no port specification defaults to port 2809. Possible causes other than an incorrect bootstrap address or unavailable name server include the network environment and workstation network configuration.]: javax.naming.ServiceUnavailableException: A communication failure occurred while attempting to obtain an initial context with the provider URL: "iiop://hostname:2809". Make sure that any bootstrap address information in the URL is correct and that the target name server is running. A bootstrap address with no port specification defaults to port 2809. Possible causes other than an incorrect bootstrap address or unavailable name server include the network environment and workstation network configuration. Root exception is org.omg.CORBA.TRANSIENT: operation timed out:host=hostname,port=2809 minor code: 4942F303 completed: No

Its basically giving the Operation timed out error.its there in the last line of the Error detail.


If i deploy the EJB in a machine in Same network,its able to acess that EJB.But they are in different Network its not able to acess and giving communcation exception.

Some more information:
1)I am able to telnet the remote machine.(to check accessibility of remote machine from client).I am not sure whether it is enough to check accessibility.
2)Not able to ping remote machine from client machine.

How do i know whether the remote machine port 2809 is accessible from client machine?

Any useful info would be great helpful
Thanks in advance
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!