views:

100

answers:

1

I already have an entreprise J2EE application. I want expose some of the existing EJBs as webservices. I wanted to know how to organize the J2EE project I mean where does the websevices sit in the J2EE EAR file hierarchy and how to invoke the deployed Webserices?

+1  A: 

It depends upon exactly how you implement your WebService and also on which JEE version you are using. Simplest, with JAX-WS your webservice implementation and interface are all packed in the WAR. See the sun tutorial. Possibly you may implement your service as an EJB and in which case you can simply use the @WebService annotation. In which case you're delivering the EJB jar.

Recommend you work through a few tutorials for the specific App Server you are using.

djna