tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <david.blev...@gmail.com>
Subject Re: bootstrap openwebbeans into java se application
Date Wed, 18 Sep 2013 02:32:44 GMT
Hi Mauro

These examples use CDI in JavaSE via the Embedded EJBContainer API which actually works for
CDI as well -- in our integration at least.

 - http://tomee.apache.org/examples-trunk/cdi-basic/README.html

Here's a CDI / Java SE example that uses @ApplicationScoped

 - http://tomee.apache.org/examples-trunk/cdi-application-scope/README.html

In terms of @javax.inject.Singleton vs @ApplicationScoped.  I'd go with @ApplicationScoped
which is far more defined.


-David

On Sep 17, 2013, at 4:15 PM, mauro2java2011 <mauro2java2011@gmail.com> wrote:

> How i can bootstrap  oopenwebbeans into a java se application.? 
> I have searched but not found examples of owb.
> 
> I have read that into owb  for se applic i have 3 scopes.
> Singleton
> Application
> Dependent
> 
> I ask : but what it is the difference from singleton and application scope
> ????
> 
> It sound the same think.....
> 
> Mauro
> 
> 
> 
> --
> View this message in context: http://openejb.979440.n4.nabble.com/bootstrap-openwebbeans-into-java-se-application-tp4665109.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message