geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Geronimo v3.0 > JMS Resources deployment with deploy tool
Date Sun, 30 Jan 2011 06:57:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2036/9/4/_/styles/combined.css?spaceKey=GMOxDOC30&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/GMOxDOC30/JMS+Resources+deployment+with+deploy+tool">JMS
Resources deployment with deploy tool</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~maojia508">maojia</a>
    </h4>
        <br/>
                         <h4>Changes (9)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-unchanged" >{scrollbar} <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">{excerpt}You
can deploy JMS resources with {{deploy}} command (without Web console).{excerpt} When you
want to create a group of resources consisting of ConnectionFactory, topics and queues you
only have to deploy a geronimo-activemq-ra connector (RA means &quot;ResourceAdapter&quot;)
with an deploy plan like this... <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">{excerpt}You
can deploy JMS resources with the [deploy|deploy#Deploy] command (without using the administration
console).{excerpt} If you want to create a group of resources consisting of ConnectionFactory,
topics and queues, you only have to deploy a geronimo-activemq-ra connector (RA means &quot;ResourceAdapter&quot;)
with an deployment plan as follows: <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-changed-words">{code:xml|<span
class="diff-added-chars"style="background-color: #dfd;">title=Deployment Plan|</span>borderStyle=solid}</span>
<br></td></tr>
            <tr><td class="diff-unchanged" >&lt;connector xmlns=&quot;http://geronimo.apache.org/xml/ns/j2ee/connector-1.2&quot;&gt;
