tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Visvanath, Sridhar (Cognizant)" <>
Subject RE: Urgent Requirement
Date Thu, 29 Apr 2004 03:32:05 GMT
I see that you want library of DAO classes in a distributed fashion. You can use Hibernate
framework. It is better than entity EJB. We have used it in our project. I guess hibernate
should help your case. check it out at

-----Original Message-----
From: Deepak Vishwanathan []
Sent: Thursday, April 29, 2004 12:37 AM
To: Tomcat Users List
Subject: Re: Urgent Requirement

Hi everyone,
Thank you very much for the responses. 
The scenario is like I want to write a class that can be remotely invoked using JMS / RMI
technology. This class will be solely responsible for fetching the data from the database,
with connection pooling capabilities.
Any component that needs data from the database connects to the above mentioned class.
If I were to write such a Java class (component), is there any popular open source project
package designed specifically to facilitate such a class.
The constraint is that package should be free for redistribution.

Peter Lin <> wrote:

I believe the features you're looking for are available on EJB containers. For example, weblogic
can manage a pool of connections and front end webservers can use that pool. 

when you say "can these two communicate" what exactly is the goal? Filip's recommendations
are good in general, but the learning curve may be steep if you've never use RMI or aren't
familiar with RPC.

based on what you said, it sounds like you have some objects that contain shared data. If
that is the case, make sure caching the data on both servers absolutely isn't an option before
using EJB's. If caching the objects locally is sufficient, it will save you the cost of learning

peter lin

Filip Hanik - Dev wrote:
several different ways, but this is not a tomcat related question

1. HTTP, set up a servlet/jsp on one server, and object on machine two can invoke the servlet,
then the servlet can invoke the
object on machine one.

2. RMI, read up on RMI

3. Straight TCP, but you probably dont want to do this :)

----- Original Message -----
From: "Deepak Vishwanathan" 
Sent: Wednesday, April 28, 2004 11:33 AM
Subject: Urgent Requirement

I have 2 machines. Both of them have Tomcat running. There is a java object in the first Tomcat
environment and a java object in the
second Tomcat environment(different machines). Can these 2 java objects communicate using
Tomcat framework?

Is there a way to configure this?

The second java object uses connection pooling capability of Tomcat.

Any early response will be highly appreciated.


Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs

To unsubscribe, e-mail:
For additional commands, e-mail:

Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs 
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs 

View raw message