Java Doc for AbstractServer.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » ejb » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server resin 3.1.5 » resin » com.caucho.ejb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.ejb.AbstractServer

All known Subclasses:   com.caucho.ejb.message.MessageServer,  com.caucho.ejb.entity.EntityServer,  com.caucho.ejb.session.SessionServer,
AbstractServer
abstract public class AbstractServer implements EnvironmentBean(Code)
Base server for a single home/object bean pair.


Field Summary
protected  ComponentImpl_component
    
protected  Class_contextImplClass
    
protected  DataSource_dataSource
    
protected  Class_ejbClass
    
final protected  EjbContainer_ejbContainer
    
protected  String_ejbName
    
protected  String_filename
    
protected  HandleEncoder_handleEncoder
    
protected  String_handleServerId
    
protected  HomeHandle_homeHandle
    
protected  Class_homeStubClass
    
protected  String_id
    
protected  ConfigProgram[]_initInject
    
protected  ConfigProgram_initProgram
    
protected  int_line
    
protected  EnvironmentClassLoader_loader
    
protected  Class_local21
    
protected  ArrayList<Class>_localApiList
    
protected  EJBLocalHome_localHome
    
protected  Class_localHomeClass
    
protected  String_location
    
protected  String_mappedName
    
protected  EJBMetaDataImpl_metaData
    
protected  String_moduleName
    
protected  Class_primaryKeyClass
    
protected  HashMap<String, HandleEncoder>_protocolEncoderMap
    
protected  Class_remote21
    
protected  ArrayList<Class>_remoteApiList
    
protected  EJBHome_remoteHome
    
protected  Class_remoteHomeClass
    
protected  EJBHome_remoteHomeView
    
protected  Class_remoteObjectClass
    
protected  Class_remoteStubClass
    
protected  Class_serviceEndpointClass
    
protected  long_transactionTimeout
    

Constructor Summary
public  AbstractServer(EjbContainer container)
    

Method Summary
public  voidaddClientRemoteConfig(StringBuilder sb)
     Client information for connecting to the server.
public  HandleEncoderaddHandleEncoder(String protocol, String serverId)
    
protected  voidbindContext()
    
protected  voidbindInjection()
    
public  voiddestroy()
    
public  StringencodeId(Object primaryKey)
     Returns the encoded id.
public  ConfigExceptionerror(String msg)
    
public  ClassgetBeanSkelClass()
    
public  DynamicClassLoadergetClassLoader()
    
 EJBHomegetClientHome()
    
public  AbstractContextgetContext()
    
public  AbstractContextgetContext(Object key)
    
public  AbstractContextgetContext(long key)
    
abstract public  AbstractContextgetContext(Object key, boolean forceLoad)
    
public  EJBHomegetEJBHome()
    
public  EJBLocalHomegetEJBLocalHome()
    
public  EJBMetaDatagetEJBMetaData()
    
public  StringgetEJBName()
    
public  EJBObjectgetEJBObject(Object key)
    
protected  ClassgetEjbClass()
    
public  EjbContainergetEjbContainer()
     Returns the owning container.
public  HandleEncodergetHandleEncoder(String protocol)
    
public  HandleEncodergetHandleEncoder()
    
public  StringgetHandleServerId()
    
public  HomeHandlegetHomeHandle()
    
public  ClassgetHomeStubClass()
    
public  StringgetId()
     Returns the id, module-path#ejb-name.
public  ConfigProgramgetInitProgram()
     Gets the init program.
public  ArrayList<Class>getLocalApiList()
     Sets the remote object class.
public  ClassgetLocalHomeClass()
     Gets the local home class.
abstract public  ObjectgetLocalObject(Class api)
    
abstract public  ObjectgetLocalProxy(Class api)
    
public  StringgetMappedName()
     Returns the mapped name.
public  StringgetModuleName()
     Returns's the module that defined this ejb.
public  PostConstructConfiggetPostConstruct()
    
public  PreDestroyConfiggetPreDestroy()
    
public  ClassgetPrimaryKeyClass()
     Returns the object key from a handle.
public  StringgetProtocolId()
     The name to use for remoting protocols, such as IIOP and Hessian.
public  StringgetProtocolId(Class cl)
     The name to use for remoting protocols, such as IIOP and Hessian.
public  ClassgetRemote21()
     Gets the 2.1 remote interface.
public  ArrayList<Class>getRemoteApiList()
     Returns the remote object list.
public  ClassgetRemoteHomeClass()
     Gets the remote home class.
abstract public  ObjectgetRemoteObject(Class api, String protocol)
    
public  ObjectgetRemoteObject(Object key)
     Returns the remote object.
public  ClassgetRemoteObjectClass()
     Gets the remote object class.
