[omniORB] Java Client connect omniORB server through tunnel -
summary
Shifeng ZHANG
zsfdev at yahoo.com
Thu Sep 30 00:19:30 BST 2004
Hi,
The connection problem is solved. I would like to give
a brief summary below about the java client connecting
with omniORB server through tunneling, hope it is
helpful for other users.
Client: java + ssh
Server: solaris + omniORB4.0.2 + firewall, only HTTP
and SSH ports open outside firewall.
The CORBA server uses (serverip + portnumber) as the
end point to generat the IOR. I suggest the CORBA
server uses persistent IOR. Then use convertior (a
tool provided in omniORB, however I didn't notice it
in the omniORB's document) to generate a "false" IOR
which uses your client's ip instead of the server's
ip. Note here: use ip directly instead of host domain
name.
The client ssh was set (client's ip + portnumber)
tunnel to (remote-server's-ip + portnumber); then the
java client use the "false" IOR to call the remote
CORBA server which is inside the firewall and it
should work.
Shifeng
--- Duncan Grisby <duncan at grisby.org> wrote:
> On Friday 24 September, Shifeng ZHANG wrote:
>
> [...]
> > In the client side, since the server side's
> firewall
> > blocks all other ports except http and ssh, I use
> > OpenSSH to tunnel the localhost:10001 to the
> > remotehost(yeti.unl.edu):10001. Then I generate
> > another "false" IOR for the client side (I
> generate
> > the "false" IOR as the same as the server side,
> only
> > replace giop:tcp:yeti.unl.edu:10001 as
> > giop:tcp:localhost:10001). So the only difference
> > between the "false" IOR and the echo serser IOR is
> the
> > hosts are diffrent:
>
> How did you generate the second IOR? Are you sure
> that the binary
> values shown as . characters in the keys are the
> same?
>
> > ERROR: org.omg.CORBA.COMM_FAILURE: vmcid: SUN
> minor
> > code: 201 completed: No
>
> Try running the omniORB server with -ORBtraceLevel
> 40. Do you see a
> request coming from the client?
>
> Cheers,
>
> Duncan.
>
> --
> -- Duncan Grisby --
> -- duncan at grisby.org --
> -- http://www.grisby.org --
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the omniORB-list
mailing list