Question:

Is there is a stand-alone distribution of jbossmq

Answer:

No, but from 3.2.4 there is a script that creates a minimal jbossmq using
hypersonic for persistence.

To build this configuration (unix users changes as approriate)
cd %JBOSS_DIST%\docs\examples\jms\standalone
ant
cd %JBOSS_DIST%\bin
run.bat -c jbossmq

NOTE: hypersonic is NOT recommend for production
see docs/examples/jms for alternate db configurations

Since jboss-3.2.4 is not release yet, here are the two files that should be placed
in docs/examples/jms/standalone (it should also work with 3.2.3)

build.xml

  | <?xml version="1.0" encoding="UTF-8"?>
  | <!-- This is an Ant build script that creates a minimal jbossmq
  | configuration based on the default configuration
  | -->
  | <project name="Mininal JBossMQ configuration script" default="config">
  | 
  |    <!-- Override if the script is not run from within the
  |    dist/docs/examples/jms/standalone directory.
  |    -->
  |    <property name="jboss.dist" value="../../../.."/>
  | 
  |    <target name="config">
  |  
  |      <!-- We are mainly based on the minimal configuration -->
  |       <copy todir="${jboss.dist}/server/jbossmq">
  |          <fileset dir="${jboss.dist}/server/minimal">
  |             <exclude name="conf/jboss-service.xml"/>
  |             <exclude name="lib/jboss-minimal.jar"/>
  |          </fileset>
  |       </copy>
  |  
  |      <!-- We need the following from the default configuration -->
  |       <copy todir="${jboss.dist}/server/jbossmq">
  |          <fileset dir="${jboss.dist}/server/default">
  |             <!-- configuration -->
  |             <include name="conf/jbossmq-state.xml"/>
  |             <include name="conf/login-config.xml"/>
  |             <include name="conf/xmdesc/*"/>
  |             <!-- the main jboss jar -->
  |             <include name="lib/jboss.jar"/>
  |             <!-- jaas -->
  |             <include name="lib/jboss-jaas.jar"/>
  |             <include name="lib/jbosssx.jar"/>
  |             <!-- transactions -->
  |             <include name="lib/jboss-transaction.jar"/>
  |             <include name="deploy/transaction-service.xml"/>
  |             <!-- jms interfaces -->
  |             <include name="lib/jboss-j2ee.jar"/>
  |             <!-- local db support -->
  |             <include name="lib/jboss-common-jdbc-wrapper.jar"/>
  |             <include name="lib/xalan.jar"/>
  |             <include name="deploy/jboss-jca.sar"/>
  |             <include name="deploy/jboss-local-jdbc.rar"/>
  |             <!-- hypersonic -->
  |             <include name="lib/hsqldb*"/>
  |             <include name="deploy/hsqldb-ds.xml"/>
  |             <include name="deploy/jms/hsqldb-jdbc2-service.xml"/>
  |             <!-- jbossmq -->
  |             <include name="lib/jbossmq.jar"/>
  |             <include name="deploy/jms/jbossmq-service.xml"/>
  |             <include name="deploy/jms/jbossmq-destinations-service.xml"/>
  |             <include name="deploy/jms/uil2-service.xml"/>
  |          </fileset>
  |       </copy>
  | 
  |       <!-- This is our main configuration -->
  |       <copy todir="${jboss.dist}/server/jbossmq/conf/">
  |          <fileset dir="${jboss.dist}/docs/examples/jms/standalone">
  |             <include name="jboss-service.xml"/>
  |          </fileset>
  |       </copy>
  | 
  |    </target>
  | </project>
  | 

jboss-service.xml

  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <!-- $Id: jboss-minimal.xml,v 1.4.2.3 2003/10/13 03:28:38 starksm Exp $ -->
  | 
  | <!-- ===================================================================== -->
  | <!--                                                                       -->
  | <!--  A minimal JBoss Server Configuration                                 -->
  | <!--                                                                       -->
  | <!-- ===================================================================== -->
  | 
  | <server>
  | 
  |   <!-- Load all jars from the JBOSS_DIST/server/<config>/lib directory. This
  |     can be restricted to specific jars by specifying them in the archives
  |     attribute.
  |    -->
  |   <classpath codebase="lib" archives="*"/>
  | 
  |   <!-- ==================================================================== -->
  |   <!-- Log4j Initialization                                                 -->
  |   <!-- ==================================================================== -->
  |   <mbean code="org.jboss.logging.Log4jService"
  |     name="jboss.system:type=Log4jService,service=Logging">
  |     <attribute name="ConfigurationURL">resource:log4j.xml</attribute>
  |   </mbean>
  | 
  |   <!-- ==================================================================== -->
  |   <!-- JNDI                                                                 -->
  |   <!-- ==================================================================== -->
  | 
  |   <mbean code="org.jboss.naming.NamingService"
  |      name="jboss:service=Naming">
  |     <!-- The listening port for the bootstrap JNP service. Set this to -1
  |       to run the NamingService without the JNP invoker listening port.
  |     -->
  |     <attribute name="Port">1099</attribute>
  |   </mbean>
  | 
  |    <!-- ==================================================================== -->
  |    <!-- Security                                                             -->
  |    <!-- ==================================================================== -->
  | 
  |    <mbean code="org.jboss.security.plugins.SecurityConfig"
  |       name="jboss.security:service=SecurityConfig">
  |       <attribute 
