[JBoss-user] [Clustering/JBoss] - Re: HA-JNDI in Cluster on 1 PC
One question. Can i also edit the jndi.properties for each JBoss server in a cluster instead of configuring my client application. It runs within the cluster so it shouldn't be aware of any HA-JNDI configuration. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3942096#3942096 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3942096 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: HA-JNDI in Cluster on 1 PC
If you change the jndi.properties within the server, you'll screw up the internal function of the server. You're much better off building up a Properties object and passing that to your InitialContext. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3942181#3942181 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3942181 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: HA-JNDI in Cluster on 1 PC
I did that and it worked until i tested the failover. It seems that my Spring Bean does not know how to reconnect on the failover node: 2006-05-09 14:51:18,512 WARN [org.jboss.mq.Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error and reconnect org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable: (java.net.SocketException: Connection reset) at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:66) at org.jboss.mq.Connection.asynchFailure(Connection.java:437) at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:156) at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:413) at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:345) at java.lang.Thread.run(Thread.java:534) Caused by: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) at java.io.BufferedInputStream.read(BufferedInputStream.java:201) at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:67) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2133) at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2313) at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2380) at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2452) at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2601) at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845) at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:290) ... 1 more I made my own implementation using HASingletonSupport so the JMSSender only works on the masternode but this is a workaround for now. Thanks for the input View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3942189#3942189 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3942189 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: HA-JNDI in Cluster on 1 PC
Hi, I'm using SpringJMS for the plumming: 1 ConnectionFactory I just read that you can add environment properties to the template so i'll add the 2 nodes. But this is just a testenvironment, in real life we have 2 different machines, each hosting a node and running HA-JNDI on port 1100. My problem with adding env-props is that before i deploy my application in a real environment, i have to change these settings. My app is not a remote client but an app running in the cluster. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3941780#3941780 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941780 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: HA-JNDI in Cluster on 1 PC
Dead end again. The env-props work for a different bean with the same name. I'm posting on the Spring forum as well. Nevertheless, i hope that the cluster documentation in the admin guide will be more extensive, especially for different environments and JMS. Thanks, Maarten View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3941786#3941786 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941786 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: HA-JNDI in Cluster on 1 PC
It almost works but the following line: javax.naming.provider.url=node1:1100,node2:1200 is a bit unclear on a multihomed machine. What do i need to fill in for node1 and node2? The name i gave the nodes? That doesn't work. Any suggestions? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3941810#3941810 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941810 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: HA-JNDI in Cluster on 1 PC
Yep, that did it, i had to add some more Springplumming but it works fine now. Thanks for the input. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3941867#3941867 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941867 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: HA-JNDI in Cluster on 1 PC
Use your server addresses. For example - java.naming.provider.url=localhost:1100,localhost:1200 -or- java.naming.provider.url=192.168.1.100:1100,192.168.1.101:1100 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3941863#3941863 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941863 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: HA-JNDI in Cluster on 1 PC
Unfortunalty it does not work without the 'java:/' prefix. I get javax.naming.NameNotFoundException: ConnectionFactory not bound. On a multihomed PC you have to change the HA-JNDI port by changing the jboss-service.xml in the conf directory and the cluster-service.xml in the deploy directory. So how can i look up the JMS ConnectionFactory on Node2 when Node1 is the masternode and contains the JMS service. From the admin guide: The HA-JMS client must obtain JMS connection factories from the HA-JNDI (the default port is 1100). What am i missing? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3941772#3941772 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941772 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: HA-JNDI in Cluster on 1 PC
How are you configuring your InitialContext? What are you setting as your javax.naming.provider.url? Should be something like javax.naming.provider.url=node1:1100,node2:1200 assuming HA-JNDI is bound to 1100 on 1 and 1200 on 2. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3941773#3941773 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941773 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: HA-JNDI in Cluster on 1 PC
HA-JNDI definitely works in a single machine cluster. I use it in this mode frequently and all of the HA-JNDI tests in the test suite do so as well. You can differentiate the HA-JNDI servers either through service-bindings or by using multihome addresses. In either case, HA-JNDI should work properly. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3941264#3941264 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941264 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: HA-JNDI in Cluster on 1 PC
You have to look up ConnectionFactory, not java:/ConnectionFactory. java:/ConnectionFactory is for the JVM invocation layer, which only works in the same JVM as the JMS server. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3941436#3941436 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941436 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user