Hi,

I want to use CDI and other EJB related features in Java SE application,
for that I would like to use OpenEJB and want to call the following code in
my *public static void main()* method.

*EJBContainer.createEJBContainer(properties).getContext().bind("inject",
this)*;

I want to know if this is a preferred way of doing.

PS: I don't want to use any application server.

Saranya

Reply via email to