Hi Guys,
To tell you the truth I'm a gumshoe at all this stuff. Since somehow my last
idea vanished in thin air (a generic container). It would be real cool and a
real USP to have a controllable and elegant Clustering Option.
WebLogic 6.0 uses in memory replication and kinds of other funky stuff to
accomplish it. It runs nice in 95% the time, the rest of the time its a pain
in the neck.
So how about this one guys (and gals):
All the clients do not talk directly to the EJBs directly via RMI but, they
use space-Elements to talk to the Cluster as an unit. Each Server in the
cluster picks the Request-Elements, processes them and returns the result to
the client. As the Server can pnly pick new elements, one at a time, the
load is distributed across the cluster, according to the reaction time(the
processing power of the server) and not the number of available servers(as
in the round robbin solution).
All the SessionBeans would have to be Statefull though, and persisted after
each access, to make a User-session available on all machines in the
cluster.
So how do we manage to talk to the Cluster via Elements instead of RMI?
Either we can have "dummy ejbs" which are registered via a public name in
the JNDI-tree, which repackage the RMI-Request to a Space-Element (a rather
simple action) and then dispatches the request. This solution would be
backwards compatible.
Or the clients would talk to the "real space beans" cluster directly. Which
wouldn't be actually J2EE compliant, but a lot cooler.(Eventhough Space is
built on JINI and it on RMI, not?)
What is space?
Look at the Specs on the java.sun.com page, but in a nutshell:
It is built on JINI allowing clients dynamically connect to enviroments, get
all the available services and access them, in a very simple manner.
Eventhough JINI supports Transactions, Security and with space is real easy
to use, it is not considered as a fully grown J2EE Technology.
I hope I wasn't talking alot of BS.
Thanx for not killing me
Stefan Siprell
Software-Development
<<<<<<<<<<<<<<<<<<<<<<<<<<<
<sitewaerts> GmbH
Hebelstr. 15
76133 Karlsruhe
Germany
Tel.: +49 (721) 920 918 22
Fax: +49 (721) 920 918 29
mailto:[EMAIL PROTECTED]
http://www.sitewaerts.de
>>>>>>>>>>>>>>>>>>>>>>>>>>>
-----Ursprungliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im Auftrag von Darius
Davidavicius
Gesendet: Mittwoch, 28. Februar 2001 17:59
An: JBoss-Dev
Betreff: [jBoss-Dev] Pseudo clustering
I was playing with jBoss a while and did such thing:
Connections balancer - Using Balancer client (my swing GUI) gets URL of
Application server and connects to it.
Balancer has the list of available Servers and returns URL using
round-robin.
My swing GUI using RMI connects Balancer and gets URL during connect to
server.
Its like fake of real balancing.
Hope working you JBoss team helps me understant how correct should be
designed clustering.
D&D
Darius Davidavicius
Living-Source
http://www.living-source.com/team_employee.php3?e_id=9&e_nextid=2
ICQ: 18325334