• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New to RMI; question of suitability for use

 
Charles McGuire
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi -

I've got a Tomcat Server (container) that sits on the other side of our company firewall. It needs information from a database that sits on the inside of the company firewall. I have another Tomcat server on the inside of the firewall.

Rather than supply the outside-the-firewall server with the info to access our database, I'm thinking that RMI to the other server, which would do the DB accessing, would be more secure. Is that true, and is RMI the best way to do this or should I be considering an alternative?

On another, completely unrelated note, Peter, check your private messages.
[ October 28, 2007: Message edited by: Charles McGuire ]
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as i understood. You wanted to make a call from one Tomcat server to another. isnt?
I assume you will have a servlet on the tomcat server sitting behind the firewall that will do the DB processing. If so, why do you need RMI? You can directly call the servlet with appropriate parameters. Correct me if i have mistaken the problem.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Getting data through firewalls using HTTP sounds like SOAP or XML-RPC to me. Why are you even thinking of RMI?

Bill
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with William, don't use RMI, you can't reliably get thru firewalls. Even if it works, it may stop when some new network admin changes the firewalls.

I recommend REST over SOAP and others.
 
Johnny Kewl
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need a POJO Application Server
http://coolharbor.100free.com/index.htm

It runs on Tomcat, so thats no problem.

You place it on the Tomcat inside the firewall.
You write a class that talks to the dB and drop it into the POJO App Server.

In the outside TC you
yourClass = loadRemoteClassInst("co.your.class.on.safe.server.MyClass")
String theName = yourClass.getNameInDb(); //etc etc

Literally... enjoy!

Oh.. POJO applications servers "RMI" on HTTP... no firewall problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic