Hi Deepal thanks for reply:
>Only at the starting time or does it work runtime as well?
What do you mean? If the clients can use the service? I can see the wsdl and I 
tried a service call and it works.

Also is a services.xml needed for pojos?




________________________________
From: Deepal jayasinghe <[email protected]>
To: [email protected]
Sent: Thu, January 27, 2011 1:54:07 AM
Subject: Re: Axis2 deployment mechanism for POJOs



I am Axis2 starter and I have the             following question.  
>Most of the tutorials mention that to deploy a pojo, the             pojo 
>should 
>be placed under the pojo directory (and if it             does not exist, 
>create 
>it). 
>
>Additionally, pojos under a package, should be placed in a             .jar 
>and 
>modify the deployer in axis2.xml to point to pojo             directory for 
>jars.
>But in official guide of axis2 
>http://axis.apache.org/axis2/java/core/docs/pojoguide.html there is no mention 
>of a need for pojo directory. 
>
>
Need to update the document.

Additionally, I noticed that if I               drop the jar containing the 
pojo 
class to be deployed as a               web service, in the WEB-INF/lib 
directory the pojo               deployment still works! 

>
Only at the starting time or does it work runtime as well?

So, can someone please tell me if the pojo             directory is needed or 
not? Or is the pojo directory             required only, if you have no 
services.xml file descriptor             for the pojo?
>
The requirement of pojos directory is to support pojo deployment, if     you 
are 
going to deploy services as services aar file, then you do     not need it. You 
can simply delete it.

Deepal

Because for the case of 
http://axis.apache.org/axis2/java/core/docs/pojoguide.html there is indeed a 
services.xml for the pojo. (This             is not mentioned in most tutorials)
>I am trying to understand how axis2 engine works in             deploying.
>
>Thank you
>
>



      

Reply via email to