0 Replies Latest reply on Jan 2, 2002 2:00 PM by Gary Udstrand

    Opening sockets in EJB's/MDB's

    Gary Udstrand Newbie

      Is it possible to open and close sockets in EJB's and/or MDB's? I have an MDB in which I am trying to open a socket connection and keep getting an exception as follows :

      [JMSContainerInvoker] Exception in JMSCI message listener
      java.rmi.ServerException: Transaction rolled back:net/rxhub/mockpbm/socketserver
      /SocketConnector
      at org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT.invoke(MessageDri
      venTxInterceptorBMT.java:122)
      at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(Message
      DrivenInstanceInterceptor.java:58)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
      java:128)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
      at org.jboss.ejb.MessageDrivenContainer.invoke(MessageDrivenContainer.ja
      va:281)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvo
      ker.java:165)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onM
      essage(JMSContainerInvoker.java:644)
      at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMess
      ageConsumer.java:420)
      at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:29
      5)
      at org.jboss.mq.SpySession.run(SpySession.java:216)
      at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:177)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
      utor.java:642)
      at java.lang.Thread.run(Unknown Source)