|
From: Priest, M. <mp...@3e...> - 2005-04-13 02:41:00
|
I have used it in embedded mode. Here is the code I used to start the
server:
String configPath = getOpenJMSHome() + "/config/openjms.xml";
JmsServer server = new JmsServer(configPath);
server.init();
private static String getOpenJMSHome()
{
return System.getProperty("openjms.home",
System.getProperty("user.dir"));
}
Here is the openjms.xml:
<Configuration>
<ServerConfiguration host="localhost" embeddedJNDI="true" />
<LoggerConfiguration file="${openjms.home}/config/log4j.xml" />
<!-- Required when using an RMI connector -->
<Connectors>
<Connector scheme="embedded">
<ConnectionFactories>
<QueueConnectionFactory name="JmsQueueConnectionFactory" />
<TopicConnectionFactory name="JmsTopicConnectionFactory" />
</ConnectionFactories>
</Connector>
</Connectors>
<!-- Required -->
<DatabaseConfiguration>
<RdbmsDatabaseConfiguration
driver="org.gjt.mm.mysql.Driver"
url="jdbc:mysql://localhost/openjms"
user="root"
password=""
evictionInterval="3600"
testQuery="select current_date"/>
</DatabaseConfiguration>
<!-- Required -->
<AdminConfiguration script="${openjms.home}\bin\startup.bat" />
<SecurityConfiguration securityEnabled="false"/>
<Users>
<User name="admin" password="openjms"/>
</Users>
Here are the JNDI props:
# the initial context factory class
java.naming.factory.initial=org.exolab.jms.jndi.InitialContextFactory
# the context provider URL
java.naming.provider.url=embedded://
# the topic connection factory
JMSTopicConnectionFactory=JmsTopicConnectionFactory
Good luck,
Mark
-----Original Message-----
From: Sale Rahul [mailto:rah...@ya...]
Sent: Tuesday, April 12, 2005 4:23 AM
To: ope...@li...
Subject: [openjms-user] What all is needed to make the Embed OpenJMS
into any other software
Hello All,
I am trying to embed the OpenJMS to our server test
software, i know there are classes like JMSServer and
EMbededJMSErver, but was wondering apart from this
what all i have to do to make it work. If some body
has done it, please let me know.
Thanks in advance.
With Regs
Rahul Saley
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
openjms-user mailing list
ope...@li...
https://lists.sourceforge.net/lists/listinfo/openjms-user
|