Java Doc for JMSUtils.java in  » ESB » synapse » org » apache » synapse » 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 » ESB » synapse » org.apache.synapse.transport.jms 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.synapse.transport.base.BaseUtils
      org.apache.synapse.transport.jms.JMSUtils

JMSUtils
public class JMSUtils extends BaseUtils (Code)
Miscallaneous methods used for the JMS transport




Method Summary
public static  ConnectioncreateConnection(ConnectionFactory conFactory, String user, String pass, String destinationType)
    
public static  MessageConsumercreateConsumer(Session session, Destination dest)
    
public static  DestinationcreateDestination(Session session, String destName, String destinationType)
    
public static  voidcreateDestination(ConnectionFactory conFactory, String destinationJNDIName, String destinationType)
    
public static  DestinationcreateDestinationIfRequired(Destination destination, String destinationType, String targetAddress, Session session)
    
public static  StringcreateJMSQueue(Connection con, String destinationJNDIName)
    
public static  StringcreateJMSTopic(Connection con, String destinationJNDIName)
    
public static  SessioncreateSession(Connection con, boolean transacted, int acknowledgeMode, String destinationType)
    
public static  DestinationcreateTemporaryDestination(Session session)
    
public static  StringgetDestination(String url)
    
public static  StringgetDestinationTypeForService(AxisService service)
    
static  StringgetEPR(JMSConnectionFactory cf, String destination)
    
public  InputStreamgetInputStream(Object message)
    
public static  BaseUtilsgetInstace()
    
public static  StringgetJNDIDestinationNameForService(AxisService service)
    
public  byte[]getMessageBinaryPayload(Object message)
    
public  StringgetMessageTextPayload(Object message)
    
public static  HashtablegetProperties(String url)
    
public  StringgetProperty(Object message, String property)
    
public static  MapgetTransportHeaders(Message message)
    
public static  booleanisJMSService(AxisService service)
    
public static  voidloadTransportHeaders(Message message, MessageContext responseMsgCtx)
    
public static  voidsendMessageToJMSDestination(Session session, Destination destination, String destinationType, Message message)
    
public static  voidsetConnectionFactoryParameters(Parameter param, JMSConnectionFactory jmsConFactory)
    
public static  DestinationsetReplyDestination(Destination replyDestination, Session session, Message message)
    
public static  voidsetTransportHeaders(MessageContext msgContext, Message message)
    



Method Detail
createConnection
public static Connection createConnection(ConnectionFactory conFactory, String user, String pass, String destinationType) throws JMSException(Code)



createConsumer
public static MessageConsumer createConsumer(Session session, Destination dest) throws JMSException(Code)



createDestination
public static Destination createDestination(Session session, String destName, String destinationType) throws JMSException(Code)



createDestination
public static void createDestination(ConnectionFactory conFactory, String destinationJNDIName, String destinationType) throws JMSException(Code)



createDestinationIfRequired
public static Destination createDestinationIfRequired(Destination destination, String destinationType, String targetAddress, Session session) throws AxisFault(Code)
When trying to send a message to a destination, if it does not exist, try to create it
Parameters:
  destination - the JMS destination to send messages
Parameters:
  targetAddress - the target JMS EPR to find the Destination to be created if required
Parameters:
  session - the JMS session to use the JMS Destination where messages could be posted
throws:
  AxisFault - if the target Destination does not exist and cannot be created



createJMSQueue
public static String createJMSQueue(Connection con, String destinationJNDIName) throws JMSException(Code)
Create a JMS Queue using the given connection with the JNDI destination name, and return the JMS Destination name of the created queue
Parameters:
  con - the JMS Connection to be used
Parameters:
  destinationJNDIName - the JNDI name of the Queue to be created the JMS Destination name of the created Queue
throws:
  JMSException - on error



createJMSTopic
public static String createJMSTopic(Connection con, String destinationJNDIName) throws JMSException(Code)
Create a JMS Topic using the given connection with the JNDI destination name, and return the JMS Destination name of the created queue
Parameters:
  con - the JMS Connection to be used
Parameters:
  destinationJNDIName - the JNDI name of the Topic to be created the JMS Destination name of the created Topic
throws:
  JMSException - on error



createSession
public static Session createSession(Connection con, boolean transacted, int acknowledgeMode, String destinationType) throws JMSException(Code)



createTemporaryDestination
public static Destination createTemporaryDestination(Session session) throws JMSException(Code)



getDestination
public static String getDestination(String url)(Code)
Return the destination name from the given URL
Parameters:
  url - the URL the destination name



getDestinationTypeForService
public static String getDestinationTypeForService(AxisService service)(Code)
Get the JMS destination type of this service
Parameters:
  service - the Axis Service the name of the JMS destination



getEPR
static String getEPR(JMSConnectionFactory cf, String destination)(Code)
Get the EPR for the given JMS connection factory and destination the form of the URL is jms:/?[=&]*
Parameters:
  cf - the Axis2 JMS connection factory
