[JBoss Messaging] - Re: Distributed queue, HA-JMS/singleton basic questions
by timfox
"kapucin" wrote :
| One question on fault-tolerange to message loss. Do the messages get replicated across the cluster (using post-office pulling or post-office routing?), so in case a node fails, they are not lost OR are they stored in a database until acknowledged?
|
Persistent messages are pulled. Non persistent are routed
anonymous wrote :
| If it's the database, then I can assume that not persisted messages are lost in case of node failure.
|
Only persistent messages are guaranteed to survive failure. JMS non persistent messages were created to be transient messages that you should only use if you can cope with message loss.
anonymous wrote :
| If it's replication, how does it affect the performance in term of network traffic/resource usage? Are all the messages forwarded/pulled by all the members or only those unread for a # of milliseconds and only a limited number of nodes?
|
Can you be more specific in your question? Seems like there's twenty questions there rolled into one question-ball ;)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104527#4104527
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104527
18 years, 8 months
[JBoss Messaging] - Re: Message stranded in cluster
by timfox
"chip_schoch"
I thought that clients of the clustered queue could connect to whichever node they found first and they would get messages from any partial queue. Is this incorrect?
[/quote wrote :
|
| This is correct, but you want to avoid unnecessary redistribution if you can. Redistribution is designed for the case where you have assymetric producers and consumers.
|
| In your case it seems it would make more sense for each of your windows servers to consume from different redhat servers since you have one less network round trip.
|
| I.e. if each windows server is consuming from its own redhat server then JBM just needs to shift the message from redhat server --> windows server.
|
| If both windows server are consuming from the same redhat server then messages not only have to get from redhat server 1 to windows server 1 and 2, but also from redhat server 2 --> redhat server 1 -> windows server 1 and 2.
|
| Although it's a sub-optimal topology it should still work - things to check:
|
| 1) Are the queus deployed as clustered = true?
| 2) Is each node in the cluster seeing each other? Have a look at the console output from jgroups as they start, when you start the second one you should see the first one registering that.
| 3) Make there is an issue with CR release you are using? Have you tried the latest release?
|
| Hope that helps :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104524#4104524
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104524
18 years, 8 months
[Beginners Corner] - Jboss 4.2.1 mysql-ds.xml initialization error.
by zulqarnain
Hi,
I've installed jboss 4.2.1 and is trying to setup mysql connection.
I've copied mysql-connector-java-5.1.5-bin.jar to ../default/lib/
Also I've setup mysql-ds.xml in ../deploy/ and removed hsqldb* from ../jms/ .
Now when I start the jboss server I got the following error:
2007-11-14 06:23:47,079 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/opt/jboss4/server/default/deploy/mysql-ds.xml
2007-11-14 06:23:51,611 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:
Also below is my mysql-ds.xml file:
<?xml version="1.0" encoding="UTF-8"?>
|
| <datasources>
| <local-tx-datasource>
| <jndi-name>JNDIName</jndi-name>
| <connection-url>jdbc:mysql://localhost:myport/myDBName</connection-url>
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <user-name>username</user-name>
| <password>password</password>
| <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
| <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</valid-connection-checker-class-name>
| <metadata>
| <type-mapping>mySQL</type-mapping>
| </metadata>
| </local-tx-datasource>
| </datasources>
|
Any ideas please....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104519#4104519
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104519
18 years, 8 months