[Clustering/JBoss] - Re: Pooling in Buddy Replication
by ï¼ jb0ss
Thanks Manik for your response!
But I could not find this happening in my case.
Let me explain
Now my scenario is that - I have four nodes on my machine (four multiple instances on my machine)
node1 and node2 --> pool1
node3 and node4 --> pool2
C:\jboss-4.0.5.GA\server\node4\deploy\tc5-cluster.sar\META-INF\jboss-service.xml -- This is the file which I changed
I deployed the application war on all the nodes.
I have Apache+mod_jk configured for my jboss. I am calling my application now in the browser.
http://localhost/OnlineShopping - I click on submit to log in
It gives me a URL like this
http://localhost/OnlineShopping/login.do;jsessionid=wdlhqzxNG1lDE56xWLSza...
And I assume that my request was served by node2
Now I stop node2 after doing some shopping and there is data in the session
APP is working fine here.
Now I stop node1
APP is working fine -- But Application has not failed because node1 and node2 were from pool1.
It seems here that application has data backed up on node3 and node4 (which are from pool2)
because when I stop now node3
My Application is still running fine. I can continue shopping and data is successfully retrievable from session and so on
It does not FAIL.
Now I don't understand why it does not fail?
What is the meaning of pool-names here by naming pool1 for node1 and node2
and pool2 for node3 and node4.
Can you please explain/suggest more?
Thanks
Vishal
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021016#4021016
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021016
19Â years, 2Â months
[EJB 3.0] - Composite Key is made up by foreign keys
by mrchit_2000
Hi all,
I have problem finding out how to specify the member of the composite key are foreign keys pointing to primary key of other tables.
For example, If my composite key have 2 columns (A,B). I created wrapper like
public final class CompKey implements Serializable {
private int A;
private int B;
public boolean equals(Object obj) {
..............
}
public int hashcode() {
...........
}
}
Then in my class I will use
@IdClass(CompKey.class)
@Entity
public class MyClass implements Serializable{
private int A;
private int B;
}
But now I want to specify A and B as foreign keys, how do I do that? I tried using @JoinColumn and add 2 more fields to class MyClass but that gives me error saying the column names A and B are repeated.
Can someone tell me how to specify A and B as foreign key but can still use them as composite key at the same time?
Thank you very much in advance,
Lngo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021009#4021009
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021009
19Â years, 2Â months
[JBoss Messaging] - Does HA-JNDI provides load balancing ?
by sathish_06
Hi,
We tried to setup JBoss clustering/HA-JNDI for JBoss Messaging system, but observed that it provide failovers but not Load balancing.
Version details : Jboss 4.0.4 AS, Jboss Messaging 1.0.1.SP4
Summary: We setup two instance of Jboss messaging system with HA-JNDI enabled. There is one publisher(standalone java application) where we configured JNDI provide url as java.naming.provide.url=jbossinstance1:1100, jbossinstance2:1100.
We observed that when we publish lots of msgs, then all msgs goes to one jboss messaging instant, and not even single msg goes to other instance.
But, when we stopped messaging instance where all msgs arrives, producer starts sending msgs to the second jboss messaging instance, without any kind of interruption in the producer application.
So, we found that its provides failovers, but not load balancing.
We referred the information found in the url for setting up HA-JNDI: http://docs.jboss.org/jbossas/jboss4guide/r4/html/cluster.chapt.html
The information also says that load balancing also supports in JNDI clustering, which is not happening in our setup.
But, we are aware that Jboss messaging 1.0.1.SP4 doesn't support clustering, but 1.2 start supporting clustering mechanism.
Clarification :
1) Doest HA-JNDI with Jboss 4.0.4 AS & jboss messaging 1.0.1.SP4 supports load balancing ? If yes can you pls help us in directing to the right information where we can find the setup details.
2) If HA-JNDI with jboss messagins 1.0.1 version doesn?t support load balancing, will jboss messaging 1.2, which has clustering feature supports both failovers & load balancing ?
Thx, Sathish
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021004#4021004
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021004
19Â years, 2Â months