name="LoginConfig">jboss.security:service=XMLLoginConfig</attribute>
  |    </mbean>
  |    <mbean code="org.jboss.security.auth.login.XMLLoginConfig"
  |       name="jboss.security:service=XMLLoginConfig">
  |       <attribute name="ConfigResource">login-config.xml</attribute>
  |    </mbean>
  | 
  |    <!-- JAAS security manager and realm mapping -->
  |    <mbean code="org.jboss.security.plugins.JaasSecurityManagerService"
  |       name="jboss.security:service=JaasSecurityManager">
  |       <attribute name="SecurityManagerClassName">
  |          org.jboss.security.plugins.JaasSecurityManager
  |       </attribute>
  |    </mbean>
  | 
  |    <!-- ==================================================================== -->
  |    <!-- Transactions                                                         -->
  |    <!-- ==================================================================== -->
  |    <!-- The configurable Xid factory.  For use with Oracle, set pad to true -->
  |    <mbean code="org.jboss.tm.XidFactory"
  |       name="jboss:service=XidFactory">
  |       <!--attribute name="Pad">true</attribute-->
  |    </mbean>
  | 
  |    <!--
  |       | The fast in-memory transaction manager.
  |     -->
  |    <mbean code="org.jboss.tm.TransactionManagerService"
  |       name="jboss:service=TransactionManager"
  |       xmbean-dd="resource:xmdesc/TransactionManagerService-xmbean.xml">
  |       <attribute name="TransactionTimeout">300</attribute>
  | 
  |       <depends 
optional-attribute-name="XidFactory">jboss:service=XidFactory</depends>
  |    </mbean>
  | 
  |   <!-- ==================================================================== -->
  |   <!-- Deployment Scanning                                                  -->
  |   <!-- ==================================================================== -->
  | 
  |   <!-- An mbean for hot deployment/undeployment of archives.
  |   -->
  |   <mbean code="org.jboss.deployment.scanner.URLDeploymentScanner"
  |      name="jboss.deployment:type=DeploymentScanner,flavor=URL">
  | 
  |     <depends 
optional-attribute-name="Deployer">jboss.system:service=MainDeployer</depends>
  | 
  |     <!-- The URLComparator can be used to specify a deployment ordering
  |          for deployments found in a scanned directory.  The class specified
  |          must be an implementation of java.util.Comparator, it must be able
  |          to compare two URL objects, and it must have a no-arg constructor.
  |          Two deployment comparators are shipped with JBoss:
  |            - org.jboss.deployment.DeploymentSorter 
  |              Sorts by file extension, as follows:
  |                "sar", "service.xml", "rar", "jar", "war", "wsr", "ear", "zip", 
  |                "*"
  |            - org.jboss.deployment.scanner.PrefixDeploymentSorter
  |              If the name portion of the url begins with 1 or more digits, those 
  |              digits are converted to an int (ignoring leading zeroes), and 
  |              files are deployed in that order.  Files that do not start with 
  |              any digits will be deployed last, and they will be sorted by
  |              extension as above with DeploymentSorter.
  |     -->
  |     <attribute 
name="URLComparator">org.jboss.deployment.DeploymentSorter</attribute>
  |     <!-- The Filter specifies a java.io.FileFilter for scanned
  |          directories.  Any file not accepted by this filter will not be
  |          deployed.  The org.jboss.deployment.scanner.DeploymentFilter 
  |          rejects the following patterns:
  |              "#*", "%*", ",*", ".*", "_$*", "*#", "*$", "*%", "*.BAK", 
  |              "*.old", "*.orig", "*.rej", "*.bak", "*,v", "*~", ".make.state", 
  |              ".nse_depinfo", "CVS", "CVS.admin", "RCS", "RCSLOG", "SCCS", 
  |              "TAGS", "core", "tags"
  |     -->
  |     <attribute 
name="Filter">org.jboss.deployment.scanner.DeploymentFilter</attribute>
  | 
  |     <attribute name="ScanPeriod">5000</attribute>
  | 
  |     <!-- URLs are comma seperated and unprefixed arguments are considered
  |        file URLs and resolve relative to server home(JBOSS_DIST/server/default)
  |        unless the given path is absolute. Any referenced directories cannot
  |        be unpackaged archives, use the parent directory of the unpacked
  |        archive.
  |      -->
  |     <attribute name="URLs">
  |        deploy/
  |     </attribute>
  |   </mbean>
  | 
  | </server>
  | 
  | 

Regards,
Adrian

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3824548#3824548";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3824548>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to