-
1. Re: Clustering in StandAlone Mode
jaikiran Jun 12, 2012 12:30 AM (in response to wichkabashir)Which AS7 version? What does the client code look like? What does the bean code look like?
-
2. Re: Clustering in StandAlone Mode
wichkabashir Jun 12, 2012 5:31 AM (in response to jaikiran)I am using AS 7.1.0 and the client code looks up the Stateless Session Clustered bean, using notation
final
Hashtable jndiProperties =
new
Hashtable();
jndiProperties.put(Context.URL_PKG_PREFIXES,
"org.jboss.ejb.client.naming"
);
final
Context context =
new
InitialContext(jndiProperties);
context .lookup("ejb:/jboss-as-ejb-remote-app//PingBean!com.anc.as.server.ejb.remote.stateless.RemotePingBean");
and used jboss-ejb-client.properties where hostname A ( only) is mentioned.
I am not sure how do I choose to create cluster 1 having A and B nodes and cluster 2 with C and D nodes. And also failover doesn't work. If A fails clients doesnt fall to another node (e.g B) in the cluster.
Thanks,
Basheer
-
3. Re: Clustering in StandAlone Mode
jaikiran Jun 12, 2012 5:37 AM (in response to wichkabashir)Please try the latest nightly build https://community.jboss.org/thread/167590. It should be fixed there. We had a couple of issues which were fixed post 7.1.0.Final and 7.1.1.Final:
-
4. Re: Clustering in StandAlone Mode
wichkabashir Jun 13, 2012 4:54 PM (in response to jaikiran)Hi JaiKiran,
The latest Jboss fixed the issue of clustering but my bindingings are not working any more. I am getting error :
16:25:17,403 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 42) JBAS014613: Operation ("add") failed - address: ([
("subsystem" => "naming"),
("binding" => "queue_mbQueue")
]) - failure description: "JBAS011864: Invaliding binding name queue_mbQueue, name must start with one of [java:global, java:jboss, java:/]"when my naming subsystem looks like this :
<subsystem xmlns="urn:jboss:domain:naming:1.2">
<bindings>
<simple name="queue_mbQueue" value="real_queue"/>
</bindings></subsystem>
This was working perfectly fine with jboss AS 7.1.0 final but 7.2..Alpha it is working any more.
Can you comment on this please?
Thanks,
Basheer