users@glassfish.java.net

RE: Declaring singleton EJB in ejb-jar.xml

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Wed, 26 Jun 2013 15:47:02 -0400

Hey Sean

"As is the case
for web fragments, you use the <metadata-complete> element in
the web.xml file to instruct the web
container whether to look for annotations.

If you set <metadata-complete> to false or do not
specify the <metadata-complete> element in your file,
then during deployment, the container must scan annotations as well as web
fragments to build the effective metadata for the web application.

However, if
you set <metadata-complete> to true, the deployment
descriptors provide all the configuration information for the web application.
In this case, the web container does not search for annotations and web
fragments"

http://tamanmohamed.blogspot.com/2012/01/part-3-java-ee-6-platform-introduction.html

Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.

 
From: Sean.Comerford_at_espn.com
To: marina.vatkina_at_oracle.com; users_at_glassfish.java.net
CC: Daniel.Shea_at_espn.com
Date: Wed, 26 Jun 2013 15:07:46 -0400
Subject: Re: Declaring singleton EJB in ejb-jar.xml

Hi Marina,
That got us a little further but we're still having issues declaring the Singleton Startup via the xml descriptor.
Dan can you reply with the error you're seeing?
---Sean ComerfordESPN.com Architecture & Platforms

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Reply-To: "marina.vatkina_at_oracle.com" <marina.vatkina_at_oracle.com>
Date: Thu, 20 Jun 2013 14:34:16 -0400
To: "users_at_glassfish.java.net" <users_at_glassfish.java.net>
Cc: Sean Comerford <Sean.Comerford_at_espn.com>
Subject: Re: Declaring singleton EJB in ejb-jar.xml


  
    
  
  https://svn.java.net/svn/glassfish~svn/trunk/v2/appserv-tests/devtests/ejb/ejb31/full/schema/descriptor/ejb-jar.xml

    

    -marina

    

    On 6/20/13 11:21 AM, Comerford, Sean
      wrote:

    
    
      
        
          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