6 Replies Latest reply on Oct 7, 2009 5:44 AM by tomjenkinson

    xatmi foobar example failure

      Hello:
      I have an error on tpadvertise for the BAR service example.
      I try with Minimal Middleware Services and with JBoss AS and I have the same error.

      INFO AtmiBrokerServer - Server Running
      ERROR AtmiBrokerServer - Could not advertise service with command: tpadvertise,BAR,
      INFO AtmiBrokerServer - Server waiting for requests...

      With minimal configuration I obtain this messages from the logfile :

      DEBUG StompEndpointQueue - Receivin from: /temp-queue/client-0
      DEBUG StompEndpointQueue - Could not read frame for /temp-queue/client-0: 70007 was the result
      ...
      DEBUG StompConnectionImpl - Sending DISCONNECT
      DEBUG StompConnectionImpl - Disconnecting...
      DEBUG StompConnectionImpl - Disconnected
      TRACE StompSessionImpl - destroyed
      TRACE loggerXATMI - tpgetrply session closed
      DEBUG loggerXATMI - _get_tperrno
      TRACE loggerXATMI - found _get_tperrno13
      ...
      TRACE loggerXATMI - tpadvertise return: -1 tperrno: 0
      INFO AtmiBrokerServer - Server waiting for requests...

      Local configuration:
      Fedora 10 (linux 2.6.27.25-170.2.72.fc10.i686)
      JacORB-2.2.3
      JBOSSTS_4_5_0_GA
      jboss-5.1.0.GA

      I follow the example's README file and wiki instructions from http://www.jboss.org/community/wiki/DeployingBlacktie

      Any suggestions to correct this problem?

        • 1. Re: xatmi foobar example failure
          mmusgrov

          Did you deploy the stompconnect service into the JBoss deploy directory. The jar you need to copy over is in the distribution:
          stompconnectservice/stompconnectservice-1.0-MR5-jar-with-dependencies.jar

          • 2. Re: xatmi foobar example failure

            Yes I did when I test with JBoss, but in minimal configuration I didn't (I don't know if this is necessary).
            Thanks's for the reply,
            -------
            carlos

            • 3. Re: xatmi foobar example failure
              tomjenkinson

              Hi Carlos,

              Thanks for you interest in BlackTie. In order to use the JMS based transport (hybrid and stomp) you will need to use the full app server configuration (well a configuration that deploys the JMS server, CORBA Naming Service and Transaction Service, so "all" is easiest ;) )

              The sample is by default configured to use the atmibroker-hybrid transport, as such if you would like to change its configuration to run in a "minimal" mode, open up the <BT_ROOT>/samples/xatmi/fooapp//Environment.xml and change all "-hybrid" references to "-corba".

              This should them work in a minimal configuration.

              Once again, thanks for trying out blacktie,
              Tom

              • 4. Re: xatmi foobar example failure

                Hi Tom,
                Finally I run the example over JBoss, I had two problems (both about configuration: I had another service running in stomp port and when I configured JBoss with ant ts it generated an duplicate line in jbossts-properties.xml file tag).

                I will try "minimal" mode using atmibroker with -corba option.

                Thanks for the help,

                Carlos

                • 5. Re: xatmi foobar example failure
                  tomjenkinson

                  Glad to hear you are making good progress Carlos,
                  Tom

                  • 6. Re: xatmi foobar example failure
                    tomjenkinson

                    Hi Carlos,

                    Just to let you know we have released an update to BlackTie numbered MR6 which can be downloaded from http://jboss.org/blacktie/downloads/
                    As we now require the JMS server from JBoss for all transport configurations you will no longer be able to run a minimal configuration unfortunately. For now we recommend using the baseline "all" configuration of JBoss AS, although in the future we look to providing guidance on a slimmed down AS.

                    Hope you are getting on well with BlackTie!
                    Tom