Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
data replication

data replication

2004-07-12       - By koala.gnu@(protected)

 Back
Reply:     1     2     3     4     5     6     7  

I have a server with a connected DB. I want use 2 or more servers with
same DB schema.
If a change occurs on a server (cache or DB) I want replicate this change.
I do not know if this is a Master/Master or
Master/Slave. The question is: does EJB do this job? If so, Should I delegate
this to DB. In this case I think that different implementation should occur
for each type of DB. Am I right?

As reported below. I have also problem in understand how to implement sequence
pattern for key generation in a clustered env and if it is possible execute
specific services on only one server in a cluster. For example, If I should
aggregate some data using a periodical thread I want to do this on only
one server and then replicate the result on others server.

Is this possible?

PS

I am using websphere.







-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
-- ---- ---
Hi,

what kind of data replication are u talking about ?
is there two master databases with which your applications are going to
talk.
or a  master or slave type of db architecture..

what EJB's or other mechanism can do is to refresh their references/cache
when some record is updated in db by an application running in other cluster.

so if you can provide more info, we might be able to help you.

Rajesh

At 12:11 12/07/2004, koala.gnu@(protected) wrote:

> Hi all,
>
> some questions.
>
> 1) Suppose I have a J2EE application with
>
> WEB Tier
> EJB Tier
> Database Tier
>
> I want to use clustering for solve scalability problem but I do not know
> who should be responsible for data replication: EJB or DB?
>
> I mean if on two server I configure EJB layers in clustering, does this
> allow data replication?
> If so, the entity bean should be defined remote or local. Currently I
use
> only local interface since session bean access to them on same JVM.
>
> 2) I use sequence bean pattern for id generation, but how to implement
it
> in a clustered environment. Any link?
>
> 3) again. I have some periodical tasks (call them services) and I want
execute
> them only on one server. It could be a good choice distribute service
> execution
> on server. What pattern I should use?
>
> Thanks.
>
> __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ___
> Tiscali ADSL libera la velocita'!
> Attiva Senza Canone entro il 12 luglio: navighi a 1,5 euro l'ora per i
primi
> 3 mesi,se scegli il modem e' tuo in comodato gratuito e in piu' hai gratis
> SuperMail per 12 mesi. Non aspettare, attivala subito!
> http://abbonati.tiscali.it/adsl/prodotti/640Kbps/
>
> ===================================================================>
Companion Site: http://www.corej2eepatterns.com
> J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
> List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html
> Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)


===================================================================Companion
Site: http://www.corej2eepatterns.com
J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)


__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ___
Tiscali ADSL libera la velocita'!
Attiva Senza Canone entro il 12 luglio: navighi a 1,5 euro l'ora per i primi
3 mesi,se scegli il modem e' tuo in comodato gratuito e in piu' hai gratis
SuperMail per 12 mesi. Non aspettare, attivala subito!
http://abbonati.tiscali.it/adsl/prodotti/640Kbps/

===================================================================Companion
Site: http://www.corej2eepatterns.com
J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.