Rhino does not introduce any API changes to the standard javax.slee.facilities.ActivityContextNamingFacility interface, but instead offers multiple variants with different behaviours.

Each of these variants, which all implement the standard interface, can be found at different JNDI locations in an SBB’s environment.

JNDI location Behaviour

java:comp/env/rhino/replicated/facilities/activitycontextnaming

An Activity Context Naming Facility implementation that will bind non-replicated activities as well as those activities replicated using the namespace’s replication resource. It will only look up names in non-replicated storage and the storage associated with the namespace’s replication resource.

  • If the namespace is replicated using savanna, then this facility behaves no differently than the Activity Context Naming Facility found at the default SLEE-defined JNDI location and can handle any activity.

  • If the namespace is replicated using a key/value store, then this facility will only handle non-replicated and key/value store replicated activities. Attempting to bind, for example, a Service Activity or Profile Table Activity, which are always replicated using savanna, using this facility will cause a FacilityException to be thrown.

java:comp/env/rhino/nonreplicated/facilities/activitycontextnaming

An Activity Context Naming Facility implementation that will only bind non-replicated activities, and will only look up bindings in non-replicated storage.

Attempting to bind a replicated activity using this facility will cause a FacilityException to be thrown.

java:comp/env/slee/facilities/activitycontextnaming

At the default JAIN SLEE-defined JNDI location is an Activity Context Naming Facility that will handle any type of activity. Name lookups will consult non-replicated storage as well as all replicated storage resources.

  • If the namespace is replicated using savanna, then this facility behaves identically to the facility found at java:comp/env/rhino/replicated/facilities/activitycontextnaming as described above.

  • If the namespace is replicated using a key/value store, then this facility will perform name lookups in all of non-replicated storage, key/value store-replicated storage, and savanna-replicated storage.

Tip The Rhino-specific JNDI locations for the Activity Context Naming Facility are available from Rhino 2.7.0.
Previous page Next page