Parameters:
  destination - the JNDI name of the destination the EPR as a String



getInputStream
public InputStream getInputStream(Object message)(Code)
Get an InputStream to the JMS message payload
Parameters:
  message - the JMS message an InputStream to the payload



getInstace
public static BaseUtils getInstace()(Code)



getJNDIDestinationNameForService
public static String getJNDIDestinationNameForService(AxisService service)(Code)
Get the JMS destination used by this service
Parameters:
  service - the Axis Service the name of the JMS destination



getMessageBinaryPayload
public byte[] getMessageBinaryPayload(Object message)(Code)



getMessageTextPayload
public String getMessageTextPayload(Object message)(Code)



getProperties
public static Hashtable getProperties(String url)(Code)
Extract connection factory properties from a given URL
Parameters:
  url - a JMS URL of the form jms:/?[=&]* a Hashtable of extracted properties



getProperty
public String getProperty(Object message, String property)(Code)
Get a String property from the JMS message
Parameters:
  message - JMS message
Parameters:
  property - property name property value



getTransportHeaders
public static Map getTransportHeaders(Message message)(Code)
Extract transport level headers for JMS from the given message into a Map
Parameters:
  message - the JMS message a Map of the transport headers



isJMSService
public static boolean isJMSService(AxisService service)(Code)
Should this service be enabled over the JMS transport?
Parameters:
  service - the Axis service true if JMS should be enabled



loadTransportHeaders
public static void loadTransportHeaders(Message message, MessageContext responseMsgCtx) throws AxisFault(Code)
Read the transport headers from the JMS Message and set them to the axis2 message context
Parameters:
  message - the JMS Message received
Parameters:
  responseMsgCtx - the axis message context
throws:
  AxisFault - on error



sendMessageToJMSDestination
public static void sendMessageToJMSDestination(Session session, Destination destination, String destinationType, Message message) throws AxisFault(Code)
Send the given message to the Destination using the given session
Parameters:
  session - the session to use to send
Parameters:
  destination - the Destination
Parameters:
  message - the JMS Message
throws:
  AxisFault - on error



setConnectionFactoryParameters
public static void setConnectionFactoryParameters(Parameter param, JMSConnectionFactory jmsConFactory)(Code)
Set JNDI properties and any other connection factory parameters to the connection factory passed in, looing at the parameter in axis2.xml
Parameters:
  param - the axis parameter that holds the connection factory settings
Parameters:
  jmsConFactory - the JMS connection factory to which the parameters should be applied



setReplyDestination
public static Destination setReplyDestination(Destination replyDestination, Session session, Message message)(Code)
Set the JMS ReplyTo for the message
Parameters:
  replyDestination - the JMS Destination where the reply is expected
Parameters:
  session - the session to use to create a temp Queue if a response is expectedbut a Destination has not been specified
Parameters:
  message - the JMS message where the final Destinatio would be set as the JMS ReplyTo the JMS ReplyTo Destination for the message



setTransportHeaders
public static void setTransportHeaders(MessageContext msgContext, Message message) throws JMSException(Code)
Set transport headers from the axis message context, into the JMS message
Parameters:
  msgContext - the axis message context
Parameters:
  message - the JMS Message
throws:
  JMSException - on exception



Methods inherited from org.apache.synapse.transport.base.BaseUtils
public static SOAPEnvelope getEnvelope(InputStream in, String namespace) throws XMLStreamException(Code)(Java Doc)
abstract public InputStream getInputStream(Object message)(Code)(Java Doc)
abstract public byte[] getMessageBinaryPayload(Object message)(Code)(Java Doc)
abstract public String getMessageTextPayload(Object message)(Code)(Java Doc)
public static long getMinPollTime(List pollTable)(Code)(Java Doc)
public static OMOutputFormat getOMOutputFormat(MessageContext msgContext)(Code)(Java Doc)
public static String getOptionalServiceParam(AxisService service, String paramName) throws AxisFault(Code)(Java Doc)
abstract public String getProperty(Object message, String property)(Code)(Java Doc)
public static QName getQNameFromString(Object obj)(Code)(Java Doc)
public static String getRequiredServiceParam(AxisService service, String paramName) throws AxisFault(Code)(Java Doc)
protected static void handleException(String s)(Code)(Java Doc)
protected static void handleException(String s, Exception e)(Code)(Java Doc)
public static boolean isUsingTransport(AxisService service, String transportName)(Code)(Java Doc)
public static boolean isValid(String str)(Code)(Java Doc)
public static void markServiceAsFaulty(String serviceName, String msg, AxisConfiguration axisCfg)(Code)(Java Doc)
public void setSOAPEnvelope(Object message, MessageContext msgContext, String contentType) throws AxisFault(Code)(Java Doc)

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.