public  ClassgetRemoteStubClass()
    
public  ConfigProgramgetServerProgram()
     Sets the server program.
public  ClassgetServiceEndpoint()
    
public  AbstractSessionContextgetSessionContext()
     Returns the session context.
public  TimerServicegetTimerService()
     Returns the timer service.
public  TransactionContextgetTransaction()
     Returns the currrent transaction context.
public  EjbTransactionManagergetTransactionManager()
     Returns the currrent transaction context.
public  longgetTransactionTimeout()
     Gets the transaction timeout.
protected  StringgetType()
    
public  UserTransactiongetUserTransaction()
    
public  booleanhasRemoteObject()
     Returns true if there is any remote object.
public  voidinit()
    
public  voidinitInstance(Object instance)
    
public  voidinitInstance(Object instance, ConfigContext env)
    
public  voidinvalidateCache()
     Invalidates caches.
public  booleanisContainerTransaction()
     Returns true if container transaction is used.
public  booleanisDead()
     Returns true if the server is dead.
public  booleanisLocal()
     Returns true is there is a local home or local client object for the bean.
public  booleanisRemote()
     Returns true is there is a remote home or remote client object for the bean.
public  Objectlookup(String jndiName)
     Looks up the JNDI object.
public  Objectremove(AbstractHandle handle)
     Remove an object.
public  voidremove(Object primaryKey)
     Remove an object.
public  voidsetAroundInvoke(AroundInvokeConfig aroundInvoke)
    
public  voidsetConfigLocation(String filename, int line)
    
public  voidsetContainerTransaction(boolean isContainerTransaction)
     Sets true if container transaction is used.
public  voidsetContextImplClass(Class cl)
     Sets the context implementation class.
 voidsetEJBHome(EJBHome remoteHome)
    
public  voidsetEJBName(String ejbName)
     Sets the ejb name.
public  voidsetEjbClass(Class cl)
    
public  voidsetHandleEncoder(HandleEncoder encoder)
    
public  voidsetId(String id)
     Sets the id, module-path#ejb-name.
public  voidsetInitProgram(ConfigProgram init)
     Sets the init program.
public  voidsetLocalApiList(ArrayList<Class> list)
    
public  voidsetLocalHomeClass(Class cl)
     Sets the local home class.
public  voidsetLocation(String location)
    
public  voidsetMappedName(String mappedName)
     Sets the mapped name, default is to use the EJBName.
public  voidsetModuleName(String moduleName)
     Set's the module that defined this ejb.
public  voidsetPostConstruct(PostConstructConfig postConstruct)
    
public  voidsetPreDestroy(PreDestroyConfig preDestroy)
    
public  voidsetRemoteApiList(ArrayList<Class> list)
     Sets the remote object list.
public  voidsetRemoteHomeClass(Class cl)
     Sets the remote home class.
public  voidsetRemoteObjectClass(Class cl)
     Sets the remote object class.
public  voidsetServerProgram(ConfigProgram serverProgram)
     Sets the server program.
public  voidsetServiceEndpoint(Class cl)
     Sets the service endpoint.
public  voidsetTransactionTimeout(long timeout)
     Sets the transaction timeout.
public  booleanstart()
    
public  StringtoString()
    

Field Detail
_component
protected ComponentImpl _component(Code)



_contextImplClass
protected Class _contextImplClass(Code)



_dataSource
protected DataSource _dataSource(Code)



_ejbClass
protected Class _ejbClass(Code)



_ejbContainer
final protected EjbContainer _ejbContainer(Code)



_ejbName
protected String _ejbName(Code)



_filename
protected String _filename(Code)



_handleEncoder
protected HandleEncoder _handleEncoder(Code)



_handleServerId
protected String _handleServerId(Code)



_homeHandle
protected HomeHandle _homeHandle(Code)



_homeStubClass
protected Class _homeStubClass(Code)



_id
protected String _id(Code)



_initInject
protected ConfigProgram[] _initInject(Code)



_initProgram
protected ConfigProgram _initProgram(Code)



_line
protected int _line(Code)



_loader
protected EnvironmentClassLoader _loader(Code)



_local21
protected Class _local21(Code)



_localApiList
protected ArrayList<Class> _localApiList(Code)



_localHome
protected EJBLocalHome _localHome(Code)



_localHomeClass
protected Class _localHomeClass(Code)



_location
protected String _location(Code)



_mappedName
protected String _mappedName(Code)



_metaData
protected EJBMetaDataImpl _metaData(Code)



_moduleName
protected String _moduleName(Code)



_primaryKeyClass
protected Class _primaryKeyClass(Code)



_protocolEncoderMap
protected HashMap<String, HandleEncoder> _protocolEncoderMap(Code)



