[JBoss Messaging] - How to create persistent queues on the fly
by jbmuser
Hi Folks,
The queues I create using JMSServerControlMBean as shown below, are not persistent (i.e. they don't survive a server restart). How could I make it persistent? Please note that I can not use JBM Core API.
| JMXConnector connector = JMXConnectorFactory.connect(new JMXServiceURL(JMX_URL), new HashMap());
|
| MBeanServerConnection mbsc = connector.getMBeanServerConnection();
|
| ObjectName name=new ObjectName("org.jboss.messaging:module=JMS,type=Server");
| JMSServerControlMBean control = (JMSServerControlMBean)MBeanServerInvocationHandler.newProxyInstance(mbsc,name,JMSServerControlMBean.class,false);
| control.createQueue("TestQ","test");
I understand what the javadoc for session.createQueue() says, i.e. "The physical creation of queues is an administrative task and is not to be initiated by the JMS API". However, I have an exceptional case where I HAVE to create queues dynamically. Other JMS implementations like ActiveMQ and Fiorano supported physical creation of queues through session.createQueue() API but it seems JBM does not support it. Any help is greatly appreciated. I am using JBM 2.0.0.BETA2
Thanks
Bijith Kumar
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239255#4239255
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239255
16 years, 10 months
[Security & JAAS/JBoss] - Re: Cannot Deploy SSO Federation EAR
by nick.hoyle
To get JBoss Federated SSO working in JBoss AS 5.1.0 i did the following:
1) delete the following file:
deploy\jboss-federation-server-exploded.ear\META-INF\application.xml
- this is no longer needed in JBoss AS 5.1.0 as it scans for the files and does not to be told about them (mentioning them in the application.xml causes it to fail as it would be deploying them twice)
2) Rename:
org.jboss.security.federation.service.FederationService.java
to:
org.jboss.security.federation.service.FederationMBean.java
and update references in org.jboss.security.federation.servlet.SSOFederationServer
- this is needed because (i think) the spec requires that the name of the interface matches the name of the implementation class +"MBean" and this is now required for JBoss AS 5.1.0
3) re-build and re-deploy the jboss-federation-server-exploded.ear
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239253#4239253
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239253
16 years, 10 months
[Clustering/JBoss] - JBoss Clustering, no Failover ?
by steppi
Hey guys.
I have installed two JBoss 5.1 AS and startet it with th standard-all-config.
I prepared the booking-example the of the Seam Framework for "clustering" (set distributable and changed the Information the JIRA provides).
Next step was to deploy the example to the Farm-Folder after starting both JBoss 5.1 GA instances with the all config successfully.
Deploying was ok, also the replication to the second node.
So far, so good.
Now I tried to start a http-session of the SEAM booking example by entering <IP first node>:/seam-booking and login in into an account.
The Problem now... there is no session replication?
I set the example to distributable, changed the annotation to "true".
What could be the problem.
why does replication doesn't work?
Greetz Steppi
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239252#4239252
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239252
16 years, 10 months
[Remoting] - Problem with remote JBM access from applet running on conflu
by kweeboo
Hi,
I encountered problem in making remote JBM connection to jboss-5.0.0.GA from an applet client that is residing inside atlassian confluence 2.7.3. Somehow, the problem is related to MarshallerEditor.class.
Below is the Java Console's Log:
[aop-trace] org.jboss.util.propertyeditor.PropertyEditors Mapping properties for bean: SocketClientInvoker[9d8ab8, bisocket://192.168.2.118:4457]
[aop-trace] org.jboss.util.propertyeditor.PropertyEditors Property editor found for: pingFrequency, editor: java.beans.PropertyDescriptor@7ca65360, setter: public void org.jboss.remoting.transport.bisocket.BisocketClientInvoker.setPingFrequency(int)
[aop-trace] org.jboss.util.propertyeditor.PropertyEditors Property editor found for: numberOfCallRetries, editor: java.beans.PropertyDescriptor@60366bd6, setter: public void org.jboss.remoting.transport.socket.MicroSocketClientInvoker.setNumberOfCallRetries(int)
[aop-trace] org.jboss.util.propertyeditor.PropertyEditors Property editor found for: marshaller, editor: java.beans.PropertyDescriptor@78a439ee, setter: public void org.jboss.remoting.MicroRemoteClientInvoker.setMarshaller(org.jboss.remoting.marshal.Marshaller)
network: Cache entry not found [url: http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT..., version: null]
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with proxy=DIRECT
network: Connecting http://localhost:8090/ with proxy=DIRECT
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with cookie "confluence.browse.space.cookie=space-attachments; JSESSIONID=979027F0B52002F1DAB41EACEB4446C5"
network: Cache entry not found [url: http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT..., version: null]
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with proxy=DIRECT
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with cookie "confluence.browse.space.cookie=space-attachments; JSESSIONID=979027F0B52002F1DAB41EACEB4446C5"
network: Cache entry not found [url: http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT..., version: null]
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with proxy=DIRECT
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with cookie "confluence.browse.space.cookie=space-attachments; JSESSIONID=979027F0B52002F1DAB41EACEB4446C5"
network: Cache entry not found [url: http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT..., version: null]
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with proxy=DIRECT
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with cookie "confluence.browse.space.cookie=space-attachments; JSESSIONID=979027F0B52002F1DAB41EACEB4446C5"
network: Cache entry not found [url: http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT..., version: null]
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with proxy=DIRECT
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with cookie "confluence.browse.space.cookie=space-attachments; JSESSIONID=979027F0B52002F1DAB41EACEB4446C5"
java.lang.RuntimeException: Failed to download and/or install client side AOP stack
at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:199)
at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:87)
at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:82)
at mytest.JBMTestApplet.invokeJMS(JBMTestApplet.java:77)
at mytest.JBMTestApplet$1.actionPerformed(JBMTestApplet.java:39)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: org.jboss.jms.exception.MessagingNetworkFailureException: Failed to connect client
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createClient(ClientConnectionFactoryDelegate.java:313)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$getClientAOPStack$aop(ClientConnectionFactoryDelegate.java:232)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.getClientAOPStack(ClientConnectionFactoryDelegate.java)
at org.jboss.jms.client.ClientAOPStackLoader.load(ClientAOPStackLoader.java:75)
at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:192)
... 28 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:450)
at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:349)
at org.jboss.remoting.Client.connect(Client.java:495)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createClient(ClientConnectionFactoryDelegate.java:309)
... 32 more
Caused by: java.lang.ClassFormatError: Truncated class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.beans.Introspector.instantiate(Unknown Source)
at java.beans.PropertyEditorManager.findEditor(Unknown Source)
at org.jboss.util.propertyeditor.PropertyEditors.mapJavaBeanProperties(PropertyEditors.java:369)
at org.jboss.remoting.util.SecurityUtility$29.run(SecurityUtility.java:819)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.remoting.util.SecurityUtility.mapJavaBeanProperties(SecurityUtility.java:815)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.setup(MicroSocketClientInvoker.java:491)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.(MicroSocketClientInvoker.java:270)
at org.jboss.remoting.transport.socket.SocketClientInvoker.(SocketClientInvoker.java:75)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.(BisocketClientInvoker.java:161)
at org.jboss.remoting.transport.bisocket.TransportClientFactory.createClientInvoker(TransportClientFactory.java:44)
... 40 more
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239247#4239247
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239247
16 years, 10 months