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


java.lang.Object
   org.jboss.resource.adapter.jms.inflow.JmsActivation

JmsActivation
public class JmsActivation implements ExceptionListener(Code)
A generic jms Activation.
author:
   Adrian Brock
version:
   $Revision: 60397 $


Field Summary
final public static  MethodONMESSAGE
    
protected  JMSProviderAdapteradapter
    
protected  Connectionconnection
    
protected  SynchronizedBooleandeliveryActive
    
protected  Destinationdestination
    
protected  DLQHandlerdlqHandler
    
protected  MessageEndpointFactoryendpointFactory
    
protected  booleanisDeliveryTransacted
    
protected  JmsServerSessionPoolpool
    
protected  JmsResourceAdapterra
    
protected  JmsActivationSpecspec
    
protected  TransactionManagertm
    

Constructor Summary
public  JmsActivation(JmsResourceAdapter ra, MessageEndpointFactory endpointFactory, JmsActivationSpec spec)
    

Method Summary
public  JmsActivationSpecgetActivationSpec()
    
public  ConnectiongetConnection()
    
public  DLQHandlergetDLQHandler()
    
public  DestinationgetDestination()
    
public  MessageEndpointFactorygetMessageEndpointFactory()
    
public  JMSProviderAdaptergetProviderAdapter()
    
public  TransactionManagergetTransactionManager()
    
public  WorkManagergetWorkManager()
    
public  voidhandleFailure(Throwable failure)
    
public  booleanisDeliveryTransacted()
    
public  voidonException(JMSException exception)
    
protected  voidsetup()
    
protected  voidsetupConnection(Context ctx)
    
protected  voidsetupDLQ(Context ctx)
    
protected  voidsetupDestination(Context ctx)
    
protected  voidsetupJMSProviderAdapter()
    
protected  QueueConnectionsetupQueueConnection(Context ctx, String user, String pass, String clientID)
    
protected  voidsetupSessionPool()
    
protected  TopicConnectionsetupTopicConnection(Context ctx, String user, String pass, String clientID)
    
public  voidstart()
    
public  voidstop()
    
protected  voidteardown()
    
protected  voidteardownConnection()
    
protected  voidteardownDLQ()
    
protected  voidteardownDestination()
    
protected  voidteardownSessionPool()
    
public  StringtoString()
    

Field Detail
ONMESSAGE
final public static Method ONMESSAGE(Code)
The onMessage method



adapter
protected JMSProviderAdapter adapter(Code)
The jms provider adapter



connection
protected Connection connection(Code)
The connection



deliveryActive
protected SynchronizedBoolean deliveryActive(Code)
Whether delivery is active



destination
protected Destination destination(Code)
The destination



dlqHandler
protected DLQHandler dlqHandler(Code)
The DLQ handler



endpointFactory
protected MessageEndpointFactory endpointFactory(Code)
The message endpoint factory



isDeliveryTransacted
protected boolean isDeliveryTransacted(Code)
Is the delivery transacted



pool
protected JmsServerSessionPool pool(Code)
The server session pool



ra
protected JmsResourceAdapter ra(Code)
The resource adapter



spec
protected JmsActivationSpec spec(Code)
The activation spec



tm
protected TransactionManager tm(Code)
The TransactionManager




Constructor Detail
JmsActivation
public JmsActivation(JmsResourceAdapter ra, MessageEndpointFactory endpointFactory, JmsActivationSpec spec) throws ResourceException(Code)




Method Detail
getActivationSpec
public JmsActivationSpec getActivationSpec()(Code)
the activation spec



getConnection
public Connection getConnection()(Code)
the connection



getDLQHandler
public DLQHandler getDLQHandler()(Code)
the dlq handler



getDestination
public Destination getDestination()(Code)
the destination



getMessageEndpointFactory
public MessageEndpointFactory getMessageEndpointFactory()(Code)
the message endpoint factory



getProviderAdapter
public JMSProviderAdapter getProviderAdapter()(Code)
the provider adapter



getTransactionManager
public TransactionManager getTransactionManager()(Code)



getWorkManager
public WorkManager getWorkManager()(Code)
the work manager



handleFailure
public void handleFailure(Throwable failure)(Code)
Handles any failure by trying to reconnect



isDeliveryTransacted
public boolean isDeliveryTransacted()(Code)
whether delivery is transacted



onException
public void onException(JMSException exception)(Code)



setup
protected void setup() throws Exception(Code)
Setup the activation
throws:
  Exception - for any error



setupConnection
protected void setupConnection(Context ctx) throws Exception(Code)
Setup the Connection
Parameters:
  ctx - the naming context
throws:
  Exception - for any error



setupDLQ
protected void setupDLQ(Context ctx) throws Exception(Code)
Setup the DLQ
Parameters:
  ctx - the naming context
throws:
  Exception - for any error



setupDestination
protected void setupDestination(Context ctx) throws Exception(Code)
Setup the Destination
Parameters:
  ctx - the naming context
throws:
  Exception - for any error



setupJMSProviderAdapter
protected void setupJMSProviderAdapter() throws Exception(Code)
Get the jms provider



setupQueueConnection
protected QueueConnection setupQueueConnection(Context ctx, String user, String pass, String clientID) throws Exception(Code)
Setup a Queue Connection
Parameters:
  ctx - the naming context
Parameters:
  user - the user
Parameters:
  pass - the password
Parameters:
  clientID - the client id
throws:
  Exception - for any error



setupSessionPool
protected void setupSessionPool() throws Exception(Code)
Setup the server session pool
throws:
  Exception - for any error



setupTopicConnection
protected TopicConnection setupTopicConnection(Context ctx, String user, String pass, String clientID) throws Exception(Code)
Setup a Topic Connection
Parameters:
  ctx - the naming context
Parameters:
  user - the user
Parameters:
  pass - the password
Parameters:
  clientID - the client id
throws:
  Exception - for any error



start
public void start() throws ResourceException(Code)
Start the activation
throws:
  ResourceException - for any error



stop
public void stop()(Code)
Stop the activation



teardown
protected void teardown()(Code)
Teardown the activation



teardownConnection
protected void teardownConnection()(Code)
Teardown the connection



teardownDLQ
protected void teardownDLQ()(Code)
Teardown the DLQ



teardownDestination
protected void teardownDestination()(Code)
Teardown the destination



teardownSessionPool
protected void teardownSessionPool()(Code)
Teardown the server session pool



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.