Java Doc for BaseConnectionManager2.java in  » EJB-Server-JBoss-4.2.1 » connector » org » jboss » resource » connectionmanager » 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 JBoss 4.2.1 » connector » org.jboss.resource.connectionmanager 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jboss.resource.connectionmanager.BaseConnectionManager2

All known Subclasses:   org.jboss.resource.connectionmanager.NoTxConnectionManager,  org.jboss.resource.connectionmanager.TxConnectionManager,
BaseConnectionManager2
abstract public class BaseConnectionManager2 extends ServiceMBeanSupport implements BaseConnectionManager2MBean,ConnectionCacheListener,ConnectionListenerFactory,TransactionTimeoutConfiguration(Code)
The BaseConnectionManager2 is an abstract base class for JBoss ConnectionManager implementations. It includes functionality to obtain managed connections from a ManagedConnectionPool mbean, find the Subject from a SubjectSecurityDomain, and interact with the CachedConnectionManager for connections held over transaction and method boundaries. Important mbean references are to a ManagedConnectionPool supplier (typically a JBossManagedConnectionPool), and a RARDeployment representing the ManagedConnectionFactory.
author:
   David Jencks
author:
   Erwin Guib
author:
   Adrian Brock
author:
   Weston Price
version:
   $Revision: 57189 $

Inner Class :abstract protected class BaseConnectionEventListener implements ConnectionListener
Inner Class :public static class ConnectionManagerProxy implements ConnectionManager,Serializable,TransactionTimeoutConfiguration

Field Summary
final public static  StringSTOPPING_NOTIFICATION
    
protected  CachedConnectionManagerccm
    
protected  ObjectNameccmName
    
protected  ObjectNamejaasSecurityManagerService
    
protected  StringjndiName
    
protected  ObjectNamemanagedConnectionPoolName
    
protected  ManagedConnectionPoolpoolingStrategy
    
protected  SubjectSecurityManagersecurityDomain
    
protected  StringsecurityDomainJndiName
    
protected  booleantrace
    

Constructor Summary
public  BaseConnectionManager2()
     Default BaseConnectionManager2 managed constructor for use by subclass mbeans.
public  BaseConnectionManager2(CachedConnectionManager ccm, ManagedConnectionPool poolingStrategy)
     Creates a new BaseConnectionManager2 instance.

Method Summary
public  ObjectallocateConnection(ManagedConnectionFactory mcf, ConnectionRequestInfo cri)
    
public  voiddisconnect(Collection crs, Set unsharableResources)
    
protected  voiddisconnectManagedConnection(ConnectionListener cl)
    
public  ObjectNamegetCachedConnectionManager()
    
final protected  CachedConnectionManagergetCcm()
    
public  intgetConnectionCount()
    
public  BaseConnectionManager2getInstance()
    
public  ObjectNamegetJaasSecurityManagerService()
    
public  StringgetJndiName()
    
public  ConnectionListenergetManagedConnection(Subject subject, ConnectionRequestInfo cri)
     Public for use in testing pooling functionality by itself.
protected  ConnectionListenergetManagedConnection(Transaction transaction, Subject subject, ConnectionRequestInfo cri)
    
public  ManagedConnectionFactorygetManagedConnectionFactory()
    
public  ObjectNamegetManagedConnectionPool()
    
public  MBeanNotificationInfo[]getNotificationInfo()
    
public  ManagedConnectionPoolgetPoolingStrategy()
    
public  StringgetSecurityDomainJndiName()
    
public  longgetTimeLeftBeforeTransactionTimeout(boolean errorRollback)
    
public  TransactionManagergetTransactionManagerInstance()
    
public  intgetTransactionTimeout()
    
public  booleanisTransactional()
    
protected  voidmanagedConnectionDisconnected(ConnectionListener cl)
    
protected  voidmanagedConnectionReconnected(ConnectionListener cl)
    
public  voidreconnect(Collection conns, Set unsharableResources)
    
protected  voidreconnectManagedConnection(ConnectionListener cl)
    
protected static  voidrethrowAsResourceException(String message, Throwable t)
    
public  voidreturnManagedConnection(ConnectionListener cl, boolean kill)
    
public  voidsetCachedConnectionManager(ObjectName ccmName)
    
public  voidsetJaasSecurityManagerService(ObjectName jaasSecurityManagerService)
    
public  voidsetJndiName(String jndiName)
    
public  voidsetManagedConnectionPool(ObjectName newManagedConnectionPool)
    
public  voidsetSecurityDomainJndiName(String securityDomainJndiName)
    
protected  voidstartService()
    
protected  voidstopService()
    
public  voidtransactionStarted(Collection conns)
    
protected  voidunregisterAssociation(ConnectionListener cl, Object c)
    

Field Detail
STOPPING_NOTIFICATION
final public static String STOPPING_NOTIFICATION(Code)



ccm
protected CachedConnectionManager ccm(Code)



ccmName
protected ObjectName ccmName(Code)



jaasSecurityManagerService
protected ObjectName jaasSecurityManagerService(Code)



jndiName
protected String jndiName(Code)



