Monday, July 6, 2009

The annotation @WebServiceRef

Look at the annotation WebServiceRef that provide to injects a reference to a web service in this my post published on SpiderLogic bog.

To invoke a method on a session bean, a client does not directly instantiate the bean using the new operator. It use the Dependency Injection (DI) to references the session bean. It is a powerful mechanism used from JavaEE 6 to obtain a resource reference on an object field. It is possible to inject various type of resource, as shown in the next picture (see more …).