|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openejb.server.ServerFederation
public class ServerFederation
This class is passed in as the ApplicationServer implementation when OpenEJB is initialized. This class allows several application server implementations to be used on the same contianer system Each one calls setApplicationServer before making a call to OpenEJB. Then, when OpenEJB eventually makes a call to the ApplicationServer implementation, which is this object, we can actually delegate the call to the real application server. This allows us to have several ApplicationServer implamentations all using the same OpenEJB instance at the same time, whereas we would normally be limited to one.
Constructor Summary | |
---|---|
ServerFederation()
|
Method Summary | |
---|---|
static ApplicationServer |
getApplicationServer()
Gets the ApplicationServer implementation associates with this thread. |
javax.ejb.EJBHome |
getEJBHome(ProxyInfo proxyInfo)
Delegates this call to the application server implementation associated with this thread. |
javax.ejb.EJBMetaData |
getEJBMetaData(ProxyInfo proxyInfo)
Delegates this call to the application server implementation associated with this thread. |
javax.ejb.EJBObject |
getEJBObject(ProxyInfo proxyInfo)
Delegates this call to the application server implementation associated with this thread. |
javax.ejb.Handle |
getHandle(ProxyInfo proxyInfo)
Delegates this call to the application server implementation associated with this thread. |
javax.ejb.HomeHandle |
getHomeHandle(ProxyInfo proxyInfo)
Delegates this call to the application server implementation associated with this thread. |
static void |
setApplicationServer(ApplicationServer server)
Makes the ApplicationServer implementation specified the one that will be used for all actions on this thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerFederation()
Method Detail |
---|
public javax.ejb.Handle getHandle(ProxyInfo proxyInfo)
getHandle
in interface ApplicationServer
proxyInfo
- A proxy info instance describing the deployment
public javax.ejb.EJBMetaData getEJBMetaData(ProxyInfo proxyInfo)
getEJBMetaData
in interface ApplicationServer
proxyInfo
- A proxy info instance describing the deployment
public javax.ejb.HomeHandle getHomeHandle(ProxyInfo proxyInfo)
getHomeHandle
in interface ApplicationServer
proxyInfo
- A proxy info instance describing the deployment
public javax.ejb.EJBObject getEJBObject(ProxyInfo proxyInfo)
getEJBObject
in interface ApplicationServer
proxyInfo
- A proxy info instance describing the deployment
public javax.ejb.EJBHome getEJBHome(ProxyInfo proxyInfo)
getEJBHome
in interface ApplicationServer
proxyInfo
- A proxy info instance describing the deployment
public static void setApplicationServer(ApplicationServer server)
server
- public static ApplicationServer getApplicationServer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |