[Clustering/JBoss] - Re: Can't reconnect to JMS server after cluster node goes do
by kratosh
I'm using a QueueSender in some class of mine in order to send messages to the queue. And i use a QueueConnection that is created by QueueConnectionFactory.
I use MDB for getting messages from the queue, not sending to the queue. And the problem is with sending the messages.
I looked at the wiki page you gave me, but i think they only explain how to get rid of the errors in the log. while i see in the log that the JMS server reconnected, but then when i try to send a message to it it fails - that means, i think, that the queue is not connected.
What else can i do?
I use jboss4.0.3.
Another thing i noticed is that when the 2 nodes are on different machines, the failover is done correctly, and after the reconnection the message sending succeeds. I see the problem only when the 2 nodes are on the same machine... strange... any idea how it can be related to that?
Also, i tried to stop and start my queue through JMX-console and it didn't help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005506#4005506
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005506
19 years, 3 months
[EJB/JBoss] - Listening Remote Topic from MDB
by jp_ammu
Hi All,
I have gone through the JBOSS article http://wiki.jboss.org/wiki/Wiki.jsp?page=HowDoIConfigureAnMDBToTalkToARem... . I haven't been successfull yet though i have done exactly the same way.
Iam using JBOSS 4.0.2(A) and 4.0.3(B) jboss serevers
1) Remote Topic is configured on B tied to JNDI
2) MDB is running in server A
Here are configuration on A
jms-ds.xml
--------------------
PrcChgTopicProvider
org.jboss.jms.jndi.JNDIProviderAdapter
UIL2XAConnectionFactory
UIL2XAConnectionFactory
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=192.168.1.182:1099
-----------------------------------------
here the IP address is of server B
ejb-jar.xml
--------------------------
<message-driven>
<ejb-name>RibRegPrcChgMDB</ejb-name>
<ejb-class>com.skillnetinc.storehub.connector.rpm.publisher.ejb.publishPriceChanges.RibRegPrcChgMDB</ejb-class>
<transaction-type>Container</transaction-type>
<acknowledge-mode>Auto-acknowledge</acknowledge-mode>
<message-driven-destination>
<destination-type>javax.jms.Topic</destination-type>
</message-driven-destination>
----------------------------------------
jboss.xml
-----------------------------------------
<message-driven>
<ejb-name>RibPrmPrcChgMDB</ejb-name>
<configuration-name>Standard Message Driven Bean</configuration-name>
<destination-jndi-name>topic/etPrmPrcChgFromRPM</destination-jndi-name>
<invoker-binding>
<invoker-proxy-binding-name>PrcChgTopicProvider</invoker-proxy-binding-name>
</invoker-binding>
</message-driven>
<invoker-proxy-binding>
PrcChgTopicProvider
<invoker-mbean>does-not-matter</invoker-mbean>
<proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
<proxy-factory-config>
PrcChgTopicProvider
StdJMSPool
1
15
30000
1
10
queue/DLQ
10
0
</proxy-factory-config>
</invoker-proxy-binding>
----------------------------------------------------
3) Do i need to create same remote topic on server A ? Since my MDB refers the topic, when i deploy MDB on server A it is complaining the topic is not created. Ideally it should look into topic on Server B
4) After completion of configurations on both servers, iam publishing messages on B's topic .(The publisehr client is running on B) I don't see any messages from MDB on A
Can any one tell me how to solve that. Spending lot of time and different approaches in this topic no luck so far.
5) After acheiving this, i would like to switch JBoss server B with external JMS servers. Like oracle app server. Then what configuartion i should make at server A and MDB? I heard about foreign providers(JMS) , i don't know how to configure.
Please show some light.
Thanks,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005496#4005496
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005496
19 years, 3 months
[Installation, Configuration & Deployment] - Symlink Resouce bundles and symlinks
by YosarianTheGreat
We're trying to upgrade to 4.0.5 but have hit a snag. We use Class.findResource and ResourceBundle.getBundle to locate properties files which exist in WEB-INF/classes. Because we have different environments (dev, stage, prod) we need multiple versions of these properties files. In order to keep from having a mess in source control, we have three distinct files and symlink to the correct file in the given environment. Previously with 4.0.1 this worked fine, but with 4.0.5 it can't locate the file. Removing the symlink and making a copy or even making a hard link works, but symlinks don't. Hard links is a workable solution, but it's not as desirable as symlinks b/c it looks like a distinct file, and that might be confusing.
Here's what we have:
WEB-INF/classes/Configuration.properties -> WEB/classes/Configuration.properties.prod
WEB-INF/classes/Configuration.properties.dev
WEB-INF/classes/Configuration.properties.stage
WEB-INF/classes/Configuration.properties.prod
David
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005436#4005436
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005436
19 years, 3 months