File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Oracle/OAS and the fly likes �how to clustering with OC4J? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "�how to clustering with OC4J? " Watch "�how to clustering with OC4J? " New topic
Author

�how to clustering with OC4J?

carolina espinoza
Greenhorn

Joined: Nov 09, 2004
Posts: 8
Hi:
I need configuration for a clustering with OC4J, in windows 2000. Please...if to me help.

Sorry for my english....
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30510
    
150

Carolina,
Welcome to JavaRanch!

This article from Oracle walks you through the steps.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
carolina espinoza
Greenhorn

Joined: Nov 09, 2004
Posts: 8
thanks for the Link... but I have another doubt... Se can make
cluster with OC4J without using a node that works like load
balancer?

Beforehand thank you very much
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30510
    
150

Carolina,
From the link:
With EJB clustering there is no separate load balancing process. Instead each application client discovers, either statically or dynamically, which OC4J instances are involved in the cluster. Once the application client has a list of available instances it randomly chooses one to connect to. In the event of an application failure the client application will automatically use another instance. OC4J will take care of any state and data replication that is required.

So you definitely don't need a load balancer. If this is a web application, a plugin file on the webserver can do the load balancing. If it is some other type of client, you need to give the client a list of possible nodes.
carolina espinoza
Greenhorn

Joined: Nov 09, 2004
Posts: 8
What I need to do is to have 2 servants where is running the
application OC4J, then that the client does not know that there are
2 servants, that is to say, that is totally transparent; that it is
connected to a URL I specify.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30510
    
150

Carolina,
Are you using a web server?
carolina espinoza
Greenhorn

Joined: Nov 09, 2004
Posts: 8
no...
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30510
    
150

Since you are not using a web server and want the clients to not know about the cluster, you will need a load balancer after all.
carolina espinoza
Greenhorn

Joined: Nov 09, 2004
Posts: 8
I have installed Windows 2000 and ORACLE9iAS and must make
cluster to increase the concurrence to the OC4j, and the idea is
that the clients do not know that they are several servants, but that
thinks that he is a single servant, but not like beginning.... from
already thank you very much
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30510
    
150

Carolina,
I'm sorry I don't understand what the question is.
carolina espinoza
Greenhorn

Joined: Nov 09, 2004
Posts: 8
If it had a Web server, Could make cluster without using a load
balancer?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30510
    
150

Originally posted by carolina espinoza:
If it had a Web server, Could make cluster without using a load
balancer?

Yes. In effect the web server would be functioning an a very lightweight load balancer. This is transparent to everybody though, so from your point of view there is no need for a load balancer.

[edited to fix spelling error]
[ November 13, 2004: Message edited by: Jeanne Boyarsky ]
carolina espinoza
Greenhorn

Joined: Nov 09, 2004
Posts: 8
But that is better, to use a load examiner of accounts or no?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30510
    
150

Carolina,
My personal preference is to use the web server. But that is just a personal preference. I'm not sure if it is a best practice.
carolina espinoza
Greenhorn

Joined: Nov 09, 2004
Posts: 8
Hello Jeanne:

You could give your email me to be able question?

From already, thank you very much
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: �how to clustering with OC4J?