[
https://issues.jboss.org/browse/JBESB-3591?page=com.atlassian.jira.plugin...
]
Kevin Conner commented on JBESB-3591:
-------------------------------------
It does, yes, as it covers all the jars required by all the quickstarts, including
different permutations.
It will give a good starting point for a particular server but should be backed up by the
docs and JBDS.
Add explicit classpath to the helloworld quickstart
---------------------------------------------------
Key: JBESB-3591
URL:
https://issues.jboss.org/browse/JBESB-3591
Project: JBoss ESB
Issue Type: Task
Security Level: Public(Everyone can see)
Components: Examples
Reporter: Daniel Bevenius
Assignee: Daniel Bevenius
Priority: Minor
If we add an explicit classpath to one of the quickstarts, for example the helloworld
quickstart, we could point users to this when they have issues setting up their own
project classpaths.
Now and again questions pop up in the user forum regarding this and even though we have
documented this in the user guide that information is static and putting this in a
quickstart would make the tests for that quickstart to fail when a newer version of the
ESB is developed and a dependency as changed.
An example of this for JBossAS 5.x could look like:
{code:xml}
<target name="runtest" depends="compile" description="Will
send an esb Message">
<path id="serviceinvoker-classpath">
<pathelement
location="${org.jboss.esb.server.deploy.dir}/jbossesb.sar/lib/jbossesb-rosetta.jar"/>
<pathelement
location="${org.jboss.esb.server.deploy.dir}/jbossesb.sar/lib/jbossesb-config-model-*.jar"/>
<pathelement
location="${org.jboss.esb.server.deploy.dir}/jbossesb.sar/lib/commons-configuration-1.5.jar"/>
<pathelement
location="${org.jboss.esb.server.deploy.dir}/jbossesb.sar/lib/commons-lang-2.3.jar"/>
<pathelement
location="${org.jboss.esb.server.deploy.dir}/jbossesb.sar/lib/commons-codec-1.3.jar"/>
<pathelement
location="${org.jboss.esb.server.deploy.dir}/jbossesb.sar/lib/wstx-asl-3.2.8.jar"/>
<pathelement
location="${org.jboss.esb.server.deploy.dir}/jbossesb.sar/lib/stax-api-1.0.1.jar"/>
<pathelement
location="${org.jboss.esb.server.deploy.dir}/jbossesb.sar/lib/xbean-2.2.0.jar"/>
<pathelement
location="${org.jboss.esb.server.deploy.dir}/jbossesb.sar/lib/scout-1.2.2.jar"/>
<pathelement
location="${org.jboss.esb.server.deploy.dir}/jbossesb.sar/lib/juddi-client-3.0.3.jar"/>
<pathelement
location="${org.jboss.esb.server.deploy.dir}/jbossesb.sar/lib/uddi-ws-3.0.3.jar"/>
<pathelement
location="${org.jboss.esb.server.deploy.dir}/jboss-aop-jdk50.deployer/jboss-aop-jdk50.jar"/>
<pathelement
location="${org.jboss.esb.server.server}/lib/jbossts-common.jar"/>
<pathelement
location="${org.jboss.esb.server.server}/lib/jboss-remoting.jar"/>
<pathelement
location="${org.jboss.esb.server.server}/lib/jboss-messaging-client.jar"/>
<pathelement
location="${org.jboss.esb.server.server}/lib/jboss-messaging.jar"/>
<pathelement
location="${org.jboss.esb.server.server}/lib/javassist.jar"/>
<pathelement
location="${org.jboss.esb.server.server}/lib/log4j.jar"/>
<pathelement
location="${org.jboss.esb.server.server}/lib/commons-logging.jar"/>
<pathelement
location="${org.jboss.esb.server.server}/lib/commons-collections.jar"/>
<pathelement
location="${org.jboss.esb.server.home}/client/jbossall-client.jar"/>
<pathelement
location="${org.jboss.esb.server.home}/client/trove.jar"/>
<pathelement
location="${org.jboss.esb.server.home}/lib/endorsed/xercesImpl.jar"/>
<pathelement location="${basedir}/build/classes"/>
<!-- Include the current directory for resources. This will give access to
./jbossesb-properties -->
<pathelement location="${basedir}/."/>
<!-- Include META-INF/uddi.xml in the classpath -->
<pathelement location="${basedir}/../conf/registry/"/>
</path>
<echo>Runs Test ESB Message Sender</echo>
<java fork="yes"
classname="org.jboss.soa.esb.samples.quickstart.helloworld.test.SendEsbMessage"
failonerror="true">
<arg value="FirstServiceESB"/> <!-- service category -->
<arg value="SimpleListener"/> <!-- service name -->
<arg value="Hello World - Straight to ESB listener - no
Gateway"/> <!-- Message text -->
<classpath refid="serviceinvoker-classpath"/>
</java>
</target>
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira