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

Acess files in WEB-INF from ejb  RSS feed

 
John Walker
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello folks, I know the EJb specs discourages us to acess local files, but I have to acess some xml templates in WEB-INF. Anyone knows how can it be done? Do I have to use JNDI? Can you give me an example?

Thanks in advance and best regards,

John Walker.
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi John

Put those XML templates in some shared location to EAR and WAR.

EJB tier should not be dependent upon Web tier as far as possible.

Regards
Maulin
 
John Walker
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx my friend. I see your point.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!