[Design of Messaging on JBoss (Messaging/JBoss)] - clustered-standalone example
by jmesnil
I'm trying to run clustered-standalone example with the aim of automating it.
I had to tweak run.sh and jbm-configuration.xml to run the 3 cluster nodes without requiring to edit the files.
In run.sh, I commented the CLUSTER_PROPS export (so that it takes the one I exporting in the shell)
In jbm-configuration.xml, I added a sys prop data.dir to configure the root data dir:
| <paging-directory>${data.dir:../data}/paging</paging-directory>
| <bindings-directory>${data.dir:../data}/bindings</bindings-directory>
| <journal-directory>${data.dir:../data}/journal</journal-directory>
| <large-messages-directory>${data.dir:../data}/large-messages</large-messages-directory>
|
With these changes, I can start the 3 servers:
server #1 (using default values)
$ ./run.sh ../config/stand-alone/clustered/
server #2
$ export CLUSTER_PROPS="-Ddata.dir=../data-server1 -Djnp.port=2099 -Djnp.rmiPort=2098 -Djbm.remoting.netty.port=6445"
$ ./run.sh ../config/stand-alone/clustered/
server #2
$ export CLUSTER_PROPS="-Ddata.dir=../data-server2 -Djnp.port=3099 -Djnp.rmiPort=3098 -Djbm.remoting.netty.port=7445"
$ ./run.sh ../config/stand-alone/clustered/
With these changes, the clustered-standalone example works fine.
I'll add a readme.html to the example to explain how to run the example on a single machine.
I'll also automate the example so that it is included in the examples run used as smoke tests
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237588#4237588
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237588
16 years, 9 months
[Design of Messaging on JBoss (Messaging/JBoss)] - Re: Still some examples fail
by gaohoward
I think it's time out issue:
[java] JBMServer err:16:17:42,481 WARNING [org.jboss.messaging.core.cluster.impl.DiscoveryGroupImpl] There seem to be more than one broadcasters on the network broadcasting the same node id
[java] javax.jms.JMSException: Timed out waiting for response when sending packet 30
[java] at org.jboss.messaging.core.remoting.impl.RemotingConnectionImpl$ChannelImpl.sendBlocking(RemotingConnectionImpl.java:1164)
[java] at org.jboss.messaging.core.client.impl.ConnectionManagerImpl.createSession(ConnectionManagerImpl.java:329)
[java] at org.jboss.messaging.core.client.impl.ClientSessionFactoryImpl.createSessionInternal(ClientSessionFactoryImpl.java:962)
[java] at org.jboss.messaging.core.client.impl.ClientSessionFactoryImpl.createSession(ClientSessionFactoryImpl.java:706)
[java] at org.jboss.messaging.jms.client.JBossConnection.authorize(JBossConnection.java:510)
[java] at org.jboss.messaging.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:522)
[java] at org.jboss.messaging.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:115)
[java] at org.jboss.messaging.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:110)
[java] at org.jboss.jms.example.SymmetricClusterExample.runExample(SymmetricClusterExample.java:99)
[java] at org.jboss.common.example.JBMExample.run(JBMExample.java:81)
[java] at org.jboss.jms.example.SymmetricClusterExample.main(SymmetricClusterExample.java:65)
[java] Caused by: MessagingException[errorCode=3 message=Timed out waiting for response when sending packet 30]
[java] ... 11 more
[java]
[java] #####################
[java] ### FAILURE! ###
[java] #####################
[java] Java Result: 1
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237585#4237585
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237585
16 years, 9 months
[Design of JBoss jBPM] - jBPM 4 BusinessCalendar
by bixby
I have a requirement to use a custom BusinessCalendar so that the holidays can be maintained by an end user rather than in the configuration. That in itself is not a problem but it would be nice to be able to implement an interface rather than extend the existing BusinessCalendar and override all the methods, most of which are not used by my implementation.
Currently I have to extend the BusinessCalendar class, remove the existing BusinessCalendar definition from the jbpm.cfg.xml and insert my own definition (I do this with an object tag).
>From what I can see in the source, the only method that gets used by the PVM is the add(Date, Duration) method.
This would just be a small tidy-up but allow for a cleaner replacement of BusinessCalendar implementations.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237504#4237504
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237504
16 years, 9 months