Java Doc for MuleManagedConnection.java in  » ESB » mule » org » mule » module » jca » 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 » ESB » mule » org.mule.module.jca 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mule.module.jca.MuleManagedConnection

MuleManagedConnection
public class MuleManagedConnection implements ManagedConnection(Code)
MuleManagedConnection TODO



Constructor Summary
 MuleManagedConnection(MuleManagedConnectionFactory mcf, Subject subject, ConnectionRequestInfo cxRequestInfo)
     Constructor.

Method Summary
public  voidaddConnection(MuleConnection connection)
     Associate connection handle with the physical connection.
public  voidaddConnectionEventListener(ConnectionEventListener listener)
     Adds a connection event listener to the ManagedConnection instance.
public  voidassociateConnection(Object connection)
     Used by the container to change the association of an application-level connection handle with a ManagedConnection instance.
public  voidcleanup()
     Initiates a cleanup of the client-specific state maintained by a ManagedConnection instance.
public  voiddestroy()
     Destroys the physical connection.
 voidfireBeginEvent()
    
 voidfireCloseEvent(MuleConnection connection)
    
 voidfireCommitEvent()
    
 voidfireErrorOccurredEvent(Exception error)
    
 voidfireRollbackEvent()
    
public  ObjectgetConnection(Subject subject, ConnectionRequestInfo connectionRequestInfo)
     Creates a new connection handle to the Mail Server represented by the ManagedConnection instance.
public  javax.resource.spi.LocalTransactiongetLocalTransaction()
     Returns a javax.resource.spi.LocalTransaction instance.
public  PrintWritergetLogWriter()
     Gets the log writer for this ManagedConnection instance.
public  MuleManagedConnectionFactorygetManagedConnectionFactory()
     Returns the ManagedConnectionFactory that created this instance of ManagedConnection.
public  ManagedConnectionMetaDatagetMetaData()
     Gets the metadata information for this connection's underlying EIS resource manager instance.
public  PasswordCredentialgetPasswordCredential()
     Gets the password for the user associated with the ManagedConnection instance.
public  StringgetUsername()
     Gets the user name of the user associated with the ManagedConnection instance.
public  XAResourcegetXAResource()
     Returns a javax.transaction.xa.XAresource instance.
 booleanisDestroyed()
     Checks validation of the physical connection.
public  voidremoveConnection(MuleConnection connection)
     Removes the associated connection handle from the connections set to the physical connection.
public  voidremoveConnectionEventListener(ConnectionEventListener listener)
     Removes an already registered connection event listener from the ManagedConnection instance.
public  voidsetLogWriter(PrintWriter out)
     Sets the log writer for this ManagedConnection instance.


Constructor Detail
MuleManagedConnection
MuleManagedConnection(MuleManagedConnectionFactory mcf, Subject subject, ConnectionRequestInfo cxRequestInfo) throws ResourceException(Code)
Constructor.
Parameters:
  mcf - the ManagedConnectionFactory that created this instance
Parameters:
  subject - security context as JAAS subject
Parameters:
  cxRequestInfo - ConnectionRequestInfo instance
throws:
  javax.resource.ResourceException - in case of any error




Method Detail
addConnection
public void addConnection(MuleConnection connection)(Code)
Associate connection handle with the physical connection.
Parameters:
  connection - connection handle



addConnectionEventListener
public void addConnectionEventListener(ConnectionEventListener listener)(Code)
Adds a connection event listener to the ManagedConnection instance. The registered ConnectionEventListener instances are notified of connection close and error events as well as local-transaction-related events on the Managed Connection.
Parameters:
  listener - a new ConnectionEventListener to be registered



associateConnection
public void associateConnection(Object connection) throws ResourceException(Code)
Used by the container to change the association of an application-level connection handle with a ManagedConnection instance. The container should find the right ManagedConnection instance and call the associateConnection method.
Parameters:
  connection - application-level connection handle
throws:
  ResourceException - if the attempt to change the association fails



