Re: AXIS2: shutdown mechanism

2006-10-13 Thread Chuan Guo

Hi Deepal,
Thank you very much!


You can specify the service life cycle impl as shown below;



This is sample service 3



In version 1 we should use this to declare the service class
 locked="false">org.apachecon.us.sample.ServiceLifeCycleImpl


After trying, it seems that both of these should be used, is that?

And it seems also, man must use the java 1.5.
I tested it in java 1.4.2 and got Error when AXIS start to deployment.
or what should I do additional with java 1.4?

Thanks!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AXIS2: shutdown mechanism

2006-10-12 Thread Chuan Guo

Hi,
i would like to know, when the Container like Tomcat is shutdown,
could the concrete service of axis2 be informed? With this man can close
the critical resources.
Otherwise the data in memory will lost. (for performance, a cache is 
normal).


Thanks for every Tips!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[AXIS2]NewBie: obtain Parameter from a custom service

2006-08-08 Thread Chuan Guo

Hi,
i'd like get some customed configuration informations for my service 
from the "axis2.xml" or "services.xml".

e.g. using Parameters.
Then I need get the AxisConfiguration or the AxisService, right? (use 
getParameter(paramName))


my question is, how can i obtain AxisConfiguration or the AxisService at 
Construct/Loading time

of my service?

What I only know to obtain this is inserting of this method in my service:
   "setOperationContext(OperationContext opContext)"
using OperationContext i can get all this. But it seems that it is 
called only at the time the operation called,
it's too late. and it seems that this method is called every time when 
operation is called.



Any Tips?
Thank you very much!

does anyone knows, can I access the web.xml for axis2 (in 
webapps/axis2/WEB-INF/) in own service?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]