RE: What all is needed to make the Embed OpenJMS i nto any other software

"Priest, Mark" <mpriest-T2hhe/[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <CE3E0C0D22744C42B6783ADA48629C52018790AB@MAIL>
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:rahulsale-/[email protected]]
Sent: Tuesday, April 12, 2005 4:23 AM
To: [email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/openjms-user


-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.