Hi Charles!

You either have deltaspike-cdictrl-owb or deltaspike-cdictrl-weld (or any other 
one) in your classpath. Those jars contain the proper META-INF/services file. 
The only thing you need to do is to put ONE of those impls into your classpath.

Of course, there is _no_ auto-selection of containers right now!


LieGrue,
strub



----- Original Message -----
> From: Charles Moulliard <[email protected]>
> To: [email protected]
> Cc: 
> Sent: Wednesday, June 13, 2012 8:52 AM
> Subject: Question about JSE example
> 
> Hi,
> 
> The example
> org.apache.deltaspike.example.beanmanagement.SimpleBeanLookupExample allows
> to get a CDI container. It starts by invoking the following method
> CdiContainerLoader.getCdiContainer() which will call --> the ServiceLoader (
> ServiceLoader<CdiContainer> cdiContainerLoader =
> ServiceLoader.load(CdiContainer.class);).
> 
> As there is no file into the directory META-INF/services and the project is
> simply started with mvn -Pexamples, how the SimpleBeanLookupExample knows
> which implementation (OWB, Weld) to be used.
> 
> Regards,
> 
> Charles 
> 
> 
> --
> View this message in context: 
> http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/Question-about-JSE-example-tp4652732.html
> Sent from the Apache DeltaSpike Incubator Discussions mailing list archive at 
> Nabble.com.
> 

Reply via email to