myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard W. Smith, Jr." <>
Subject Re: @Singleton @Lock(READ) to resolve, Could not instantiate converter ...
Date Sat, 13 Apr 2013 17:04:32 GMT
On Sat, Apr 13, 2013 at 1:00 PM, José Luis Cetina <>wrote:

> When i dont want to use codi I use jndi lookup, it is to easy to use and
> portable. I create a simple method for retrive my ejbs without using codi
> instead i use jndi using only the name of the ejb class.

Recently, I added the following after listening in on that other/earlier
topic/thread on myfaces or openejb list. The code below allowed me to
remove CODI dependency. :)

    public <T> T getBean(Class<T> type) {
        Bean<T> bean = (Bean<T>)
        CreationalContext<T>  creationalContext =

        return (T) beanManager.getReference(bean, type, creationalContext);

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message