Thanks!
I tried using the createEJBContainer construct, but it complains about "not 
finding any modules to deploy" when I run it. 
However, I was trying to use the following, but it prints an empty list:
new WebBeansContext().getBeanManagerImpl().getBeans(MyClass.class)



- Ranga


________________________________
From: David Blevins <[email protected]>
To: [email protected]
Sent: Wednesday, June 8, 2011 4:03 PM
Subject: Re: Examples - CDI


On Jun 8, 2011, at 3:09 PM, Ranga S wrote:

> Thanks!
> 
> I wanted to first get a simple stand-alone example up and running. I was 
> wondering how to get access to the OWB container to lookup a "Named" bean. If 
> a standalone example is out-of-the scope of this project, please let me know 
> and I shall look at integrated examples.

Just slipped this in:

https://issues.apache.org/jira/browse/OPENEJB-1571

Should do the trick!  The EJBContainer.createEJBContainer() is the best 
approach for our examples.

-David

> 
> ________________________________
> From: Mark Struberg <[email protected]>
> To: [email protected]; Ranga S <[email protected]>
> Sent: Wednesday, June 8, 2011 12:59 PM
> Subject: Re: Examples - CDI
> 
> hi!
> 
> You could look at the maven archetypes for Apache MyFaces CODI [1] which is a 
> CDI extension. 
> 
> $> mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
> 
> It creates a small OWB + MyFaces +CODI based example stub. Just add OpenEJB 
> on top (e.g. for the database service layer) and you're done ;)
> 
> LieGrue,
> strub
> 
> [1] http://myfaces.apache.org/extensions/cdi/index.html
> 
> --- On Wed, 6/8/11, Ranga S <[email protected]> wrote:
> 
>> From: Ranga S <[email protected]>
>> Subject: Re: Examples - CDI
>> To: "[email protected]" <[email protected]>
>> Date:
> Wednesday, June 8, 2011, 6:52 PM
>> Hi
>> 
>> 
>> I would like to take a crack at coming up with some
>> examples for CDI. Let me read some documentation on it. Once
>> I have something concrete, I shall send a note to this
>> list.
>> 
>> 
>> - Ranga
>> 

Reply via email to