5 Replies Latest reply on Jul 27, 2013 11:06 AM by ashu-01

    Can't register a WSRP consumer

    mpakhomo

      I'm running 2 JBoss instances on the same machine and am trying to establish communication via WSRP between them.

       

      Configuration:

       

      JBoss EPP 5.2.1, GateIn based on 3.1.0

      JBoss instance 1 - running on localhost:8080, WSRP consumers

      JBoss instance 2 - running on localhost:8180, WSRP producers (Producer WSDL address for WSRP v1:http://localhost:8180/wsrp-producer/v1/MarkupService?wsdl, Producer WSDL address for WSRP v2:http://localhost:8180/wsrp-producer/v2/MarkupService?wsdl)

       

       

      On JBoss2 I exposed a remote portlet via WSRP. On JBoss1 I want to consume it.

       

      I created a consumer on JBoss1 with the following configuration:

       

         <deployment>

            <wsrp-producer id="selfv2" expiration-cache="500" ws-timeout="50000">

               <endpoint-wsdl-url>http://localhost:8180/wsrp-producer/v2/MarkupService?wsdl</endpoint-wsdl-url>

               <registration-data/>

            </wsrp-producer>

         </deployment>

       

      When I tried activate it (either activate or reload & save) i got the following error message:

       

      Couldn't register with producer 'selfv2' Could not register consumer named 'myhostname WSRP v2 version' Cause: Consumer named 'myhostname WSRP v2 version' has already been registered with the same set of registration properties. Registration rejected!

       

      I deleted all consumers on JBoss2, but I still got the same error message.

       

      1. Is there any way to clear wsrp consumers configuration (so that all wsrp consumers will be un-registered)
      2. Is it something wrong with my configuration? Should I do some addition steps to get it up and running?
        • 1. Re: Can't register a WSRP consumer
          claprun

          It seems like this should work but I suspect this might be a case that we didn't anticipate (running both consumer and producer on the same system but with different instances). I will take a look and get back to you. Thank you for your report!

           

          May I ask, though, why are you using EPP 5.2.1 (and not 5.2.2) or even JPP 6? Also, if you are already a customer, why aren't you using the dedicated customer portal to get a more direct answer there?

          • 2. Re: Can't register a WSRP consumer
            claprun

            I've tested your scenario and it works without issue on the latest version of GateIn. Generally speaking, you shouldn't use selfv(1|2) as consumer names. These consumers are automatically configured to allow for quick testing of WSRP within the same GateIn instance (where producer and consumer run on the same instance). That said, if you deleted the consumers from the administration interface on JBoss2, you shouldn't have an issue either using selfv2 as your consumer's name. If you believe this is a problem, please file a bug or open a customer support ticket.

            Thank you.

            • 3. Re: Can't register a WSRP consumer
              mpakhomo

              Chris,

               

               

              Finally, I've managed to get the mentioned configuration up and running.

               

               

              As for your question:

              May I ask, though, why are you using EPP 5.2.1 (and not 5.2.2) or even JPP 6? Also, if you are already a customer, why aren't you using the dedicated customer portal to get a more direct answer there?

              I'm using EPP 5.2.1 because this is the version that was provided by my empoyer. Thanks for your hint ragarding newer EPP version and the dedicated cutomer portal. My empoyer is a customer indeed. I'll ask them to provide me with a support account.

               

               

              Thanks

              • 4. Re: Can't register a WSRP consumer
                claprun

                Glad to hear you solved your issue!

                • 5. Re: Can't register a WSRP consumer
                  ashu-01

                  Hi Mike,

                   

                  I am facing the same issue of not able to register and i am getting the below error in cosumer logs:

                   

                  Producer not available! [Couldn't register with producer 'ashu1234']

                   

                  Could not register consumer named '192.168.200.14 WSRP v2 version' Cause: Consumer named '192.168.200.14 WSRP v2 version' has already been registered with the same set of registration properties. Registration rejected!

                   

                  Could you please help me out how were you able to resolve your issue. Just to let you know i am using Jboss EPP 5.1.1 version

                   

                  Thanks in Advance..