1 Reply Latest reply on Sep 8, 2004 6:25 PM by genman

    Message Driven Bean and SOAP

    rogerday

      I've using a MDB to initiate SOAP calls though to a SOAP server, which is in turn a wrapper around a legacy service.

      The first call is fine, but the second call gets refused - by a Socket exception.

      This isn't the perl, for once, as I run two sets of tests: one with the MDB as proxy and one without. The one without the MDB proxy (using straight SOAP from java) always succeeds on the second call. So, I think the problem points at a MDB lifecycling problem that's effecting the java socket libraries. AT this point I'm a bit stumped so anything would be helpful.

      I'm using Apache SOAP 2.3.1. Has anyone used SOAP in this manner? Has anyone come across this problem with sockets used alongside of Jboss?

      TIA

      roger

        • 1. Re: Message Driven Bean and SOAP
          genman


          Maybe you can post your code. Be careful about using static variables in MDB.

          Typically, you would init the SOAP client in ejbCreate and remove it in ejbRemove. You can add logging to find out what's going on in these methods.