managedConnectionPoolName
protected ObjectName managedConnectionPoolName(Code)



poolingStrategy
protected ManagedConnectionPool poolingStrategy(Code)



securityDomain
protected SubjectSecurityManager securityDomain(Code)



securityDomainJndiName
protected String securityDomainJndiName(Code)



trace
protected boolean trace(Code)




Constructor Detail
BaseConnectionManager2
public BaseConnectionManager2()(Code)
Default BaseConnectionManager2 managed constructor for use by subclass mbeans.



BaseConnectionManager2
public BaseConnectionManager2(CachedConnectionManager ccm, ManagedConnectionPool poolingStrategy)(Code)
Creates a new BaseConnectionManager2 instance. for TESTING ONLY! not a managed operation.
Parameters:
  ccm - a CachedConnectionManager value
Parameters:
  poolingStrategy - a ManagedConnectionPool value




Method Detail
allocateConnection
public Object allocateConnection(ManagedConnectionFactory mcf, ConnectionRequestInfo cri) throws ResourceException(Code)



disconnect
public void disconnect(Collection crs, Set unsharableResources) throws ResourceException(Code)



disconnectManagedConnection
protected void disconnectManagedConnection(ConnectionListener cl)(Code)
Invoked when a managed connection is no longer associated
Parameters:
  cl - the managed connection



getCachedConnectionManager
public ObjectName getCachedConnectionManager()(Code)



getCcm
final protected CachedConnectionManager getCcm()(Code)



getConnectionCount
public int getConnectionCount()(Code)



getInstance
public BaseConnectionManager2 getInstance()(Code)



getJaasSecurityManagerService
public ObjectName getJaasSecurityManagerService()(Code)



getJndiName
public String getJndiName()(Code)



getManagedConnection
public ConnectionListener getManagedConnection(Subject subject, ConnectionRequestInfo cri) throws ResourceException(Code)
Public for use in testing pooling functionality by itself. called by both allocateConnection and reconnect.
Parameters:
  subject - a Subject value
Parameters:
  cri - a ConnectionRequestInfo value a ManagedConnection value
exception:
  ResourceException - if an error occurs



getManagedConnection
protected ConnectionListener getManagedConnection(Transaction transaction, Subject subject, ConnectionRequestInfo cri) throws ResourceException(Code)
Get the managed connection from the pool
Parameters:
  transaction - the transaction for track by transaction
Parameters:
  subject - the subject
Parameters:
  cri - the ConnectionRequestInfo a managed connection
exception:
  ResourceException - if an error occurs



getManagedConnectionFactory
public ManagedConnectionFactory getManagedConnectionFactory()(Code)



getManagedConnectionPool
public ObjectName getManagedConnectionPool()(Code)



getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo()(Code)



getPoolingStrategy
public ManagedConnectionPool getPoolingStrategy()(Code)
For testing



getSecurityDomainJndiName
public String getSecurityDomainJndiName()(Code)



getTimeLeftBeforeTransactionTimeout
public long getTimeLeftBeforeTransactionTimeout(boolean errorRollback) throws RollbackException(Code)



getTransactionManagerInstance
public TransactionManager getTransactionManagerInstance()(Code)



getTransactionTimeout
public int getTransactionTimeout() throws SystemException(Code)



isTransactional
public boolean isTransactional()(Code)



managedConnectionDisconnected
protected void managedConnectionDisconnected(ConnectionListener cl) throws ResourceException(Code)
For polymorphism.

Do not invoke directly use disconnectManagedConnection which does the relevent exception handling




managedConnectionReconnected
protected void managedConnectionReconnected(ConnectionListener cl) throws ResourceException(Code)
For polymorphism.

Do not invoke directly use reconnectManagedConnection which does the relevent exception handling




reconnect
public void reconnect(Collection conns, Set unsharableResources) throws ResourceException(Code)



reconnectManagedConnection
protected void reconnectManagedConnection(ConnectionListener cl) throws ResourceException(Code)
Invoked to reassociate a managed connection
Parameters:
  cl - the managed connection



rethrowAsResourceException
protected static void rethrowAsResourceException(String message, Throwable t) throws ResourceException(Code)
Rethrow a throwable as resource exception



returnManagedConnection
public void returnManagedConnection(ConnectionListener cl, boolean kill)(Code)



setCachedConnectionManager
public void setCachedConnectionManager(ObjectName ccmName)(Code)



setJaasSecurityManagerService
public void setJaasSecurityManagerService(ObjectName jaasSecurityManagerService)(Code)



setJndiName
public void setJndiName(String jndiName)(Code)



setManagedConnectionPool
public void setManagedConnectionPool(ObjectName newManagedConnectionPool)(Code)



setSecurityDomainJndiName
public void setSecurityDomainJndiName(String securityDomainJndiName)(Code)



startService
protected void startService() throws Exception(Code)



stopService
protected void stopService() throws Exception(Code)



transactionStarted
public void transactionStarted(Collection conns) throws SystemException(Code)



unregisterAssociation
protected void unregisterAssociation(ConnectionListener cl, Object c) throws ResourceException(Code)



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