Will Pugh
2004-09-23 01:00:20 UTC
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>
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>