Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Plan bundle redeployment

  1. #1
    Join Date
    Oct 2009
    Location
    Bratislava, Slovakia
    Posts
    24

    Default Plan bundle redeployment

    I've created a plan and put the bundles in the repositories/usr directory. Everything works fine, but when I try to redeploy some bundle that is included in the plan nothing happens. Is it possible to redeploy bundles that are part of a plan?
    Ádám Sándor
    Senior developer
    DVSK (www.dvsk.sk)

  2. #2
    Join Date
    Oct 2008
    Location
    Winchester, UK
    Posts
    535

    Default

    The current support for refresh does not cover all artifact types in all scenarios.

    In fact we have a meeting today to discuss the design of refresh in the context of plans.

    In the scenario you describe, I wonder how you are attempting to "redeploy" a bundle of the plan. Did you replace the bundle in repository/usr? What next?

    You see simply changing the contents of a repository won't provoke dm Server to refresh anything.
    Glyn Normington
    SpringSource

  3. #3
    Join Date
    Oct 2009
    Location
    Bratislava, Slovakia
    Posts
    24

    Default

    Yeah, I thought it would work like the pickup folder, because it is set as a 'watched' folder in the configuration. If this is not the case, then maybe I'll implement my own bundle that will be checking the usr directory for changes. I certainly need my bundles to be updated automatically.
    Ádám Sándor
    Senior developer
    DVSK (www.dvsk.sk)

  4. #4
    Join Date
    Oct 2008
    Location
    Winchester, UK
    Posts
    535

    Default

    Fair enough.

    I'm sure other users may get the wrong impression too. We need to make it abundantly clear that, from dm Server's perspective, repositories are simply places from which to install artifacts. Repositories have differing semantics in terms of how they keep their content up to date, but repositories never "push" content into dm Server.

    The rationale behind this is that we don't want to overload dm Server. In general, we want to load just the artifacts that the user has requested to be deployed plus their dependencies so the runtime overhead is minimal.
    Glyn Normington
    SpringSource

  5. #5
    Join Date
    Nov 2008
    Location
    London,UK
    Posts
    299

    Default

    I too am very interested on this feature and looking forward for it.

    Feature hear i mean is updating a bundle inside plan.

    I don mind triggering this individual bundle update in the respective dm server admin.

    But my question is , why do you want to live it the developer , can a option be given in the propertyfile of individual dm servers to automatically update this bundle or not based on refresh interval.?

    This will be helpful in production environments when we have cluster of many DM servers.

  6. #6
    Join Date
    Oct 2008
    Location
    Winchester, UK
    Posts
    535

    Default

    We don't have such a user story on our backlog, so feel free to add one.

    Of course, it would be possible for a user to to deploy a bundle which periodically did an update of other bundles using the JMX interface.
    Glyn Normington
    SpringSource

  7. #7
    Join Date
    Oct 2009
    Location
    Bratislava, Slovakia
    Posts
    24

    Default

    I've just now discovered something interesting...

    I've created a bundle that is scanning a directory and starting bundles which it finds there (just like dm server does with pickup). I've noticed that it's not the same if I let the server load a bundle from pickup, or if I start it from my bundle. The bundle in question is importing Hibernate (by using Import-Library), and I use it in a bean that is created by spring (it's defined in META-INF/spring/context.xml). If I load the bundle from pickup it works, but if I load it with my loader bundle, then I get a ClassNotFoundException for org.hibernate.Session. I think this may be a bug, because it only happens in v1.0.2, when I tried it in v2.0M6 everything worked.

    What do you think? Have I run into a bug, or is this excpected behavior, that has been somehow improved in v2?
    Ádám Sándor
    Senior developer
    DVSK (www.dvsk.sk)

  8. #8
    Join Date
    Oct 2008
    Location
    Winchester, UK
    Posts
    535

    Default

    It very much depends on how "I load it with my loader bundle" is implemented. Please could you elaborate.

    For instance, if you are installing the bundle via a BundleContext, then you wouldn't get Import-Library support in v1 or v2. On the other hand, if you are installing via JMX, then it *should* work in v1 as well as v2, but I'd like to know which MBean and which operation you are using in that case.
    Glyn Normington
    SpringSource

  9. #9
    Join Date
    Nov 2008
    Location
    London,UK
    Posts
    299

    Default

    Quote Originally Posted by Glyn Normington View Post
    We don't have such a user story on our backlog, so feel free to add one.

    Of course, it would be possible for a user to to deploy a bundle which periodically did an update of other bundles using the JMX interface.


    I have created ticket for updating DM servers based on update in the repository.

    https://issuetracker.springsource.com/browse/DMS-1956


    I assume there is already a story for updation of bundle inside a plan.

  10. #10
    Join Date
    Oct 2008
    Location
    Winchester, UK
    Posts
    535

    Default

    Quote Originally Posted by sudheerk84 View Post
    I have created ticket for updating DM servers based on update in the repository.

    https://issuetracker.springsource.com/browse/DMS-1956


    I assume there is already a story for updation of bundle inside a plan.
    Thanks for the new story. Yes, we already have a task to get bundle update within a plan working correctly.
    Glyn Normington
    SpringSource

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •