RE: What all is needed to make the Embed OpenJMS i nto any other software
Sale Rahul <rahulsale-/[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
Dear Mark, Thanks a lot for your help. Can you please tell me what all jars and what environment i need to setup to make this work. e.g. #1. What all jasr i have to take into classpath. #2. To make sure i have the openjms working and all, what else i need to do. Thanks again... With Regs Rahul Please suggest on this. --- "Priest, Mark" <mpriest-T2hhe/[email protected]> wrote: > 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 > _______________________________________________ > openjms-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openjms-user > __________________________________ 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