Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-616

Initializing services at axis2c loading time.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • core/deployment
    • None

    Description

      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);

      Attachments

        Activity

          People

            Unassigned Unassigned
            damitha Damitha N.M. Kumarage
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: