Skip to main content

Specifying concurrency mode.

  • From: Binod < >
  • To:
  • Subject: Specifying concurrency mode.
  • Date: Tue, 26 Feb 2013 21:56:19 +0530
  • List-id: <jsr359-experts.sipservlet-spec.java.net>

Here is what I was hoping to put in the spec for specifying the Concurrency Mode.
Let me know what you think.

1. Define an enum called ConcurrencyMode.

public enum ConcurrencyMode {
  NONE, //Default. For using the older concurrency models.
  SIPAPPLICATIONSESSION; //Required to be supported by 359 containers.
}

2. Let the SipApplication annotation take a parameter as ConcurrencyMode.

public @interface SipApplication {
  ConcurrencyMode concurrencyMode() default ConcurrencyMode.NONE;
}

3. Specify the concurrency mode in the deployment descriptor.

<xs:complexType name="concurrency-modeType">
    <xs:annotation>
      <xs:documentation>
        .....
        .....
        Used in: sip-app
      </xs:documentation>
    </xs:annotation>

    <xs:simpleContent>
      <xs:restriction base="javaee:string">
        <xs:enumeration value="NONE"/>
        <xs:enumeration value="SIPAPPLICATIONSESSION"/>
      </xs:restriction>
    </xs:simpleContent>
  </xs:complexType>

thanks,
Binod.


Specifying concurrency mode.

Binod 02/26/2013
 
 
Close
loading
Please Confirm
Close