[jboss-user] [JBoss Messaging Users] - how to connect jboss MDB to jboss messaging - different ver
Hi, we have been trying to connect an MDB running inside JBoss to a remote queue in JBoss Messaging. But since the naming context factory class of the remote JBoss messaging server has the same name and package name as the local JBoss naming context factory, BUT A DIFFERENT VERSION, JBoss will load the wrong version, and when the connection factory is loaded, it explodes. How do we tell JBoss to load a specific version (jar) of the naming factory to give to the MDB? thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269748#4269748 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269748 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Wrong target. class org.jboss.jms.client.delegate.Client (Repost)
I actually found out the problem, I was using the wrong jar version. but then another problem arose: how do i recover with maven this file, given that it has dots in the directory name: http://repository.jboss.com/jboss/messaging/1.4.0.SP3/lib/jboss-messaging-client.jar If I do: | | | org.jboss.client | jbossall-client | 4.0.5.GA | compile | then maven tries for http://repository.jboss.com/jboss/messaging-client/1/4/0-SP3/lib/jboss-messaging-client/1.4.0-SP3/jboss-mesaging-client-1.4.0-SP3.jar How do I do that? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232296#4232296 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232296 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Wrong target. class org.jboss.jms.client.delegate.Client
I actually found out the problem, I was using the wrong jar version. but then another problem arose: how do i recover with maven this file, given that it has dots in the directory name: http://repository.jboss.com/jboss/messaging/1.4.0.SP3/lib/jboss-messaging-client.jar If I do: org.jboss.client jbossall-client 4.0.5.GA compile then maven tries for http://repository.jboss.com/jboss/messaging-client/1/4/0-SP3/lib/jboss-messaging-client/1.4.0-SP3/jboss-mesaging-client-1.4.0-SP3.jar How do I do that? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232296#4232296 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232296 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Wrong target. class org.jboss.jms.client.delegate.ClientConn
I get an error when trying to retrieve a remote connection: Properties prop = new Properties(); prop.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); prop.put(Context.PROVIDER_URL, "jnp://*:64115"); prop.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); Context jndiContext = new InitialContext(prop); ConnectionFactory factory = (ConnectionFactory) jndiContext.lookup("java:/ConnectionFactory"); Queue queue = (Queue) jndiContext.lookup("java:/queue/A"); Connection connection = factory.createConnection(); On createConnection() I get: Exception in thread "main" java.lang.IllegalArgumentException: Wrong target. class org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate for public org.jboss.jms.delegate.CreateConnectionResult org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(java.lang.String,java.lang.String,int) throws javax.jms.JMSException at org.jboss.aop.joinpoint.MethodInvocation.handleErrors(MethodInvocation.java:141) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:116) at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:81) at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java) at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205) at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:87) at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:82) at simple.JMSLauncher.(JMSLauncher.java:55) at simple.JMSLauncher.main(JMSLauncher.java:65) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232235#4232235 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232235 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: how to connect to JB messaging outside of jboss server
Thanks! I hadn't thought of the fact that jndi can return an rmi stub of the connection factory. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230390#4230390 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230390 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - how to connect to JB messaging outside of jboss server
Hi, how do I go about connecting to an instance of JB Messaging when I am outside of JB server? Is it something of this kind: ClientConnectionDelegate ccd = new ClientConnectionDelegate(); JBossConnectionFactory jbc = new JBossConnectionFactory(ccd); or maybe it's best to instantiate a JB messaging instance in-jvm and get the factory from it? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230075#4230075 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230075 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: sending large files - out of band
Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205321#4205321 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205321 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - sending large files - out of band
How effective is JBM in transporting messages containing rather large files? Is there an out of band provision so that memory will not be hogged? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204915#4204915 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204915 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user