[ https://issues.apache.org/jira/browse/AXIS2C-616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Damitha Kumarage closed AXIS2C-616. ----------------------------------- Resolution: Fixed This is implemented and tested OK > Initializing services at axis2c loading time. > --------------------------------------------- > > Key: AXIS2C-616 > URL: https://issues.apache.org/jira/browse/AXIS2C-616 > Project: Axis2-C > Issue Type: New Feature > Components: core/deployment > Reporter: Damitha Kumarage > > I have a requirement to load a serivce at the load time of the axis2c engine. > I can see that currently it is not possible with the axis2c. So I have > implemented > it. > To do that I have implemented a method called > static axis2_status_t AXIS2_CALL > axis2_load_services( > const axutil_env_t *env, > axis2_conf_ctx_t *conf_ctx); > which is called from axis2_build_conf_ctx. > We need to add a parameter to services.xml for service that need to be > initialized. > <parameter name="loadServiceAtStartup" locked="xsd:false">true</parameter> > Then those services could be accessed by the following function. > /** > * Gets all the list of services that need to be loaded into configuration > * at the start up of the axis2 engine. > * @param conf pointer to conf struct > * @param env pointer to environment struct > * @return a pointer to the hash table of services. Returns a > * reference, not a cloned copy > */ > AXIS2_EXTERN axutil_hash_t *AXIS2_CALL > axis2_conf_get_all_svcs_to_load( > const axis2_conf_t *conf, > const axutil_env_t *env); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]