facebook

Where do I put config files for an enterprise application?

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #222375 Reply

    jazzfeigling
    Member

    Hello,
    I’m having a problem figuring out where to put my log4j.xml file in my enterprise app. I have a web application that I’ve converted to an EAR app, with several EJBs. In the web app, I just put my log4j.xml config file in a resource directory and indicated it as a source dir so it would be rolled to WEB-INF/classes, but now I need to use the configuration for the EJBs also. Where do I put it? I’ve tried several approaches, but nothing has worked. Is there a container-standard place where this file should go?

    #222393 Reply

    Scott Anderson
    Participant

    Placing it in the EJB project’s source folder should work since a web application that shares an EAR with an EJB jar has access to the EJB’s classloader. So, if the EJBs classloader can load it the web project’s will be able to also.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Where do I put config files for an enterprise application?

You must be logged in to post in the forum log in