|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.ejb3.nointerface.mc.NoInterfaceViewJNDIBinder<T>
org.jboss.ejb3.nointerface.mc.StatefulNoInterfaceJNDIBinder<T>
public class StatefulNoInterfaceJNDIBinder<T extends org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData>
StatefulNoInterfaceJNDIBinder Responsible for creating and binding the appropriate objects corresponding to the no-interface view of a stateful session bean
| Field Summary |
|---|
| Fields inherited from class org.jboss.ejb3.nointerface.mc.NoInterfaceViewJNDIBinder |
|---|
beanClass, endpointContext, jndiCtx, sessionBeanMetadata |
| Constructor Summary | |
|---|---|
protected |
StatefulNoInterfaceJNDIBinder(javax.naming.Context ctx,
java.lang.Class<?> beanClass,
T sessionBeanMetadata)
Constructor |
| Method Summary | |
|---|---|
void |
bindNoInterfaceView()
1) Creates a MCAwareStatefulNoInterfaceViewFactory and binds it to JNDI (let's call
this jndi-name "A")
2) Creates a StatefulNoInterfaceViewObjectFactory objectfactory and binds a Reference
to this objectfactory into the JNDI (let's call it jndi-name "B"). |
void |
unbindNoInterfaceView()
Unbind the MCAwareStatefulNoInterfaceViewFactory and the StatefulNoInterfaceViewObjectFactory
from the jndi |
| Methods inherited from class org.jboss.ejb3.nointerface.mc.NoInterfaceViewJNDIBinder |
|---|
getJNDINameResolver, getNoInterfaceViewJndiBinder, onStart, onStop, setEndpointContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected StatefulNoInterfaceJNDIBinder(javax.naming.Context ctx,
java.lang.Class<?> beanClass,
T sessionBeanMetadata)
beanClass - The bean classsessionBeanMetadata - Metadata of the bean| Method Detail |
|---|
public void bindNoInterfaceView()
throws javax.naming.NamingException
MCAwareStatefulNoInterfaceViewFactory and binds it to JNDI (let's call
this jndi-name "A")
2) Creates a StatefulNoInterfaceViewObjectFactory objectfactory and binds a Reference
to this objectfactory into the JNDI (let's call it jndi-name "B").
The objectfactory will have a reference to the jndi-name of the stateful factory (created in step#1).
This will then be used by the object factory to lookup the stateful factory for creating the no-interface
view when the client does a lookup.
bindNoInterfaceView in class NoInterfaceViewJNDIBinder<T extends org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData>javax.naming.NamingException - If any exception while binding to JNDI
public void unbindNoInterfaceView()
throws javax.naming.NamingException
MCAwareStatefulNoInterfaceViewFactory and the StatefulNoInterfaceViewObjectFactory
from the jndi
unbindNoInterfaceView in class NoInterfaceViewJNDIBinder<T extends org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData>javax.naming.NamingException - If any exception while unbinding from JNDINoInterfaceViewJNDIBinder.unbindNoInterfaceView()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||