users@glassfish.java.net

Declaring singleton EJB in ejb-jar.xml

From: Comerford, Sean <Sean.Comerford_at_espn.com>
Date: Thu, 20 Jun 2013 14:21:28 -0400

Our basketball MDB ingest application uses the metadata-complete="true" attribute b/c it includes a "common" jar that contains @MesssageDriven annotated classes we don't want to run in this particular app.

Hence we specify in the ejb-jar.xml file which MDBs we want to run.

We're having a problem figuring out how to declare an @Startup @Singleton bean via the ejb-jar.xml.

Can someone point me to an example for that?

---
Sean Comerford
ESPN.com Architecture & Platforms