<br>  &lt;dep:environment xmlns:dep=&quot;http://geronimo.apache.org/xml/ns/deployment-1.2&quot;&gt;
<br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >{code} <br> <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">Now
you only have to deploy it with following command (name the deploy plan above as {{JmsResources.xml}})
using for this example on a Unix-based system: <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">Now
you only have to deploy this deployment plan and the geronimo-activemq-ra connector with the
[deploy|deploy#Deploy] command. For this example, the  deployment plan is named as {{JMSResources.xml}}
and deployed on a Unix-based system with the following command: <br></td></tr>
            <tr><td class="diff-unchanged" > <br>{noformat:borderStyle=solid}
<br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >Note that the path or name of geronimo-activemq-ra-2.2-SNAPSHOT.rar
can be different according to the Geronimo installation that you have.  <br> <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">If
you want to undeploy it, use the command line as followed: <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">If
you want to undeploy this geronimo-activemq-ra connector, use the following [undeploy|deploy#Undeploy]
command: <br></td></tr>
            <tr><td class="diff-unchanged" > <br>{noformat:borderStyle=solid}
<br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >    Undeployed console.jms/jmsResources/1.0/car
<br>{noformat} <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">where
{{console.jms/jmsResources/1.0/car}} is the moduleID of the geronimo-activemq-ra connector
defined in the deployment plan.  <br></td></tr>
            <tr><td class="diff-unchanged" > <br>{info:title=remote deploy
Tips} <br></td></tr>
            <tr><td class="diff-changed-lines" >Remember to set <span class="diff-changed-words"><span
class="diff-added-chars"style="background-color: #dfd;">the {{</span>RemoteDeployHostname<span
class="diff-added-chars"style="background-color: #dfd;">}}</span></span> in
{{&lt;GERONIMO_HOME&gt;\var\config\config-substitutions.properties}} if you want to
do remote deploy (when <span class="diff-added-words"style="background-color: #dfd;">the</span>
--host parameter is not <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">the</span>
localhost). <br></td></tr>
            <tr><td class="diff-unchanged" >{info} <br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <style type='text/css'>/*<![CDATA[*/
table.ScrollbarTable  {border: none;padding: 3px;width: 100%;padding: 3px;margin: 0px;background-color:
#f0f0f0}
table.ScrollbarTable td.ScrollbarPrevIcon {text-align: center;width: 16px;border: none;}
table.ScrollbarTable td.ScrollbarPrevName {text-align: left;border: none;}
table.ScrollbarTable td.ScrollbarParent {text-align: center;border: none;}
table.ScrollbarTable td.ScrollbarNextName {text-align: right;border: none;}
table.ScrollbarTable td.ScrollbarNextIcon {text-align: center;width: 16px;border: none;}

/*]]>*/</style><div class="Scrollbar"><table class='ScrollbarTable'><tr><td
width='33%' class='ScrollbarPrevName'>&nbsp;</td><td width='33%' class='ScrollbarParent'><sup><a
href="/confluence/display/GMOxDOC30/Configuring+JMS+resources"><img border='0' align='middle'
src='/confluence/images/icons/up_16.gif' width='8' height='8'></a></sup><a
href="/confluence/display/GMOxDOC30/Configuring+JMS+resources">Configuring JMS resources</a></td><td
width='33%' class='ScrollbarNextName'>&nbsp;<a href="/confluence/display/GMOxDOC30/Using+ActiveMQ+wizard">Using
ActiveMQ wizard</a></td><td class='ScrollbarNextIcon'><a href="/confluence/display/GMOxDOC30/Using+ActiveMQ+wizard"><img
border='0' align='middle' src='/confluence/images/icons/forwd_16.gif' width='16' height='16'></a></td></tr></table></div>
<p>You can deploy JMS resources with the <a href="/confluence/display/GMOxDOC30/deploy#deploy-Deploy">deploy</a>
command (without using the administration console). If you want to create a group of resources
consisting of ConnectionFactory, topics and queues, you only have to deploy a geronimo-activemq-ra
connector (RA means "ResourceAdapter") with an deployment plan as follows:</p>

<div class="code panel" style="border-style: solid;border-width: 1px;"><div class="codeHeader
panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;"><b>Deployment
Plan</b></div><div class="codeContent panelContent">
<pre class="code-xml">
<span class="code-tag">&lt;connector xmlns=<span class="code-quote">"http://geronimo.apache.org/xml/ns/j2ee/connector-1.2"</span>&gt;</span>
  <span class="code-tag">&lt;dep:environment <span class="code-keyword">xmlns:dep</span>=<span
class="code-quote">"http://geronimo.apache.org/xml/ns/deployment-1.2"</span>&gt;</span>
    <span class="code-tag">&lt;dep:moduleId&gt;</span>
    	<span class="code-tag">&lt;dep:groupId&gt;</span>console.jms<span
class="code-tag">&lt;/dep:groupId&gt;</span>
    	<span class="code-tag">&lt;dep:artifactId&gt;</span>jmsResources<span
class="code-tag">&lt;/dep:artifactId&gt;</span>
    	<span class="code-tag">&lt;dep:version&gt;</span>1.0<span class="code-tag">&lt;/dep:version&gt;</span>
    <span class="code-tag">&lt;dep:type&gt;</span>car<span class="code-tag">&lt;/dep:type&gt;</span>
  	<span class="code-tag">&lt;/dep:moduleId&gt;</span>
    <span class="code-tag">&lt;dep:dependencies&gt;</span>
      <span class="code-tag">&lt;dep:dependency&gt;</span>
        <span class="code-tag">&lt;dep:groupId&gt;</span>org.apache.geronimo.configs<span
class="code-tag">&lt;/dep:groupId&gt;</span>
        <span class="code-tag">&lt;dep:artifactId&gt;</span>activemq-broker<span
class="code-tag">&lt;/dep:artifactId&gt;</span>
        <span class="code-tag">&lt;dep:type&gt;</span>car<span class="code-tag">&lt;/dep:type&gt;</span>
      <span class="code-tag">&lt;/dep:dependency&gt;</span>
    <span class="code-tag">&lt;/dep:dependencies&gt;</span>
  <span class="code-tag">&lt;/dep:environment&gt;</span>
  <span class="code-tag">&lt;resourceadapter&gt;</span>
    <span class="code-tag">&lt;resourceadapter-instance&gt;</span>
      <span class="code-tag">&lt;resourceadapter-name&gt;</span>jmsResources<span
class="code-tag">&lt;/resourceadapter-name&gt;</span>
      <span class="code-tag">&lt;workmanager xmlns=<span class="code-quote">"http://geronimo.apache.org/xml/ns/naming-1.2"</span>&gt;</span>
        <span class="code-tag">&lt;gbean-link&gt;</span>DefaultWorkManager<span
class="code-tag">&lt;/gbean-link&gt;</span>
      <span class="code-tag">&lt;/workmanager&gt;</span>
    <span class="code-tag">&lt;/resourceadapter-instance&gt;</span>
    <span class="code-tag">&lt;outbound-resourceadapter&gt;</span>
      <span class="code-tag">&lt;connection-definition&gt;</span>
        <span class="code-tag">&lt;connectionfactory-interface&gt;</span>javax.jms.ConnectionFactory<span
class="code-tag">&lt;/connectionfactory-interface&gt;</span>
        <span class="code-tag">&lt;connectiondefinition-instance&gt;</span>
          <span class="code-tag">&lt;name&gt;</span>IHCIConnectionFactory<span
class="code-tag">&lt;/name&gt;</span>
          <span class="code-tag">&lt;implemented-interface&gt;</span>javax.jms.QueueConnectionFactory<span
class="code-tag">&lt;/implemented-interface&gt;</span>
          <span class="code-tag">&lt;implemented-interface&gt;</span>javax.jms.TopicConnectionFactory<span
class="code-tag">&lt;/implemented-interface&gt;</span>
          <span class="code-tag">&lt;connectionmanager&gt;</span>
            <span class="code-tag">&lt;xa-transaction&gt;</span>
              <span class="code-tag">&lt;transaction-caching /&gt;</span>
            <span class="code-tag">&lt;/xa-transaction&gt;</span>
            <span class="code-tag">&lt;single-pool&gt;</span>
              <span class="code-tag">&lt;max-size&gt;</span>10<span
class="code-tag">&lt;/max-size&gt;</span>
              <span class="code-tag">&lt;min-size&gt;</span>0<span
class="code-tag">&lt;/min-size&gt;</span>
              <span class="code-tag">&lt;blocking-timeout-milliseconds&gt;</span>5000<span
class="code-tag">&lt;/blocking-timeout-milliseconds&gt;</span>
              <span class="code-tag">&lt;idle-timeout-minutes&gt;</span>0<span
class="code-tag">&lt;/idle-timeout-minutes&gt;</span>
              <span class="code-tag">&lt;match-one /&gt;</span>
            <span class="code-tag">&lt;/single-pool&gt;</span>
          <span class="code-tag">&lt;/connectionmanager&gt;</span>
        <span class="code-tag">&lt;/connectiondefinition-instance&gt;</span>
      <span class="code-tag">&lt;/connection-definition&gt;</span>
    <span class="code-tag">&lt;/outbound-resourceadapter&gt;</span>
  <span class="code-tag">&lt;/resourceadapter&gt;</span>

  <span class="code-tag"><span class="code-comment">&lt;!-- ElementSupportData
topic--&gt;</span></span>
  <span class="code-tag">&lt;adminobject&gt;</span>
    <span class="code-tag">&lt;adminobject-interface&gt;</span>javax.jms.Topic<span
class="code-tag">&lt;/adminobject-interface&gt;</span>
    <span class="code-tag">&lt;adminobject-class&gt;</span>org.apache.activemq.command.ActiveMQTopic<span
class="code-tag">&lt;/adminobject-class&gt;</span>
    <span class="code-tag">&lt;adminobject-instance&gt;</span>
      <span class="code-tag">&lt;message-destination-name&gt;</span>ElementSupportData<span
class="code-tag">&lt;/message-destination-name&gt;</span>
      <span class="code-tag">&lt;config-property-setting name=<span class="code-quote">"PhysicalName"</span>&gt;</span>ElementSupportData<span
class="code-tag">&lt;/config-property-setting&gt;</span>
    <span class="code-tag">&lt;/adminobject-instance&gt;</span>
  <span class="code-tag">&lt;/adminobject&gt;</span>
   
  <span class="code-tag"><span class="code-comment">&lt;!-- Sample Queue --&gt;</span></span>

 
    <span class="code-tag">&lt;adminobject&gt;</span>
    <span class="code-tag">&lt;adminobject-interface&gt;</span>javax.jms.Queue<span
class="code-tag">&lt;/adminobject-interface&gt;</span>
    <span class="code-tag">&lt;adminobject-class&gt;</span>org.apache.activemq.command.ActiveMQQueue<span
class="code-tag">&lt;/adminobject-class&gt;</span>
    <span class="code-tag">&lt;adminobject-instance&gt;</span>
      <span class="code-tag">&lt;message-destination-name&gt;</span>SampleQueue<span
class="code-tag">&lt;/message-destination-name&gt;</span>
      <span class="code-tag">&lt;config-property-setting name=<span class="code-quote">"PhysicalName"</span>&gt;</span>SampleQueue<span
class="code-tag">&lt;/config-property-setting&gt;</span>
    <span class="code-tag">&lt;/adminobject-instance&gt;</span>
  <span class="code-tag">&lt;/adminobject&gt;</span>
  
<span class="code-tag">&lt;/connector&gt;</span> 
</pre>
</div></div>

<p>Now you only have to deploy this deployment plan and the geronimo-activemq-ra connector
with the <a href="/confluence/display/GMOxDOC30/deploy#deploy-Deploy">deploy</a>
command. For this example, the  deployment plan is named as <tt>JMSResources.xml</tt>
and deployed on a Unix-based system with the following command:</p>

<div class="preformatted panel" style="border-style: solid;border-width: 1px;"><div
class="preformattedContent panelContent">
<pre>jeff@jeff:~/Geronimo/Tomcat6-2.2/bin$ ./deploy.sh deploy $GERONIMO_HOME/repository/org/apache/geronimo/modules/geronimo-activemq-ra/2.2-SNAPSHOT/geronimo-activemq-ra-2.2-SNAPSHOT.rar
JMSResource.xml 
Using GERONIMO_HOME:   /home/jeff/Geronimo/Tomcat6-2.2
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:        /opt/ibm/java-i386-60/jre
    Deployed console.jms/jmsResources/1.0/car
</pre>
</div></div>

<p>Note that the path or name of geronimo-activemq-ra-2.2-SNAPSHOT.rar can be different
according to the Geronimo installation that you have. </p>

<p>If you want to undeploy this geronimo-activemq-ra connector, use the following <a
href="/confluence/display/GMOxDOC30/deploy#deploy-Undeploy">undeploy</a> command:</p>

<div class="preformatted panel" style="border-style: solid;border-width: 1px;"><div
class="preformattedContent panelContent">
<pre>jeff@jeff:~/Geronimo/Tomcat6-2.2/bin$ ./deploy.sh --user system --password manager
--host localhost undeploy console.jms/jmsResources/1.0/car
Using GERONIMO_HOME:   /home/jeff/Geronimo/Tomcat6-2.2
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:        /opt/ibm/java-i386-60/jre
    Module console.jms/jmsResources/1.0/car unloaded.
    Module console.jms/jmsResources/1.0/car uninstalled.

    Undeployed console.jms/jmsResources/1.0/car
</pre>
</div></div>
<p>where <tt>console.jms/jmsResources/1.0/car</tt> is the moduleID of the
geronimo-activemq-ra connector defined in the deployment plan. </p>

<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td
valign='top'><img src="/confluence/images/icons/emoticons/information.gif" width="16"
height="16" align="absmiddle" alt="" border="0"></td><td><b>remote deploy
Tips</b><br />Remember to set the <tt>RemoteDeployHostname</tt> in
<tt>&lt;GERONIMO_HOME&gt;\var\config\config-substitutions.properties</tt>
if you want to do remote deploy (when the --host parameter is not localhost).</td></tr></table></div>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="https://cwiki.apache.org/confluence/display/GMOxDOC30/JMS+Resources+deployment+with+deploy+tool">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=20645462&revisedVersion=2&originalVersion=1">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/GMOxDOC30/JMS+Resources+deployment+with+deploy+tool?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message