Inside Scoop on J2EE : Tips and tricks on J2EE and Oracle Application Server by Debu Panda
Updated: 12/1/2005; 5:08:45 AM.

 

Subscribe to "Inside Scoop on J2EE" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

 
 

Thursday, November 17, 2005

In my last blog, I wrote how JSR-250 defines the annotation for defining injection of resources.

Java API for XML Web services 2.0 (JSR-224). You can use the javax.xml.ws.WebServiceRef annotation to define dependency and injection targets for a Web service.

 

Here is an example of a WebService annotation. The values for type and name are derived from the injection target:

 

@WebServiceRef

public PurchaseOrderService poService;

 

This is much simpler than J2EE 1.4 where we first define the service-ref element in client's deployment descriptor and then do a JNDI lookup to get a reference to the service endpoint.

 

The injection will certainly simplify client-view of web services in Java EE 5.0


7:58:20 AM    comment []

© Copyright 2005 Debu Panda.

PS: These are my own thoughts and not of my employer ..



Click here to visit the Radio UserLand website.
 


November 2005
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      
Oct   Dec