• access http osgi bundles from dots

    By Jose M Pinto 1 decade ago

    Hi all,

    I found this project very interesting and i'm trying to use it with my application. Currently i have a bunch of plugins made by myself and loaded from updatesite nsf. I need some function inside of these plugins to be called on scheduled base. First i thought on making an XAgent and call it from a scheduled java agent however I think i may have problems when i make the server available only over https so i'm adventuring to use dots instead.

    I followed the documentation to install dot's and it look's its running ok (for now i'm just loading it from console). However i stil didn't manage to call the function inside my plugin because this plug in has a dependency on com.ibm.xsp.core bundle which is not present on dot's environment. My dot's profile is pointing the same update site via osginsf url parameter type.

    I can try to include the required core plugins inside updatesite but that looks everything except nice. I believe the core xsp plugins were not made to be run from dot's environment but i also believe that isn't something impossible to do. I would like to know how can we easly achieve it and if there aren't any major caveat we should be aware of. I'm trying to avoid to develop a separate plugin just for this without those bundle dependencies because I may need too much refactoring and duplicate code to be able to run something both on http osgi and dots.

    Thanks!

    Jose Pinto

    • Response

      By Paul Fiore 1 decade ago

      Hello,

      Could you give us the use case for what you're trying to accomplish?

      From an initial pass at what your asking would require changes to some of DOTS underlying architecture and functionality .  DOTS strives for a small footprint and a dependency on com.ibm.xsp.core would include the servlet API into DOTS.  Keep in mind that DOTS is not supposed to open connections on it's own nor is it meant to replace HTTP.

      Which classes from xsp.core plugins in particular you are trying to use?  It may be possible to isolate the scope and bring them into the DOTS runtime.

      Regards,

      Paul
       

      • Response

        By Jose M Pinto 1 decade ago

        Hi Paul,

        Your response is clear to me and that's what i first thought. Dot's doesn't replace the http task so the plugin we developed is not meant to run on dots. It uses several classes from xsp core and to use in dot's we should now split it in smaller plugins isolating what is meant to run on xsp environment and what is meant to run as a server task.

        Thanks for your reply!

        Cheers,

        Jose Pinto