cleanup
public void cleanup() throws ResourceException(Code)
Initiates a cleanup of the client-specific state maintained by a ManagedConnection instance. The cleanup should invalidate all connection handles created using this ManagedConnection instance.
throws:
  ResourceException - if the cleanup fails



destroy
public void destroy() throws ResourceException(Code)
Destroys the physical connection.
throws:
  ResourceException - if the method fails to destroy the connection



fireBeginEvent
void fireBeginEvent()(Code)



fireCloseEvent
void fireCloseEvent(MuleConnection connection)(Code)



fireCommitEvent
void fireCommitEvent()(Code)



fireErrorOccurredEvent
void fireErrorOccurredEvent(Exception error)(Code)



fireRollbackEvent
void fireRollbackEvent()(Code)



getConnection
public Object getConnection(Subject subject, ConnectionRequestInfo connectionRequestInfo) throws ResourceException(Code)
Creates a new connection handle to the Mail Server represented by the ManagedConnection instance. This connection handle is used by the application code to refer to the underlying physical connection.
Parameters:
  subject - security context as JAAS subject
Parameters:
  connectionRequestInfo - ConnectionRequestInfo instance Connection instance representing the connection handle
throws:
  ResourceException - if the method fails to get a connection



getLocalTransaction
public javax.resource.spi.LocalTransaction getLocalTransaction() throws ResourceException(Code)
Returns a javax.resource.spi.LocalTransaction instance. The LocalTransaction interface is used by the container to manage local transactions for a RM instance.

Because this implementation does not support transactions, the method throws an exception. javax.resource.spi.LocalTransaction instance
throws:
  ResourceException - if transactions are not supported




getLogWriter
public PrintWriter getLogWriter() throws ResourceException(Code)
Gets the log writer for this ManagedConnection instance. the character output stream associated with this ManagedConnectioninstance
throws:
  ResourceException - if the method fails



getManagedConnectionFactory
public MuleManagedConnectionFactory getManagedConnectionFactory()(Code)
Returns the ManagedConnectionFactory that created this instance of ManagedConnection. the ManagedConnectionFactory for this connection



getMetaData
public ManagedConnectionMetaData getMetaData() throws ResourceException(Code)
Gets the metadata information for this connection's underlying EIS resource manager instance. The ManagedConnectionMetaData interface provides information about the underlying EIS instance associated with the ManagedConnection instance. ManagedConnectionMetaData ManagedConnectionMetaData instance
throws:
  ResourceException - if the metadata cannot be retrieved



getPasswordCredential
public PasswordCredential getPasswordCredential()(Code)
Gets the password for the user associated with the ManagedConnection instance. the password for this connection



getUsername
public String getUsername()(Code)
Gets the user name of the user associated with the ManagedConnection instance. the username for this connection



getXAResource
public XAResource getXAResource() throws ResourceException(Code)
Returns a javax.transaction.xa.XAresource instance. An application server enlists this XAResource instance with the Transaction Manager if the ManagedConnection instance is being used in a JTA transaction that is being coordinated by the Transaction Manager.

Because this implementation does not support transactions, the method throws an exception. the XAResource instance
throws:
  ResourceException - if transactions are not supported




isDestroyed
boolean isDestroyed()(Code)
Checks validation of the physical connection. true if the connection has been destroyed; false otherwise



removeConnection
public void removeConnection(MuleConnection connection)(Code)
Removes the associated connection handle from the connections set to the physical connection.
Parameters:
  connection - the connection handle



removeConnectionEventListener
public void removeConnectionEventListener(ConnectionEventListener listener)(Code)
Removes an already registered connection event listener from the ManagedConnection instance.
Parameters:
  listener - already registered connection event listener to be removed



setLogWriter
public void setLogWriter(PrintWriter out) throws ResourceException(Code)
Sets the log writer for this ManagedConnection instance. The log writer is a character output stream to which all logging and tracing messages for this ManagedConnection instance will be printed.
Parameters:
  out - character output stream to be associated
throws:
  ResourceException - if the method fails



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.