[JBoss-user] [Clustering/JBoss] - Re: Dynamically create JMS destinations in clustered environ
The queue will be persistent if you configured the JMS provider to use persistent queues (the file hsqldb-jdbc2-service.xml in the deploy-hasingleton/jms directory configures the persistent storage using hypersonic DB) There is no secondary JMS server where the queue can be added. When deploying JMS on a clustered environment, it is running ONLY on the master node. Any node using JMS must connect to this node. If the node goes down, it gets redeployed on the newly selected master node (this occurs for all services deployed in the deloy-hasingleton directory) The service described in this thread describes a service that automatically detects the master node, and delegates the creation of JMS queues to that node. When the master node goes down, and a new node is selected to host the JMS provider, then the service will automatically direct the subsequent queue creation calls to that new node. For 'normal' usage of JMS (sending / receiving), use the cluster wide jndi-context (listening on port 1100) to get the JMS ConnectionFactories. The connection factories will take care of routing the message to the correct node . The RMIAdapter is intended to be used to invoke a method on an MBean on the master node of a cluster (e.g. when trying to create a queue at runtime), View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3934026#3934026 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3934026 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: Dynamically create JMS destinations in clustered environ
Hi, I did indeed found a solution for this. Check wiki: http://www.jboss.org/wiki/Wiki.jsp?page=JBossHASingletonRemoteAccess This wiki explains how to deploy an RMI invoker that can be used to invoke methods on singleton MBeans from anywhere in the cluster. This invoker is deployed as a singleton (deploy-hasingleton) on the each node in a cluster, and binds itself to HAJNDI, which makes it available cluster-wide. The invoker will delegate all calls to it's local MBeanServer. Since the RMIAdapter is deployed in the deploy-hasingleton directory, this will always be the MBeanServer that is also running the JMS DestinationManager MBean After you deploy this RMI invoker, you can create a queue at runtime by invoking the DestinationManager through this rmi-invoker: // Get HAJNDI InitialContext Properties env = new Properties(); env.setProperty(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory); env.setProperty(Context.PROVIDER_URL, localhost:1100); env.setProperty(Context.URL_PKG_PREFIXES, org.jboss.naming:org.jnp.interfaces); InitialContext context = new InitialContext(env); // Get the RMI Invoker RMIAdaptor rmiAdaptor = (RMIAdaptor) context.lookup(jmx/invoker/SingletonRMIAdaptor); // Create the queue by delegating the call to the 'master' server // through the RMI invoker ObjectName objectName = new ObjectName(jboss.mq:service=DestinationManager); rmiAdaptor.invoke(objectName, createQueue, new Object[] {name}, new String[] {java.lang.String}); This solution is working fine for me. Hope it helps you as well. Regards, Chris View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3871920#3871920 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3871920 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - All singleton services on the same JBoss
A question about Singleton services: Assuming that I put singleton services NOT in the deploy-hasingleton directory, but in the deploy (or farm) directory: When a master is chosen for the singleton services, is there always one JBoss instance chosen as master for ALL singleton services, or can each singleton service have it's 'own' master assigned. E.g. if I configure the following two services SingletonA and SingletonB, each with a SingletonController: | mbean code=cluster.test.singleton.SingletonA | name=cluster.test:service=SingletonA | /mbean | | | mbean code=cluster.test.singleton.SingletonB | name=cluster.test:service=SingletonB | /mbean | | mbean code=org.jboss.ha.singleton.HASingletonController | name=cluster.singleton:service=SingletonAController | dependscluster.test:service=SingletonA/depends | dependsjboss:service=DefaultPartition/depends | attribute name=TargetNamekiala.test:service=SingletonA/attribute | attribute name=TargetStartMethodstartSingleton/attribute | attribute name=TargetStopMethodstopSingleton/attribute | /mbean | | mbean code=org.jboss.ha.singleton.HASingletonController | name=kiala.singleton:service=SingletonBController | dependskiala.test:service=SingletonB/depends | dependsjboss:service=DefaultPartition/depends | attribute name=TargetNamekiala.test:service=SingletonB/attribute | attribute name=TargetStartMethodstartSingleton/attribute | attribute name=TargetStopMethodstopSingleton/attribute | /mbean | I deploy these services on multiple JBoss instances in the deploy directory. When I startup the cluster, the services are running on only one JBoss. My question is, will these services always run on the same JBoss. If the current master goes down, will there be one new master selected for all services, or will one JBoss instance be selected for each service separately, possibly causing singletonA and singletonB to run on differnet servers. I am running JBoss-3.2.4 (will soon upgrade to 3.2.7, so if there is a difference related to this question please tell) Chris View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3868665#3868665 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3868665 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Dynamically create JMS destinations in clustered environment
Hi all, I have deployed JMS in a clustered environment, using the 'all' server configuration. In this configuration, the JMS DestinationManager service is deployed as a singleton service. I want to create queues on demand from within my application. Before we were running in a clustered environment, I retrieved the DestinationManagerMBean, and called the createQueue(..) method. Now this poses a problem, because the code that wants to create the queues is deployed on both JBoss instances. When I try to create a queue from the JBoss instance where the DestinationManager is NOT deployed, I get an exception saying that it cannot find the DestinationManager service (which is normal, since it is running on the other JBoss). My question: Is there a way to invoke a method from the singleton service (DestinationManager) from anywhere in the cluster, while the code does not know if it is running on the master node ? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3868532#3868532 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3868532 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JCA/JBoss] - Re: No ManagedConnections available ...
We had the same issue. This is related to a bug in Jboss ConnectionPool. The bug has been fixed in jboss 3.2.6 For details: http://sourceforge.net/tracker/index.php?func=detailaid=985318group_id=22866atid=376685 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3862127#3862127 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3862127 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user