title: Where would managed-beans.xml be stored inside a Domino database for use by a Java agent?
body: <p>I have successfully created a standalone Java application, communication with our Connections server. The endpoint is defined in the src\META-INF\managed-beans.xml while the sbt.properties is stored in the root of the project. </p>
  
  <p>I want to move the agent to a Notes database as a java-agent. With the Java perspective I can see that the database has a WebContent\WEB-INF folder, but no similar META-INF folder. Putting the managed-beans.xml there doesn't seem to work. I have also tried to define the managed bean inside the WebContent\WEB-INF\faces-config.xml without success (from what I have read so far, it seems like the WEB-INF is more for XPages and web work, while the META-INF is for standalone java agents.</p>
  
  <p>By storing the managed-bean.xml in the sbt.user-directory (C:\Program Files (x86)\IBM\Lotus\Notes\framework at my machine), I got the file to read, but with exceptions. I would be much better if I could store the xml file inside the Notes database.</p>
  
  <p>The code snippet inside the ordinary NotesMain() is</p>
  
  <pre><code>RuntimeFactory runtimeFactory = new RuntimeFactoryStandalone();
  Application application = runtimeFactory.initApplication(null);
  Context context = Context.init(application, null, null);
  
  BasicEndpoint ep = (BasicEndpoint)EndpointFactory.getEndpoint("connections"); 
  </code></pre>
  
  <p>EDIT: No success yet, but I saw that the SBTPlayground.nsf had META-INF files located in the Core/Java folder (as seen from the Java Perspective). Tried to place my managed-beans.xml there too, but the agent wouldn't read it (yet!). </p>