This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes how to get server path in MDB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how to get server path in MDB" Watch "how to get server path in MDB" New topic
Author

how to get server path in MDB

Anitha Krishnamurthi
Greenhorn

Joined: Nov 29, 2004
Posts: 26
Hi,

getServletContext().getRealPath("./") in Servlet will give the server path of the current web application.
Similarly how to get the server path in onMessage method of Message Driven Bean ?

I have a xml from database. Need to access a xsl in WL server and create a html and then write this html to a flat file. I need to do all this in onMessage method. So, now to access the xsl file i need the server path.

Your help is greatly appreciated.

Thanks in Advance,
Anitha
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to get server path in MDB
 
Similar Threads
message driven bean question
XML + XSL => HTML
Xalan for SVG
creating pdf,xml,doc file using servlet
converting XML with XSLT