FYI:
| javax.naming.Context context = new InitialContext(System.getProperties());
| org.jboss.ha.framework.interfaces.HAPartition haPartition =
| (org.jboss.ha.framework.interfaces.HAPartition) context.lookup("HAPartition/" + partitionName);
| org.jboss.ha.framework.interfaces.ClusterNode[] nodes = haPartition.getClusterNodes();
| for (int index = 0; index < nodes.length; index++) {
| System.out.println(nodes[index].getName());
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154444#4154444
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154444
Hi!
There are plans to implement this feature in a future version of JBoss AOP.
However, the current way of doing this today is to write an around advice and catch the exception from it:
| public Object handlerAdvice(Invocation invocation) throws Throwable
| {
| try
| {
| invocation.invokeNext();
| } catch(YourException e)
| {
| // handle exception
| }
| }
|
By applying this advice to all your public methods, you will end up with a single try-catch algorithm being applied to all those methods.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154439#4154439
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154439
I am running clustered JBoss Cache 1.4.1 in JBossAS 4. JBoss Cache is running as an MBean configured via xml file deployed in the "deploy" directory. Next step in my development process is to deploy the cache configuration file inside the war file, so that it can be managed/deployed along with the rest of the application codebase.
I followed instructions on this Wiki page: http://wiki.jboss.org/wiki/JBossCacheMBeans. Using the same configuration file, which works well for me when deployed in the "deploy" directory, I get the following stack trace when the treecache.startService(); is called:
org.jgroups.ChannelException: unable to setup the protocol stack
at org.jgroups.JChannel.init(JChannel.java:1273)
at org.jgroups.JChannel.(JChannel.java:265)
at org.jgroups.JChannel.(JChannel.java:248)
at org.jboss.cache.TreeCache._createService(TreeCache.java:1474)
at org.jboss.cache.TreeCache.startService(TreeCache.java:1529)
Any help would be greatly appreciated.
Cheers,
~george
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154435#4154435
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154435
Oh, and one question. When you start the server, a few lines before the "Started in xxx seconds" log message, there will be another log message that looks like this:
10:40:09,859 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
Could you post that for both of your servers?
Also, I just noticed that you posted this in the messaging forum, when the question has nothing to do with messaging. Probably should have asked in the Installation, Configuration & DEPLOYMENT forum.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154405#4154405
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154405