title: How to make a property file available to EJB in WebSphere Application Server 8
body: <p>I created a JAX-WS Web Service and an EJB skeleton from a WSDL file by following a Tutorial in the Rational Application Developer for WebSphere 8.0.4 help.</p>
  
  <p>It created an EJB project to contain my EJB code.
  It created an EJBEar project to build an ear file.
  It created a RouterWebProject to create a war file.</p>
  
  <p>The RouterWebProject provides servlet information so that I can post an HTTP soap request to the servlet to be routed to my web service code in the EJB.</p>
  
  <p>The EJB service code calls a class in the same EJB project that uses a ResourceBundle to read a property file with the name AppSDKExamples.properties</p>
  
  <pre><code>static {
      ResourceBundle props = ResourceBundle.getBundle("AppSDKExamples", Locale.getDefault());
      brokerPartnerId = props.getString("broker.partner.id");
      buyPartnerId    = props.getString("svc.dealer.partner.id");
      sellPartnerId   = props.getString("platform.partner.id");
      sellPartnerId2  = props.getString("platform.partner.id2");
      accountNumber   = props.getString("account.number");
  }
  </code></pre>
  
  <p>I have tried placing the AppSDKExamples.properties file everywhere I can think of but I always get a java.util.MissingResourceException.</p>
  
  <p>How do I make this property file available to the EJB code?</p>
  
  <p>Currently the EJB ear looks like this:</p>
  
  <ul>
  <li>lib/AppSDKExamples.properties</li>
  <li>lib/AppSDKExamples_en_US.properties</li>
  <li>lib/other jar files</li>
  <li>META-INF/MANIFEST.MF (this does not contain a class path I can't figure out how to set it.)</li>
  <li>EJB.jar</li>
  <li>WebProject.war</li>
  </ul>
  
  <p>The EJB.jar looks like this:</p>
  
  <ul>
  <li>com/activant/web/services/examples/class files that look for the property file</li>
  <li>com/activant/web/services/iaptest/class files for the web service</li>
  <li>META-INF/MANIFEST.MF (this has the AppSDKExamples.properties and                AppSDKExamples_en_US.properties in the classpath)</li>
  <li>AppSDKExamples.properties</li>
  <li>AppSDKExamples_en_US.properties</li>
  </ul>
  
  <p>The war file looks like this:</p>
  
  <ul>
  <li>lib contains same jar files as the EJB.jar files has</li>
  <li>META-INF (Class-Path: /lib EJB.jar)</li>
  <li>WEB-INF/classes this folder contains both the propertie files.</li>
  <li>WEB-INF/lib this folder contains both the properties files.</li>
  <li>WEB-INF/ibm-web-bnd.xml</li>
  <li>WEB-INF/ibm-web-ext.xml</li>
  <li>WEB-INF/web.xml</li>
  </ul>
  
  <p>Any help on this would be greatly appreciated.
  Thanks.</p>