_remote21
protected Class _remote21(Code)



_remoteApiList
protected ArrayList<Class> _remoteApiList(Code)



_remoteHome
protected EJBHome _remoteHome(Code)



_remoteHomeClass
protected Class _remoteHomeClass(Code)



_remoteHomeView
protected EJBHome _remoteHomeView(Code)



_remoteObjectClass
protected Class _remoteObjectClass(Code)



_remoteStubClass
protected Class _remoteStubClass(Code)



_serviceEndpointClass
protected Class _serviceEndpointClass(Code)



_transactionTimeout
protected long _transactionTimeout(Code)




Constructor Detail
AbstractServer
public AbstractServer(EjbContainer container)(Code)
Creates a new server container
Parameters:
  manager - the owning server container




Method Detail
addClientRemoteConfig
public void addClientRemoteConfig(StringBuilder sb)(Code)
Client information for connecting to the server.



addHandleEncoder
public HandleEncoder addHandleEncoder(String protocol, String serverId)(Code)



bindContext
protected void bindContext()(Code)



bindInjection
protected void bindInjection()(Code)



destroy
public void destroy()(Code)
Cleans up the server on shutdown



encodeId
public String encodeId(Object primaryKey)(Code)
Returns the encoded id.



error
public ConfigException error(String msg)(Code)



getBeanSkelClass
public Class getBeanSkelClass()(Code)
Gets the generated skeleton class



getClassLoader
public DynamicClassLoader getClassLoader()(Code)
Gets the class loader



getClientHome
EJBHome getClientHome()(Code)
Returns the EJBHome stub for the container



getContext
public AbstractContext getContext()(Code)



getContext
public AbstractContext getContext(Object key) throws FinderException(Code)



getContext
public AbstractContext getContext(long key) throws FinderException(Code)



getContext
abstract public AbstractContext getContext(Object key, boolean forceLoad) throws FinderException(Code)
Returns the context with the given key



getEJBHome
public EJBHome getEJBHome()(Code)
Returns the EJBHome stub for the container



getEJBLocalHome
public EJBLocalHome getEJBLocalHome()(Code)
Returns the EJBLocalHome stub for the container



getEJBMetaData
public EJBMetaData getEJBMetaData()(Code)
Returns the meta data



getEJBName
public String getEJBName()(Code)
Returns the ejb's name



getEJBObject
public EJBObject getEJBObject(Object key) throws FinderException(Code)



getEjbClass
protected Class getEjbClass()(Code)
Sets the ejb class



getEjbContainer
public EjbContainer getEjbContainer()(Code)
Returns the owning container.



getHandleEncoder
public HandleEncoder getHandleEncoder(String protocol)(Code)



getHandleEncoder
public HandleEncoder getHandleEncoder()(Code)



getHandleServerId
public String getHandleServerId()(Code)



getHomeHandle
public HomeHandle getHomeHandle()(Code)
Returns the home handle for the container



getHomeStubClass
public Class getHomeStubClass()(Code)



getId
public String getId()(Code)
Returns the id, module-path#ejb-name.



getInitProgram
public ConfigProgram getInitProgram()(Code)
Gets the init program.



getLocalApiList
public ArrayList<Class> getLocalApiList()(Code)
Sets the remote object class.



getLocalHomeClass
public Class getLocalHomeClass()(Code)
Gets the local home class.



getLocalObject
abstract public Object getLocalObject(Class api)(Code)
Returns the a new local stub for the given API
Parameters:
  api - the bean's api to return a value for



getLocalProxy
abstract public Object getLocalProxy(Class api)(Code)
Returns the local jndi proxy for the given API
Parameters:
  api - the bean's api to return a value for



getMappedName
public String getMappedName()(Code)
Returns the mapped name.



getModuleName
public String getModuleName()(Code)
Returns's the module that defined this ejb.



getPostConstruct
public PostConstructConfig getPostConstruct()(Code)



getPreDestroy
public PreDestroyConfig getPreDestroy()(Code)



getPrimaryKeyClass
public Class getPrimaryKeyClass()(Code)
Returns the object key from a handle.



getProtocolId
public String getProtocolId()(Code)
The name to use for remoting protocols, such as IIOP and Hessian.



getProtocolId
public String getProtocolId(Class cl)(Code)
The name to use for remoting protocols, such as IIOP and Hessian.



getRemote21
public Class getRemote21()(Code)
Gets the 2.1 remote interface.



getRemoteApiList
public ArrayList<Class> getRemoteApiList()(Code)
Returns the remote object list.



getRemoteHomeClass
public Class getRemoteHomeClass()(Code)
Gets the remote home class.



