6 Replies Latest reply on Mar 5, 2009 7:50 AM by claprun

    WSRP consumer never contact producer if first try failed

      Hi all,

      I use JBoss 4.2.3 and JBossPortal 2.6.6 with WSRP.

      My problem is that WSRP Consumer never try to contact again a producer if the first try failed.

      A scenario for example :
      - stop the 2 JBoss
      - add a new producer in the *-wsrp.xml file of the consumer
      - start only the consumer
      --> the consumer failed to contact the producer : ok
      - start the producer
      --> the consumer never contact the producer (event if i stop and start again producer and consumer in that order).

      is someone have the same problem ?

        • 1. Re: WSRP consumer never contact producer if first try failed
          claprun

          Use the WSRP admin console to refresh the consumer. That said, I will look into the issue.

          • 2. Re: WSRP consumer never contact producer if first try failed

            We don't use JBoss admin console for our portal. We have developped our proper simple admin portlets.

            In my scenario i notice that :
            - the table "JBP_ENDPOINT_INFO" contain : 2 | MUST BE SET | MUST BE SET | (null) | (null) | http://localhost:8180/portal-wsrp/MarkupService?wsdl
            - the table "JBP_PRODUCER_INFO" contain : 1 | 2 | 3 | 300 | 0 | prodID
            - during consumer start, this message appears : "Added consumer for producer 'prodID' with status: inactive (loaded from database)."

            • 3. Re: WSRP consumer never contact producer if first try failed
              claprun

              Any specific reason why you're not using our admin portlets?

              There are some WSRP administration operations that can only be done via the WSRP admin portlet, in particular, activating an inactive producer.

              Note also that the XML file is only used to seed the database. If a producer with a given name is found in the database, any information pertaining to a producer with the same name in the XML configuration will be ignored.

              • 4. Re: WSRP consumer never contact producer if first try failed

                We are software editor and we distribute à portal with specific and limited admin portlets (with look and feel redefinition).

                For me, during JBoss start (wsrp services start), all producers recorded in the database and new producers of the xml should be contacted.

                • 5. Re: WSRP consumer never contact producer if first try failed
                  claprun

                   

                  "cpage" wrote:

                  For me, during JBoss start (wsrp services start), all producers recorded in the database and new producers of the xml should be contacted.


                  This is what happens.

                  However, this is not the use case you describe here as the consumer is started and correctly attempts to contact the producers. If some of them are unavailable, they are marked as inactive and you might need to activate them using the WSRP admin if you don't want to have to restart the JBoss instance running the consumer... I suppose we could implement periodic polling of producers to try and reactivate them but we felt that it was simpler to just use the WSRP admin to reactivate them once the producers are known to be online.

                  Feel free to open a JIRA feature request.

                  • 6. Re: WSRP consumer never contact producer if first try failed
                    claprun

                    More precisely, the WSRP consumer will attempt to contact the producers marked as [bold]active[/bold] in the database.

                    I am considering separating active and failed status in the database. However, I cannot do so without breaking backward compatibility so it won't happen (if at all) before a new major Portal revision.