RE: Problems getting jmscts to run
"Tim Anderson" <[email protected]> Thu, 23 Sep 2004 14:12:11 +1000
| Newsgroups | gmane.comp.java.openjms.devel |
|---|---|
| Message-ID | <[email protected]> |
Specifying the "embedded" connector means that
the OpenJMS server will run in the same JVM as
the JMS CTS. You need to tell JMS CTS to start
OpenJMS before running the tests.
To do this, edit $JMSCTS_HOME/config/providers.xml and add
the start and stop elements as shown:
<provider>
<name>OpenJMS</name>
<class>org.exolab.jmscts.openjms.OpenJMSProvider</class>
<start>true</start>
<stop>true</stop>
...
-Tim
> -----Original Message-----
> From: openjms-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> [mailto:openjms-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]On Behalf Of Will
> Pugh
> Sent: Thursday, 23 September 2004 11:00 AM
> To: openjms-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: [openjms-developer] Problems getting jmscts to run
>
>
> Hi everyone,
>
> I'm playing around with jmscts and trying to get it running against
> Open JMS, but I'm running into problems.
>
> The problem seems to be getting the ConnectionFactory from JNDI. I've
> poured over my openjms.xml trying to make sure everything is correct,
> but I may be missing something (because I'm new to the project).
>
> So currently, I'm trying to get it to use embeddedJNDI, but at the
> point that we get to trying to look up the ConnectionFactory, I get an
> NoInitialContext exception thrown claiming "Embedded JNDI server not
> initialised"
>
> If I go and run test.sh in the root directory, using the same
> config.xml file all the tests seem to pass. Anyone have an idea what
> I'm dong wrong?
>
> Is there some other step I need to be doing? Is there something wrong
> with my openjms.xml?
>
> Thanks,
> --Will
>
> openjms.xml
> --------------
> <?xml version="1.0"?>
>
> <Configuration>
> <ServerConfiguration embeddedJNDI="true" />
>
> <!--
> Other scheme I tried that didn't work
> <RmiConfiguration embeddedRegistry="false"
> registryHost="localhost"
> registryPort="1099">
> </RmiConfiguration>
> -->
>
> <!-- Required when using an RMI connector -->
> <Connectors>
> <!--
> Other scheme I tried that didn't work
> <Connector scheme="rmi">
> -->
> <Connector scheme="embedded">
> <ConnectionFactories>
> <QueueConnectionFactory name="JmsQueueConnectionFactory" />
> <TopicConnectionFactory name="JmsTopicConnectionFactory" />
> </ConnectionFactories>
> </Connector>
> </Connectors>
>
> <!-- Required -->
> <DatabaseConfiguration>
> <JdbmDatabaseConfiguration name="openjms.db" />
> </DatabaseConfiguration>
>
> <!-- Required -->
> <AdminConfiguration script="${openjms.home}/bin/startup.sh" />
>
> <!-- Optional. If not specified, no destinations will be created -->
> <AdministeredDestinations>
> <AdministeredTopic name="topic1">
> <Subscriber name="sub1" />
> <Subscriber name="sub2" />
> </AdministeredTopic>
>
> <AdministeredQueue name="queue1" />
> <AdministeredQueue name="queue2" />
> <AdministeredQueue name="queue3" />
> </AdministeredDestinations>
>
> <Users>
> <User name="admin" password="openjms" />
> </Users>
>
> </Configuration>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> _______________________________________________
> openjms-developer mailing list
> openjms-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/openjms-developer
>
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php