Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to get server path in MDB  RSS feed

 
Anitha Krishnamurthi
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!