|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CorStateParameterServiceHome
Home interface that can be looked up via JNDI and that provides access to the state parameter service.
Accessing the service:
CorStateParameterServiceHome home; javax.naming.Context ctx = new javax.naming.InitialContext(); try { home = (CorStateParameterServiceHome) ctx.lookup(CorStateParameterServiceHome); } catch(javax.naming.NameNotFoundException ex) { ... error handling ... } ... // request the service via the home interface final StateParameterService service = home.getStateParameterService(corCtx); try{ // manipulate parameters ... } finally { // Dispose the service service.dispose(); }
Field Summary | |
---|---|
static java.lang.String |
JNDI_NAME
JNDI name under which the home instance is bound |
Method Summary | |
---|---|
StateParameterService |
getStateParameterService(Context ctx)
Returns the state parameter service. |
StateParameterService |
getStateParameterService(StateHolder state,
Context ctx)
Returns the state parameter service. |
Field Detail |
---|
static final java.lang.String JNDI_NAME
Method Detail |
---|
StateParameterService getStateParameterService(Context ctx) throws StateParameterException, StateNotInRequestException
ctx
- The COR context
null
StateNotInRequestException
- if no state could be associated with the request
StateParameterException
- thrown if the initialization of the
StateParameterService
fails.StateParameterService getStateParameterService(StateHolder state, Context ctx) throws StateParameterException
state
- state that the service operates on, not null
ctx
- The COR context
null
StateParameterException
- thrown if the initialization of the
StateParameterService
fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |