Duh, it was actually quite simple. Just use file:/// instead of jndi:/ ! Sorry, Michael
> -----Original Message----- > From: Michael [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 06, 2002 3:06 PM > To: 'Jakarta Commons Users List' > Subject: RE: [Messenger] How to use Messenger in a standalone app > > > I'm working on this now. I'm stuck on > MessageManager.load(String). When I run my webapp, the config > file URI is: > > jndi:/localhost/oemserver/WEB-INF/classes/Messenger.xml > > But I am not sure how that gets set up or how I can do it > outside the servlet container. The method makes a call to > the Digester.parse() method which can take a variety of > parameters including a java.io.File, but I prefer to go > through the MessagerManager.load() method. How can I set up the URI? > > Michael > > > -----Original Message----- > > From: James Strachan [mailto:[EMAIL PROTECTED]] > > Sent: Friday, September 06, 2002 2:15 PM > > To: Jakarta Commons Users List > > Subject: Re: [Messenger] How to use Messenger in a standalone app > > > > > > From: "Michael" <[EMAIL PROTECTED]> > > > I'd like to use Messenger to send & receive messengers in a > > standalone > > > app. > > > > Thats fine. The Messenger API is totally servlet independent > > and can be happily used from the command line to send & > > receive messages. > > > > > From browing the javadocs it seems closely tied to the > > servlet engine. > > > Is it possible to use it standalone? > > > > Yes. > > > > > Are there any examples > > > for this? If anyone has done it please let me know. > > > > > > There's some Ant tasks which can be used inside of Ant which > > can send and receive messages (in the *.messenger.task > > package). Also there's 3 command line tools in the > > *.messenger.tool package which can send, recieve and do JMS > > based RPCs via the Caller program. > > > > The only thing which is Servlet dependent is the 'Messagelet > > Engine' which is a seperate lightweight JMS container for > > consuming messages from inside a Servlet Container via > > MessageListeners, Message Driven Objects (a lightweight, > > non-EJB implementation of MDBs) or even Servlets, JSP, > > Velocity or Jelly. > > > > James > > ------- > > http://radio.weblogs.com/0112098/ > > > > __________________________________________________ > > Do You Yahoo!? > > Everything you'll ever need on one web page > > from News and Sport to Email and Music Charts http://uk.my.yahoo.com > > > > -- > > To unsubscribe, e-mail: > > <mailto:commons-user-> [EMAIL PROTECTED]> > > For > > additional commands, > > e-mail: <mailto:[EMAIL PROTECTED]> > > > > > -- > To unsubscribe, e-mail: > <mailto:commons-user-> [EMAIL PROTECTED]> > For > additional commands, > e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