getRemoteObject
abstract public Object getRemoteObject(Class api, String protocol)(Code)
Returns the remote skeleton for the given API
Parameters:
  api - the bean's api to return a value for
Parameters:
  protocol - the remote protocol



getRemoteObject
public Object getRemoteObject(Object key) throws FinderException(Code)
Returns the remote object.



getRemoteObjectClass
public Class getRemoteObjectClass()(Code)
Gets the remote object class.



getRemoteStubClass
public Class getRemoteStubClass()(Code)



getServerProgram
public ConfigProgram getServerProgram()(Code)
Sets the server program.



getServiceEndpoint
public Class getServiceEndpoint()(Code)
Gets the service endpoint



getSessionContext
public AbstractSessionContext getSessionContext()(Code)
Returns the session context.



getTimerService
public TimerService getTimerService()(Code)
Returns the timer service.



getTransaction
public TransactionContext getTransaction()(Code)
Returns the currrent transaction context. the transaction context for the request



getTransactionManager
public EjbTransactionManager getTransactionManager()(Code)
Returns the currrent transaction context. the transaction context for the request



getTransactionTimeout
public long getTransactionTimeout()(Code)
Gets the transaction timeout.



getType
protected String getType()(Code)



getUserTransaction
public UserTransaction getUserTransaction()(Code)



hasRemoteObject
public boolean hasRemoteObject()(Code)
Returns true if there is any remote object.



init
public void init() throws Exception(Code)



initInstance
public void initInstance(Object instance)(Code)
Initialize an instance



initInstance
public void initInstance(Object instance, ConfigContext env)(Code)
Initialize an instance



invalidateCache
public void invalidateCache()(Code)
Invalidates caches.



isContainerTransaction
public boolean isContainerTransaction()(Code)
Returns true if container transaction is used.



isDead
public boolean isDead()(Code)
Returns true if the server is dead.



isLocal
public boolean isLocal()(Code)
Returns true is there is a local home or local client object for the bean.



isRemote
public boolean isRemote()(Code)
Returns true is there is a remote home or remote client object for the bean.



lookup
public Object lookup(String jndiName)(Code)
Looks up the JNDI object.



remove
public Object remove(AbstractHandle handle)(Code)
Remove an object.



remove
public void remove(Object primaryKey)(Code)
Remove an object.



setAroundInvoke
public void setAroundInvoke(AroundInvokeConfig aroundInvoke)(Code)



setConfigLocation
public void setConfigLocation(String filename, int line)(Code)



setContainerTransaction
public void setContainerTransaction(boolean isContainerTransaction)(Code)
Sets true if container transaction is used.



setContextImplClass
public void setContextImplClass(Class cl)(Code)
Sets the context implementation class.



setEJBHome
void setEJBHome(EJBHome remoteHome)(Code)



setEJBName
public void setEJBName(String ejbName)(Code)
Sets the ejb name.



setEjbClass
public void setEjbClass(Class cl)(Code)
Sets the ejb class



setHandleEncoder
public void setHandleEncoder(HandleEncoder encoder)(Code)



setId
public void setId(String id)(Code)
Sets the id, module-path#ejb-name.



setInitProgram
public void setInitProgram(ConfigProgram init)(Code)
Sets the init program.



setLocalApiList
public void setLocalApiList(ArrayList<Class> list)(Code)
Sets the local api class list



setLocalHomeClass
public void setLocalHomeClass(Class cl)(Code)
Sets the local home class.



setLocation
public void setLocation(String location)(Code)



setMappedName
public void setMappedName(String mappedName)(Code)
Sets the mapped name, default is to use the EJBName. This is the name for both JNDI and the protocols such as IIOP and Hessian.



setModuleName
public void setModuleName(String moduleName)(Code)
Set's the module that defined this ejb.



setPostConstruct
public void setPostConstruct(PostConstructConfig postConstruct)(Code)



setPreDestroy
public void setPreDestroy(PreDestroyConfig preDestroy)(Code)



setRemoteApiList
public void setRemoteApiList(ArrayList<Class> list)(Code)
Sets the remote object list.



setRemoteHomeClass
public void setRemoteHomeClass(Class cl)(Code)
Sets the remote home class.



setRemoteObjectClass
public void setRemoteObjectClass(Class cl)(Code)
Sets the remote object class.



setServerProgram
public void setServerProgram(ConfigProgram serverProgram)(Code)
Sets the server program.



setServiceEndpoint
public void setServiceEndpoint(Class cl)(Code)
Sets the service endpoint.



setTransactionTimeout
public void setTransactionTimeout(long timeout)(Code)
Sets the transaction timeout.



start
public boolean start() throws Exception(Code)



toString
public String toString()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.