blob: d01f99145cdfca092792514fdfdb15f9f36fed86 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>JMSUtils (Apache Axis2)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="JMSUtils (Apache Axis2)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/JMSUtils.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/axis2/transport/jms/JMSSender.html" title="class in org.apache.axis2.transport.jms"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/axis2/transport/jms/ServiceTaskManager.html" title="class in org.apache.axis2.transport.jms"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/axis2/transport/jms/JMSUtils.html" target="_top">Frames</a></li>
<li><a href="JMSUtils.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.axis2.transport.jms</div>
<h2 title="Class JMSUtils" class="title">Class JMSUtils</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/axis2/transport/base/BaseUtils.html" title="class in org.apache.axis2.transport.base">org.apache.axis2.transport.base.BaseUtils</a></li>
<li>
<ul class="inheritance">
<li>org.apache.axis2.transport.jms.JMSUtils</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="strong">JMSUtils</span>
extends <a href="../../../../../org/apache/axis2/transport/base/BaseUtils.html" title="class in org.apache.axis2.transport.base">BaseUtils</a></pre>
<div class="block">Miscallaneous methods used for the JMS transport</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#JMSUtils()">JMSUtils</a></strong>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javaee/5/api/javax/jms/Connection.html?is-external=true" title="class or interface in javax.jms">Connection</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#createConnection(javax.jms.ConnectionFactory, java.lang.String, java.lang.String, boolean, java.lang.Boolean)">createConnection</a></strong>(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/ConnectionFactory.html?is-external=true" title="class or interface in javax.jms">ConnectionFactory</a>&nbsp;conFac,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;user,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pass,
boolean&nbsp;jmsSpec11,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a>&nbsp;isQueue)</code>
<div class="block">This is a JMS spec independent method to create a Connection.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javaee/5/api/javax/jms/MessageConsumer.html?is-external=true" title="class or interface in javax.jms">MessageConsumer</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#createConsumer(javax.jms.Session, javax.jms.Destination, java.lang.Boolean, java.lang.String, java.lang.String, boolean, boolean, boolean)">createConsumer</a></strong>(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Session.html?is-external=true" title="class or interface in javax.jms">Session</a>&nbsp;session,
<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Destination.html?is-external=true" title="class or interface in javax.jms">Destination</a>&nbsp;destination,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a>&nbsp;isQueue,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;subscriberName,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;messageSelector,
boolean&nbsp;pubSubNoLocal,
boolean&nbsp;isDurable,
boolean&nbsp;jmsSpec11)</code>
<div class="block">This is a JMS spec independent method to create a MessageConsumer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javaee/5/api/javax/jms/MessageConsumer.html?is-external=true" title="class or interface in javax.jms">MessageConsumer</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#createConsumer(javax.jms.Session, javax.jms.Destination, java.lang.String)">createConsumer</a></strong>(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Session.html?is-external=true" title="class or interface in javax.jms">Session</a>&nbsp;session,
<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Destination.html?is-external=true" title="class or interface in javax.jms">Destination</a>&nbsp;dest,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;messageSelector)</code>
<div class="block">Create a MessageConsumer for the given Destination</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javaee/5/api/javax/jms/MessageProducer.html?is-external=true" title="class or interface in javax.jms">MessageProducer</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#createProducer(javax.jms.Session, javax.jms.Destination, java.lang.Boolean, boolean)">createProducer</a></strong>(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Session.html?is-external=true" title="class or interface in javax.jms">Session</a>&nbsp;session,
<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Destination.html?is-external=true" title="class or interface in javax.jms">Destination</a>&nbsp;destination,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a>&nbsp;isQueue,
boolean&nbsp;jmsSpec11)</code>
<div class="block">This is a JMS spec independent method to create a MessageProducer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javaee/5/api/javax/jms/Session.html?is-external=true" title="class or interface in javax.jms">Session</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#createSession(javax.jms.Connection, boolean, int, boolean, java.lang.Boolean)">createSession</a></strong>(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Connection.html?is-external=true" title="class or interface in javax.jms">Connection</a>&nbsp;connection,
boolean&nbsp;transacted,
int&nbsp;ackMode,
boolean&nbsp;jmsSpec11,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a>&nbsp;isQueue)</code>
<div class="block">This is a JMS spec independent method to create a Session.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javaee/5/api/javax/jms/Destination.html?is-external=true" title="class or interface in javax.jms">Destination</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#createTemporaryDestination(javax.jms.Session)">createTemporaryDestination</a></strong>(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Session.html?is-external=true" title="class or interface in javax.jms">Session</a>&nbsp;session)</code>
<div class="block">Create a temp queue or topic for synchronous receipt of responses, when a reply destination
is not specified</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#getBodyLength(javax.jms.BytesMessage)">getBodyLength</a></strong>(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/BytesMessage.html?is-external=true" title="class or interface in javax.jms">BytesMessage</a>&nbsp;bMsg)</code>
<div class="block">Return the body length in bytes for a bytes message</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#getDestination(java.lang.String)">getDestination</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;url)</code>
<div class="block">Return the destination name from the given URL</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#getDestinationTypeAsString(int)">getDestinationTypeAsString</a></strong>(int&nbsp;destType)</code>
<div class="block">Return a String representation of the destination type</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#getMessageSize(javax.jms.Message)">getMessageSize</a></strong>(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Message.html?is-external=true" title="class or interface in javax.jms">Message</a>&nbsp;message)</code>
<div class="block">Get the length of the message in bytes</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#getProperty(javax.jms.Message, java.lang.String)">getProperty</a></strong>(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Message.html?is-external=true" title="class or interface in javax.jms">Message</a>&nbsp;message,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;property)</code>
<div class="block">Get a String property from the JMS message</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#getTransportHeaders(javax.jms.Message)">getTransportHeaders</a></strong>(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Message.html?is-external=true" title="class or interface in javax.jms">Message</a>&nbsp;message)</code>
<div class="block">Extract transport level headers for JMS from the given message into a Map</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#isJMSService(org.apache.axis2.description.AxisService)">isJMSService</a></strong>(<a href="../../../../../org/apache/axis2/description/AxisService.html" title="class in org.apache.axis2.description">AxisService</a>&nbsp;service)</code>
<div class="block">Should this service be enabled over the JMS transport?</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#loadTransportHeaders(javax.jms.Message, org.apache.axis2.context.MessageContext)">loadTransportHeaders</a></strong>(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Message.html?is-external=true" title="class or interface in javax.jms">Message</a>&nbsp;message,
<a href="../../../../../org/apache/axis2/context/MessageContext.html" title="class in org.apache.axis2.context">MessageContext</a>&nbsp;responseMsgCtx)</code>
<div class="block">Read the transport headers from the JMS Message and set them to the axis2 message context</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;T</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#lookup(javax.naming.Context, java.lang.Class, java.lang.String)">lookup</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/javax/naming/Context.html?is-external=true" title="class or interface in javax.naming">Context</a>&nbsp;context,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;clazz,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javaee/5/api/javax/jms/Destination.html?is-external=true" title="class or interface in javax.jms">Destination</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#lookupDestination(javax.naming.Context, java.lang.String, java.lang.String)">lookupDestination</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/javax/naming/Context.html?is-external=true" title="class or interface in javax.naming">Context</a>&nbsp;context,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;destinationName,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;destinationType)</code>
<div class="block">Return the JMS destination with the given destination name looked up from the context</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javaee/5/api/javax/jms/Destination.html?is-external=true" title="class or interface in javax.jms">Destination</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#setReplyDestination(javax.jms.Destination, javax.jms.Session, javax.jms.Message)">setReplyDestination</a></strong>(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Destination.html?is-external=true" title="class or interface in javax.jms">Destination</a>&nbsp;replyDestination,
<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Session.html?is-external=true" title="class or interface in javax.jms">Session</a>&nbsp;session,
<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Message.html?is-external=true" title="class or interface in javax.jms">Message</a>&nbsp;message)</code>
<div class="block">Set the JMS ReplyTo for the message</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#setSOAPEnvelope(javax.jms.Message, org.apache.axis2.context.MessageContext, java.lang.String)">setSOAPEnvelope</a></strong>(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Message.html?is-external=true" title="class or interface in javax.jms">Message</a>&nbsp;message,
<a href="../../../../../org/apache/axis2/context/MessageContext.html" title="class in org.apache.axis2.context">MessageContext</a>&nbsp;msgContext,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;contentType)</code>
<div class="block">Set the SOAPEnvelope to the Axis2 MessageContext, from the JMS Message passed in</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis2/transport/jms/JMSUtils.html#setTransportHeaders(org.apache.axis2.context.MessageContext, javax.jms.Message)">setTransportHeaders</a></strong>(<a href="../../../../../org/apache/axis2/context/MessageContext.html" title="class in org.apache.axis2.context">MessageContext</a>&nbsp;msgContext,
<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Message.html?is-external=true" title="class or interface in javax.jms">Message</a>&nbsp;message)</code>
<div class="block">Set transport headers from the axis message context, into the JMS message</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.axis2.transport.base.BaseUtils">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.axis2.transport.base.<a href="../../../../../org/apache/axis2/transport/base/BaseUtils.html" title="class in org.apache.axis2.transport.base">BaseUtils</a></h3>
<code><a href="../../../../../org/apache/axis2/transport/base/BaseUtils.html#getEnvelope(java.io.InputStream, java.lang.String)">getEnvelope</a>, <a href="../../../../../org/apache/axis2/transport/base/BaseUtils.html#getEPRProperties(java.lang.String)">getEPRProperties</a>, <a href="../../../../../org/apache/axis2/transport/base/BaseUtils.html#getMessageFormatter(org.apache.axis2.context.MessageContext)">getMessageFormatter</a>, <a href="../../../../../org/apache/axis2/transport/base/BaseUtils.html#getOMOutputFormat(org.apache.axis2.context.MessageContext)">getOMOutputFormat</a>, <a href="../../../../../org/apache/axis2/transport/base/BaseUtils.html#getQNameFromString(java.lang.Object)">getQNameFromString</a>, <a href="../../../../../org/apache/axis2/transport/base/BaseUtils.html#handleException(java.lang.String)">handleException</a>, <a href="../../../../../org/apache/axis2/transport/base/BaseUtils.html#handleException(java.lang.String, java.lang.Exception)">handleException</a>, <a href="../../../../../org/apache/axis2/transport/base/BaseUtils.html#isBlank(java.lang.String)">isBlank</a>, <a href="../../../../../org/apache/axis2/transport/base/BaseUtils.html#isUsingTransport(org.apache.axis2.description.AxisService, java.lang.String)">isUsingTransport</a>, <a href="../../../../../org/apache/axis2/transport/base/BaseUtils.html#loadProperties(java.lang.String)">loadProperties</a>, <a href="../../../../../org/apache/axis2/transport/base/BaseUtils.html#markServiceAsFaulty(java.lang.String, java.lang.String, org.apache.axis2.engine.AxisConfiguration)">markServiceAsFaulty</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="JMSUtils()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>JMSUtils</h4>
<pre>public&nbsp;JMSUtils()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="isJMSService(org.apache.axis2.description.AxisService)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isJMSService</h4>
<pre>public static&nbsp;boolean&nbsp;isJMSService(<a href="../../../../../org/apache/axis2/description/AxisService.html" title="class in org.apache.axis2.description">AxisService</a>&nbsp;service)</pre>
<div class="block">Should this service be enabled over the JMS transport?</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>service</code> - the Axis service</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if JMS should be enabled</dd></dl>
</li>
</ul>
<a name="getProperty(javax.jms.Message, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getProperty</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getProperty(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Message.html?is-external=true" title="class or interface in javax.jms">Message</a>&nbsp;message,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;property)</pre>
<div class="block">Get a String property from the JMS message</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>message</code> - JMS message</dd><dd><code>property</code> - property name</dd>
<dt><span class="strong">Returns:</span></dt><dd>property value</dd></dl>
</li>
</ul>
<a name="getDestination(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDestination</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getDestination(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;url)</pre>
<div class="block">Return the destination name from the given URL</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>url</code> - the URL</dd>
<dt><span class="strong">Returns:</span></dt><dd>the destination name</dd></dl>
</li>
</ul>
<a name="setSOAPEnvelope(javax.jms.Message, org.apache.axis2.context.MessageContext, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSOAPEnvelope</h4>
<pre>public static&nbsp;void&nbsp;setSOAPEnvelope(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Message.html?is-external=true" title="class or interface in javax.jms">Message</a>&nbsp;message,
<a href="../../../../../org/apache/axis2/context/MessageContext.html" title="class in org.apache.axis2.context">MessageContext</a>&nbsp;msgContext,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;contentType)
throws <a href="../../../../../org/apache/axis2/AxisFault.html" title="class in org.apache.axis2">AxisFault</a>,
<a href="http://docs.oracle.com/javaee/5/api/javax/jms/JMSException.html?is-external=true" title="class or interface in javax.jms">JMSException</a></pre>
<div class="block">Set the SOAPEnvelope to the Axis2 MessageContext, from the JMS Message passed in</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>message</code> - the JMS message read</dd><dd><code>msgContext</code> - the Axis2 MessageContext to be populated</dd><dd><code>contentType</code> - content type for the message</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/axis2/AxisFault.html" title="class in org.apache.axis2">AxisFault</a></code></dd>
<dd><code><a href="http://docs.oracle.com/javaee/5/api/javax/jms/JMSException.html?is-external=true" title="class or interface in javax.jms">JMSException</a></code></dd></dl>
</li>
</ul>
<a name="setReplyDestination(javax.jms.Destination, javax.jms.Session, javax.jms.Message)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setReplyDestination</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Destination.html?is-external=true" title="class or interface in javax.jms">Destination</a>&nbsp;setReplyDestination(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Destination.html?is-external=true" title="class or interface in javax.jms">Destination</a>&nbsp;replyDestination,
<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Session.html?is-external=true" title="class or interface in javax.jms">Session</a>&nbsp;session,
<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Message.html?is-external=true" title="class or interface in javax.jms">Message</a>&nbsp;message)</pre>
<div class="block">Set the JMS ReplyTo for the message</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>replyDestination</code> - the JMS Destination where the reply is expected</dd><dd><code>session</code> - the session to use to create a temp Queue if a response is expected
but a Destination has not been specified</dd><dd><code>message</code> - the JMS message where the final Destinatio would be set as the JMS ReplyTo</dd>
<dt><span class="strong">Returns:</span></dt><dd>the JMS ReplyTo Destination for the message</dd></dl>
</li>
</ul>
<a name="setTransportHeaders(org.apache.axis2.context.MessageContext, javax.jms.Message)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTransportHeaders</h4>
<pre>public static&nbsp;void&nbsp;setTransportHeaders(<a href="../../../../../org/apache/axis2/context/MessageContext.html" title="class in org.apache.axis2.context">MessageContext</a>&nbsp;msgContext,
<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Message.html?is-external=true" title="class or interface in javax.jms">Message</a>&nbsp;message)
throws <a href="http://docs.oracle.com/javaee/5/api/javax/jms/JMSException.html?is-external=true" title="class or interface in javax.jms">JMSException</a></pre>
<div class="block">Set transport headers from the axis message context, into the JMS message</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>msgContext</code> - the axis message context</dd><dd><code>message</code> - the JMS Message</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javaee/5/api/javax/jms/JMSException.html?is-external=true" title="class or interface in javax.jms">JMSException</a></code> - on exception</dd></dl>
</li>
</ul>
<a name="loadTransportHeaders(javax.jms.Message, org.apache.axis2.context.MessageContext)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>loadTransportHeaders</h4>
<pre>public static&nbsp;void&nbsp;loadTransportHeaders(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Message.html?is-external=true" title="class or interface in javax.jms">Message</a>&nbsp;message,
<a href="../../../../../org/apache/axis2/context/MessageContext.html" title="class in org.apache.axis2.context">MessageContext</a>&nbsp;responseMsgCtx)
throws <a href="../../../../../org/apache/axis2/AxisFault.html" title="class in org.apache.axis2">AxisFault</a></pre>
<div class="block">Read the transport headers from the JMS Message and set them to the axis2 message context</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>message</code> - the JMS Message received</dd><dd><code>responseMsgCtx</code> - the axis message context</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/axis2/AxisFault.html" title="class in org.apache.axis2">AxisFault</a></code> - on error</dd></dl>
</li>
</ul>
<a name="getTransportHeaders(javax.jms.Message)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTransportHeaders</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;getTransportHeaders(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Message.html?is-external=true" title="class or interface in javax.jms">Message</a>&nbsp;message)</pre>
<div class="block">Extract transport level headers for JMS from the given message into a Map</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>message</code> - the JMS message</dd>
<dt><span class="strong">Returns:</span></dt><dd>a Map of the transport headers</dd></dl>
</li>
</ul>
<a name="createConsumer(javax.jms.Session, javax.jms.Destination, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createConsumer</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javaee/5/api/javax/jms/MessageConsumer.html?is-external=true" title="class or interface in javax.jms">MessageConsumer</a>&nbsp;createConsumer(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Session.html?is-external=true" title="class or interface in javax.jms">Session</a>&nbsp;session,
<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Destination.html?is-external=true" title="class or interface in javax.jms">Destination</a>&nbsp;dest,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;messageSelector)
throws <a href="http://docs.oracle.com/javaee/5/api/javax/jms/JMSException.html?is-external=true" title="class or interface in javax.jms">JMSException</a></pre>
<div class="block">Create a MessageConsumer for the given Destination</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>session</code> - JMS Session to use</dd><dd><code>dest</code> - Destination for which the Consumer is to be created</dd><dd><code>messageSelector</code> - the message selector to be used if any</dd>
<dt><span class="strong">Returns:</span></dt><dd>a MessageConsumer for the specified Destination</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javaee/5/api/javax/jms/JMSException.html?is-external=true" title="class or interface in javax.jms">JMSException</a></code></dd></dl>
</li>
</ul>
<a name="createTemporaryDestination(javax.jms.Session)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createTemporaryDestination</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Destination.html?is-external=true" title="class or interface in javax.jms">Destination</a>&nbsp;createTemporaryDestination(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Session.html?is-external=true" title="class or interface in javax.jms">Session</a>&nbsp;session)
throws <a href="http://docs.oracle.com/javaee/5/api/javax/jms/JMSException.html?is-external=true" title="class or interface in javax.jms">JMSException</a></pre>
<div class="block">Create a temp queue or topic for synchronous receipt of responses, when a reply destination
is not specified</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>session</code> - the JMS Session to use</dd>
<dt><span class="strong">Returns:</span></dt><dd>a temporary Queue or Topic, depending on the session</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javaee/5/api/javax/jms/JMSException.html?is-external=true" title="class or interface in javax.jms">JMSException</a></code></dd></dl>
</li>
</ul>
<a name="getBodyLength(javax.jms.BytesMessage)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBodyLength</h4>
<pre>public static&nbsp;long&nbsp;getBodyLength(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/BytesMessage.html?is-external=true" title="class or interface in javax.jms">BytesMessage</a>&nbsp;bMsg)</pre>
<div class="block">Return the body length in bytes for a bytes message</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>bMsg</code> - the JMS BytesMessage</dd>
<dt><span class="strong">Returns:</span></dt><dd>length of body in bytes</dd></dl>
</li>
</ul>
<a name="getMessageSize(javax.jms.Message)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMessageSize</h4>
<pre>public static&nbsp;long&nbsp;getMessageSize(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Message.html?is-external=true" title="class or interface in javax.jms">Message</a>&nbsp;message)
throws <a href="http://docs.oracle.com/javaee/5/api/javax/jms/JMSException.html?is-external=true" title="class or interface in javax.jms">JMSException</a></pre>
<div class="block">Get the length of the message in bytes</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>message</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>message size (or approximation) in bytes</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javaee/5/api/javax/jms/JMSException.html?is-external=true" title="class or interface in javax.jms">JMSException</a></code></dd></dl>
</li>
</ul>
<a name="lookup(javax.naming.Context, java.lang.Class, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lookup</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;T&nbsp;lookup(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/javax/naming/Context.html?is-external=true" title="class or interface in javax.naming">Context</a>&nbsp;context,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;clazz,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name)
throws <a href="http://docs.oracle.com/javase/1.5.0/docs/api/javax/naming/NamingException.html?is-external=true" title="class or interface in javax.naming">NamingException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/javax/naming/NamingException.html?is-external=true" title="class or interface in javax.naming">NamingException</a></code></dd></dl>
</li>
</ul>
<a name="createConnection(javax.jms.ConnectionFactory, java.lang.String, java.lang.String, boolean, java.lang.Boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createConnection</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Connection.html?is-external=true" title="class or interface in javax.jms">Connection</a>&nbsp;createConnection(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/ConnectionFactory.html?is-external=true" title="class or interface in javax.jms">ConnectionFactory</a>&nbsp;conFac,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;user,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pass,
boolean&nbsp;jmsSpec11,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a>&nbsp;isQueue)
throws <a href="http://docs.oracle.com/javaee/5/api/javax/jms/JMSException.html?is-external=true" title="class or interface in javax.jms">JMSException</a></pre>
<div class="block">This is a JMS spec independent method to create a Connection. Please be cautious when
making any changes</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>conFac</code> - the ConnectionFactory to use</dd><dd><code>user</code> - optional user name</dd><dd><code>pass</code> - optional password</dd><dd><code>jmsSpec11</code> - should we use JMS 1.1 API ?</dd><dd><code>isQueue</code> - is this to deal with a Queue?</dd>
<dt><span class="strong">Returns:</span></dt><dd>a JMS Connection as requested</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javaee/5/api/javax/jms/JMSException.html?is-external=true" title="class or interface in javax.jms">JMSException</a></code> - on errors, to be handled and logged by the caller</dd></dl>
</li>
</ul>
<a name="createSession(javax.jms.Connection, boolean, int, boolean, java.lang.Boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createSession</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Session.html?is-external=true" title="class or interface in javax.jms">Session</a>&nbsp;createSession(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Connection.html?is-external=true" title="class or interface in javax.jms">Connection</a>&nbsp;connection,
boolean&nbsp;transacted,
int&nbsp;ackMode,
boolean&nbsp;jmsSpec11,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a>&nbsp;isQueue)
throws <a href="http://docs.oracle.com/javaee/5/api/javax/jms/JMSException.html?is-external=true" title="class or interface in javax.jms">JMSException</a></pre>
<div class="block">This is a JMS spec independent method to create a Session. Please be cautious when
making any changes</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>connection</code> - the JMS Connection</dd><dd><code>transacted</code> - should the session be transacted?</dd><dd><code>ackMode</code> - the ACK mode for the session</dd><dd><code>jmsSpec11</code> - should we use the JMS 1.1 API?</dd><dd><code>isQueue</code> - is this Session to deal with a Queue?</dd>
<dt><span class="strong">Returns:</span></dt><dd>a Session created for the given information</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javaee/5/api/javax/jms/JMSException.html?is-external=true" title="class or interface in javax.jms">JMSException</a></code> - on errors, to be handled and logged by the caller</dd></dl>
</li>
</ul>
<a name="createConsumer(javax.jms.Session, javax.jms.Destination, java.lang.Boolean, java.lang.String, java.lang.String, boolean, boolean, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createConsumer</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javaee/5/api/javax/jms/MessageConsumer.html?is-external=true" title="class or interface in javax.jms">MessageConsumer</a>&nbsp;createConsumer(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Session.html?is-external=true" title="class or interface in javax.jms">Session</a>&nbsp;session,
<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Destination.html?is-external=true" title="class or interface in javax.jms">Destination</a>&nbsp;destination,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a>&nbsp;isQueue,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;subscriberName,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;messageSelector,
boolean&nbsp;pubSubNoLocal,
boolean&nbsp;isDurable,
boolean&nbsp;jmsSpec11)
throws <a href="http://docs.oracle.com/javaee/5/api/javax/jms/JMSException.html?is-external=true" title="class or interface in javax.jms">JMSException</a></pre>
<div class="block">This is a JMS spec independent method to create a MessageConsumer. Please be cautious when
making any changes</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>session</code> - JMS session</dd><dd><code>destination</code> - the Destination</dd><dd><code>isQueue</code> - is the Destination a queue?</dd><dd><code>subscriberName</code> - optional client name to use for a durable subscription to a topic</dd><dd><code>messageSelector</code> - optional message selector</dd><dd><code>pubSubNoLocal</code> - should we receive messages sent by us during pub-sub?</dd><dd><code>isDurable</code> - is this a durable topic subscription?</dd><dd><code>jmsSpec11</code> - should we use JMS 1.1 API ?</dd>
<dt><span class="strong">Returns:</span></dt><dd>a MessageConsumer to receive messages</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javaee/5/api/javax/jms/JMSException.html?is-external=true" title="class or interface in javax.jms">JMSException</a></code> - on errors, to be handled and logged by the caller</dd></dl>
</li>
</ul>
<a name="createProducer(javax.jms.Session, javax.jms.Destination, java.lang.Boolean, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createProducer</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javaee/5/api/javax/jms/MessageProducer.html?is-external=true" title="class or interface in javax.jms">MessageProducer</a>&nbsp;createProducer(<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Session.html?is-external=true" title="class or interface in javax.jms">Session</a>&nbsp;session,
<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Destination.html?is-external=true" title="class or interface in javax.jms">Destination</a>&nbsp;destination,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a>&nbsp;isQueue,
boolean&nbsp;jmsSpec11)
throws <a href="http://docs.oracle.com/javaee/5/api/javax/jms/JMSException.html?is-external=true" title="class or interface in javax.jms">JMSException</a></pre>
<div class="block">This is a JMS spec independent method to create a MessageProducer. Please be cautious when
making any changes</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>session</code> - JMS session</dd><dd><code>destination</code> - the Destination</dd><dd><code>isQueue</code> - is the Destination a queue?</dd><dd><code>jmsSpec11</code> - should we use JMS 1.1 API ?</dd>
<dt><span class="strong">Returns:</span></dt><dd>a MessageProducer to send messages to the given Destination</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javaee/5/api/javax/jms/JMSException.html?is-external=true" title="class or interface in javax.jms">JMSException</a></code> - on errors, to be handled and logged by the caller</dd></dl>
</li>
</ul>
<a name="getDestinationTypeAsString(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDestinationTypeAsString</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getDestinationTypeAsString(int&nbsp;destType)</pre>
<div class="block">Return a String representation of the destination type</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>destType</code> - the destination type indicator int</dd>
<dt><span class="strong">Returns:</span></dt><dd>a descriptive String</dd></dl>
</li>
</ul>
<a name="lookupDestination(javax.naming.Context, java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>lookupDestination</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javaee/5/api/javax/jms/Destination.html?is-external=true" title="class or interface in javax.jms">Destination</a>&nbsp;lookupDestination(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/javax/naming/Context.html?is-external=true" title="class or interface in javax.naming">Context</a>&nbsp;context,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;destinationName,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;destinationType)
throws <a href="http://docs.oracle.com/javase/1.5.0/docs/api/javax/naming/NamingException.html?is-external=true" title="class or interface in javax.naming">NamingException</a></pre>
<div class="block">Return the JMS destination with the given destination name looked up from the context</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>context</code> - the Context to lookup</dd><dd><code>destinationName</code> - name of the destination to be looked up</dd><dd><code>destinationType</code> - type of the destination to be looked up</dd>
<dt><span class="strong">Returns:</span></dt><dd>the JMS destination, or null if it does not exist</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/javax/naming/NamingException.html?is-external=true" title="class or interface in javax.naming">NamingException</a></code></dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/JMSUtils.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/axis2/transport/jms/JMSSender.html" title="class in org.apache.axis2.transport.jms"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/axis2/transport/jms/ServiceTaskManager.html" title="class in org.apache.axis2.transport.jms"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/axis2/transport/jms/JMSUtils.html" target="_top">Frames</a></li>
<li><a href="JMSUtils.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &copy; <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.</small></p>
</body>
</html>