[jboss-user] [Messaging, JMS & JBossMQ] - MDB Error (JBOSS server 4.3.2 listens to SoincMQ 6.1)

Milochanzy do-not-reply at jboss.com
Fri Apr 25 10:46:21 EDT 2008


Hi,

I am trying to deploy an MDB on the JBOSS server 4.3.2 which listens to a remote SoincMQ 6.1. I am gettting following error:

 anonymous wrote : 
  | javax.jms.JMSException: The connection was rejected by the broker - Did you forget to use ssl:// or http:// in your connect string ?
  |         at progress.message.jimpl.JMSExceptionUtil.createJMSException(Unknown Source)
  |         at progress.message.jimpl.Connection.(Unknown Source)
  |         at progress.message.jimpl.QueueConnection.(Unknown Source)
  |         at progress.message.jclient.QueueConnectionFactory.createQueueConnection(Unknown Source)
  |         at progress.message.jclient.QueueConnectionFactory.createQueueConnection(Unknown Source)
  |         at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:187)
  |         at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
  |         at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:188)
  |         at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStartDelivery(JMSContainerInvoker.java:510)
  |         at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:839)
  |         at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  |         at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  |         at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  |         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  |         at $Proxy0.start(Unknown Source)
  |         at org.jboss.system.ServiceController.start(ServiceController.java:417)
  |         at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  |         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |         at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:194)
  |         at org.jboss.ejb.MessageDrivenContainer.startService(MessageDrivenContainer.java:272)
  |         at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  |         at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  |         at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  |         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  |         at $Proxy0.start(Unknown Source)
  |         at org.jboss.system.ServiceController.start(ServiceController.java:417)
  |         at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 

Please Suggest.

MDB Code:

  | import javax.ejb.EJBException;
  | import javax.ejb.MessageDrivenBean;
  | import javax.ejb.MessageDrivenContext;
  | import javax.jms.JMSException;
  | import javax.jms.Message;
  | import javax.jms.MessageListener;
  | import javax.jms.TextMessage;
  | public class TextMDB implements MessageDrivenBean, MessageListener {
  | 	private static final long serialVersionUID = 1L;
  | 	    private MessageDrivenContext ctx;
  | 	    public void setMessageDrivenContext(MessageDrivenContext messageDrivenContext) throws 
  | 	    EJBException {
  | 	        ctx = messageDrivenContext;
  | 	    }
  | 
  | 	    public void ejbCreate() throws EJBException {
  | 	        System.out.println("Created MDB. ");
  | 	    }
  | 	    
  | 	    public void ejbRemove() throws EJBException {
  | 	        System.out.println("Removed MDB. ");
  | 	    }
  | 
  | 	    public void onMessage(Message message) {
  | 
  | 	        if (message instanceof TextMessage) {
  | 	            try {
  | 	                String msg = ((TextMessage)message).getText();
  | 	                System.out.println("Message: "+msg);
  | 	            } catch (JMSException e) {
  | 	                e.printStackTrace();
  | 	            }
  | 	        } else {
  | 	            System.out.println("Non-text message received! ");
  | 	    
  | 	        }
  | 
  | 	    }
  | }
  | 
  | 

Thanks,
Milo.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146837#4146837

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146837



More information about the jboss-user mailing list