>
> Definitely.  We went with the new class over the InitialContext as it gives
> us the ability to add methods and functionality in future specs.  Always a
> nice door to leave open.
>
>>  EJBContainer container = EJBContainer.createEJBContainer(p);
>>>
>>
Would love to see some more methods in EJBContainer like

public Object inject(Class clazz){
   // creates a new instance of the clazz and injects dependencies in it and
returns the object
}
public void inject(Object obj){
  // inject dependencies into obj
}

The above would make it easy to add injection support to other frameworks
like struts, jsf etc.

Would also be nice to have a method which returns the current instance of
the  EJBContainer.

-- 
Karan Singh Malhi

Reply via email to