Java Doc for JMSConnectionFactory.java in  » Web-Services-AXIS2 » kernal » org » apache » axis2 » transport » jms » 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 » Web Services AXIS2 » kernal » org.apache.axis2.transport.jms 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.axis2.transport.jms.JMSConnectionFactory

JMSConnectionFactory
public class JMSConnectionFactory (Code)
Encapsulate a JMS Connection factory definition within an Axis2.xml

More than one JMS connection factory could be defined within an Axis2 XML specifying the JMSListener as the transportReceiver.

These connection factories are created at the initialization of the transportReceiver, and any service interested in using any of these could specify the name of the factory and the destination through Parameters named JMSConstants.CONFAC_PARAM and JMSConstants.DEST_PARAM as shown below.

myQueueConnectionFactory TestQueue

If a connection factory is defined by a parameter named JMSConstants.DEFAULT_CONFAC_NAME in the Axis2 XML, services which does not explicitly specify a connection factory will be defaulted to it - if it is defined in the Axis2 configuration.

e.g. org.apache.activemq.jndi.ActiveMQInitialContextFactory tcp://localhost:61616 TopicConnectionFactory myTopicOne, myTopicTwo org.apache.activemq.jndi.ActiveMQInitialContextFactory tcp://localhost:61616 QueueConnectionFactory myQueueOne, myQueueTwo org.apache.activemq.jndi.ActiveMQInitialContextFactory tcp://localhost:61616 ConnectionFactory myDestinationOne, myDestinationTwo




Constructor Summary
 JMSConnectionFactory(String name, String jndiName)
    
 JMSConnectionFactory(String name)
    

Method Summary
public  voidaddDestination(String destinationJndi, String serviceName)
    
public  voidaddProperty(String key, String value)
    
public  voidconnect()
    
public  ConnectionFactorygetConFactory()
    
public  StringgetDestinationName(String destinationJndi)
    
public  MapgetDestinations()
    
public  EndpointReferencegetEPRForDestination(String destination)
    
public  StringgetJndiName()
    
public  StringgetJndiPass()
    
public  StringgetJndiUser()
    
public  StringgetName()
    
public  StringgetPass()
    
public  HashtablegetProperties()
    
public  StringgetServiceByDestination(String destinationName)
    
public  StringgetServiceNameForDestination(String destination)
    
public  StringgetUser()
    
public  voidlisten(JMSMessageReceiver msgRcvr)
     Begin listening for messages on the list of destinations associated with this connection factory.
public  voidlistenOnDestination(String destinationJndi)
     Listen on the given destination from this connection factory.
public  voidremoveDestination(String destinationJndi)
    
public  voidsetJndiName(String jndiName)
    
public  voidsetJndiPass(String jndiPass)
    
public  voidsetJndiUser(String jndiUser)
    
public  voidstop()
     Close all connections, sessions etc..


Constructor Detail
JMSConnectionFactory
JMSConnectionFactory(String name, String jndiName)(Code)
Create a JMSConnectionFactory for the given Axis2 name and JNDI name
Parameters:
  name - the local Axis2 name of the connection factory
Parameters:
  jndiName - the JNDI name of the actual connection factory used



JMSConnectionFactory
JMSConnectionFactory(String name)(Code)
Create a JMSConnectionFactory for the given Axis2 name
Parameters:
  name - the local Axis2 name of the connection factory




Method Detail
addDestination
public void addDestination(String destinationJndi, String serviceName)(Code)
Add a listen destination on this connection factory on behalf of the given service
Parameters:
  destinationJndi - destination JNDI name
Parameters:
  serviceName - the service to which it belongs



addProperty
public void addProperty(String key, String value)(Code)
Add a property to the connection factory
Parameters:
  key -
Parameters:
  value -



connect
public void connect() throws NamingException(Code)
Connect to the actual JMS connection factory specified by the JNDI name
throws:
  NamingException - if the connection factory cannot be found



getConFactory
public ConnectionFactory getConFactory()(Code)
Get the actual underlying connection factory actual connection factory



getDestinationName
public String getDestinationName(String destinationJndi)(Code)
Return the provider specific Destination name if any for the destination with the given JNDI name
Parameters:
  destinationJndi - the JNDI name of the destination the provider specific Destination name or null if cannot be found



getDestinations
public Map getDestinations()(Code)
Get the list of destinations (JNDI) associated with this connection factory destinations to service maping



getEPRForDestination
public EndpointReference getEPRForDestination(String destination)(Code)
Return the EPR for the JMS Destination with the given JNDI name and using this connection factory
Parameters:
  destination - the JNDI name of the JMS Destionation the EPR



getJndiName
public String getJndiName()(Code)
Get the JNDI name of the actual factory the jndi name of the actual connection factory



getJndiPass
public String getJndiPass()(Code)
Get the JNDI name of the actual factory password the jndi name of the actual connection factory password



getJndiUser
public String getJndiUser()(Code)
Get the JNDI name of the actual factory username the jndi name of the actual connection factory username



getName
public String getName()(Code)
Return the name of the connection factory the Axis2 name of this factory



getPass
public String getPass()(Code)
This is the real password for the connection factory after the JNDI lookup the real password for the connection factory after the JNDI lookup



getProperties
public Hashtable getProperties()(Code)
Get the connection factory properties properties



getServiceByDestination
public String getServiceByDestination(String destinationName)(Code)



getServiceNameForDestination
public String getServiceNameForDestination(String destination)(Code)
Return the service name using this destination
Parameters:
  destination - the destination name the service which uses the given destination, or null



getUser
public String getUser()(Code)
This is the real username for the connection factory after the JNDI lookup the eal username for the connection factory after the JNDI lookup



listen
public void listen(JMSMessageReceiver msgRcvr) throws JMSException(Code)
Begin listening for messages on the list of destinations associated with this connection factory. (Called during Axis2 initialization of the Transport receivers)
Parameters:
  msgRcvr - the message receiver which will process received messages
throws:
  JMSException - on exceptions



listenOnDestination
public void listenOnDestination(String destinationJndi) throws JMSException(Code)
Listen on the given destination from this connection factory. Used to start listening on a destination associated with a newly deployed service
Parameters:
  destinationJndi - the JMS destination to listen on
throws:
  JMSException - on exception



removeDestination
public void removeDestination(String destinationJndi) throws JMSException(Code)
Remove listen destination on this connection factory
Parameters:
  destinationJndi - the JMS destination to be removed if an error occurs trying to stop listening for messages before removal



setJndiName
public void setJndiName(String jndiName)(Code)
Set the JNDI connection factory name
Parameters:
  jndiName -



setJndiPass
public void setJndiPass(String jndiPass)(Code)
Get the JNDI name of the actual factory password the jndi name of the actual connection factory password



setJndiUser
public void setJndiUser(String jndiUser)(Code)
Get the JNDI name of the actual factory username the jndi name of the actual connection factory username



stop
public void stop()(Code)
Close all connections, sessions etc.. and stop this connection factory



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.