title: Log4j for Message Driven Beans
body: <p>So, here's my problem: 
  <br>
  I have a message driven bean X and would like to make use of Logger in X's onMessage() method. Lets presume that I have a single instance of the bean running in my app server, hence, I would initialize log4j in ejbCreate(). This would mean I would have to do something like this: </p>
  
  <pre><code>public void ejbCreate() {
      PropertyConfigurator.configure(Classloader.getResourceAsStream("xyz_log4j.properties"));
  }
  </code></pre>
  
  <p>However, this doesn't help. No matter what I do I always get my stream as null, I tried other versions : this.getClass().getStream() and ResourceBundle. </p>
  
  <p>I jar'ed my properties file in to test.jar and added it under EAR libraries (I am using RAD7) and it got reflected in my manifest.mf. </p>
  
  <p>Did anyone face this issue before? If yes, how did you solve it? 
  Appreciate your help... </p>