Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta2
    • Fix Version/s: 2.0-RC1
    • Component/s: implementation
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Sun

    • Issuezilla Id:
      66

      Description

      Following should be done to add support for Container Event. To begin with only
      login and logout events will be added.

      1. Add a new service ContainerEventService for setting container events

      public interface ContainerEventService

      { public void setEvent(......) public void registerSubscriber(ContainerEventSubscriber containerEventSubscriber); }

      2. Add interface ContainerEventSubscriber, that needs to be implemented
      by any component that needs to intimated incase a Container Event is
      set. It also needs to register itself with ContainerEventService

      public interface ContainerEventSubscriber

      { public void processEvent(...); }

      3. The default implementation of ContainerEventService will send events
      to all subscribers provided the event is enabled in the policy file,
      something like this...
      <container-event-policy>
      ......
      <event>
      <name>login</name>
      <status>enabled</status>
      </event>
      <event>
      <name>logout</name>
      <status>enabled</status>
      </event>
      ..................
      </container-event-policy>

      4. The login and logout event will be called by getting the handle for
      ContainerEventService and calling setEvent on it, as follows

      QName login = new QName("urn:oasis:names:tc:wsrp:v2:types", "login");
      getContainerEventService().setEvent(login, null, request, response);

        Activity

        Hide
        dgothe added a comment -

        Created an attachment (id=42)
        CRT for Issue 66

        Show
        dgothe added a comment - Created an attachment (id=42) CRT for Issue 66
        Hide
        dgothe added a comment -

        Created an attachment (id=43)
        Sample to test Container Events

        Show
        dgothe added a comment - Created an attachment (id=43) Sample to test Container Events
        Hide
        dgothe added a comment -

        Fix committed, revision 587.

        Show
        dgothe added a comment - Fix committed, revision 587.
        Hide
        dgothe added a comment -

        Changed the Target release

        Show
        dgothe added a comment - Changed the Target release

          People

          • Assignee:
            dgothe
            Reporter:
            dgothe
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: