You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jarek Gawor (JIRA)" <ji...@apache.org> on 2011/02/22 22:07:39 UTC

[jira] Created: (GERONIMODEVTOOLS-718) Update a bundle within an EBA

Update a bundle within an EBA
-----------------------------

                 Key: GERONIMODEVTOOLS-718
                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-718
             Project: Geronimo-Devtools
          Issue Type: New Feature
          Components: eclipse-plugin
    Affects Versions: 3.0-M2
            Reporter: Jarek Gawor


Some EBAs might be huge and contain many bundles. Right now whenever a bundle in a EBA is updated, the entire EBA is re-assembled and re-deployed to the server. That of course, can be expensive if the application is big. So it would be nice if only the updated bundle was re-deployed to the server.

This feature will probably require changes to the server's deployer code or might need a new set of API for deploying & managing bundles within or outside of EBAs.


-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (GERONIMODEVTOOLS-718) Update a bundle within an EBA

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13048313#comment-13048313 ] 

Jarek Gawor commented on GERONIMODEVTOOLS-718:
----------------------------------------------

In revision 1134924 I removed code & methods associated with caching bundle ids - since we are no longer using the cache.


> Update a bundle within an EBA
> -----------------------------
>
>                 Key: GERONIMODEVTOOLS-718
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-718
>             Project: Geronimo-Devtools
>          Issue Type: New Feature
>          Components: eclipse-plugin
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>            Assignee: Han Hong Fang
>             Fix For: 3.0-M2, 3.0
>
>
> Some EBAs might be huge and contain many bundles. Right now whenever a bundle in a EBA is updated, the entire EBA is re-assembled and re-deployed to the server. That of course, can be expensive if the application is big. So it would be nice if only the updated bundle was re-deployed to the server.
> This feature will probably require changes to the server's deployer code or might need a new set of API for deploying & managing bundles within or outside of EBAs.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (GERONIMODEVTOOLS-718) Update a bundle within an EBA

Posted by "Han Hong Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13005472#comment-13005472 ] 

Han Hong Fang commented on GERONIMODEVTOOLS-718:
------------------------------------------------

https://issues.apache.org/jira/browse/GERONIMO-5861 is created for necessary change at server side.

> Update a bundle within an EBA
> -----------------------------
>
>                 Key: GERONIMODEVTOOLS-718
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-718
>             Project: Geronimo-Devtools
>          Issue Type: New Feature
>          Components: eclipse-plugin
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>
> Some EBAs might be huge and contain many bundles. Right now whenever a bundle in a EBA is updated, the entire EBA is re-assembled and re-deployed to the server. That of course, can be expensive if the application is big. So it would be nice if only the updated bundle was re-deployed to the server.
> This feature will probably require changes to the server's deployer code or might need a new set of API for deploying & managing bundles within or outside of EBAs.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (GERONIMODEVTOOLS-718) Update a bundle within an EBA

Posted by "Han Hong Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Han Hong Fang resolved GERONIMODEVTOOLS-718.
--------------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0
                   3.0-M2
         Assignee: Han Hong Fang

Commit the implementation at revision 1084873.

> Update a bundle within an EBA
> -----------------------------
>
>                 Key: GERONIMODEVTOOLS-718
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-718
>             Project: Geronimo-Devtools
>          Issue Type: New Feature
>          Components: eclipse-plugin
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>            Assignee: Han Hong Fang
>             Fix For: 3.0-M2, 3.0
>
>
> Some EBAs might be huge and contain many bundles. Right now whenever a bundle in a EBA is updated, the entire EBA is re-assembled and re-deployed to the server. That of course, can be expensive if the application is big. So it would be nice if only the updated bundle was re-deployed to the server.
> This feature will probably require changes to the server's deployer code or might need a new set of API for deploying & managing bundles within or outside of EBAs.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (GERONIMODEVTOOLS-718) Update a bundle within an EBA

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046751#comment-13046751 ] 

Jarek Gawor commented on GERONIMODEVTOOLS-718:
----------------------------------------------

In revision 1134035 I simplified the EBA code that deals with deciding which module/bundle should be refreshed. I also changed the code not to cache the bundle ids since they change frequently and it's hard to keep GEP up-to-date with the latest ids.
There is definitely a lot more opportunity here to optimize and clean up the bundle update code.


> Update a bundle within an EBA
> -----------------------------
>
>                 Key: GERONIMODEVTOOLS-718
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-718
>             Project: Geronimo-Devtools
>          Issue Type: New Feature
>          Components: eclipse-plugin
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>            Assignee: Han Hong Fang
>             Fix For: 3.0-M2, 3.0
>
>
> Some EBAs might be huge and contain many bundles. Right now whenever a bundle in a EBA is updated, the entire EBA is re-assembled and re-deployed to the server. That of course, can be expensive if the application is big. So it would be nice if only the updated bundle was re-deployed to the server.
> This feature will probably require changes to the server's deployer code or might need a new set of API for deploying & managing bundles within or outside of EBAs.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (GERONIMODEVTOOLS-718) Update a bundle within an EBA

Posted by "Han Hong Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010597#comment-13010597 ] 

Han Hong Fang commented on GERONIMODEVTOOLS-718:
------------------------------------------------

The solution is to keep the updated bundle only in the geronimo server cache instead of geronimo server repository. So in following cases the updated bundle will be lost, and the original bundle included in EBA archive file comes back.

1. Start geronimo server with --clean option
2. Restart EBA application in Admin console -> Application EBAs

BTW, the feature is not enabled by default. User can turn it on/off in server editor section named "Refresh OSGi bundle within OSGi application".

> Update a bundle within an EBA
> -----------------------------
>
>                 Key: GERONIMODEVTOOLS-718
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-718
>             Project: Geronimo-Devtools
>          Issue Type: New Feature
>          Components: eclipse-plugin
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>
> Some EBAs might be huge and contain many bundles. Right now whenever a bundle in a EBA is updated, the entire EBA is re-assembled and re-deployed to the server. That of course, can be expensive if the application is big. So it would be nice if only the updated bundle was re-deployed to the server.
> This feature will probably require changes to the server's deployer code or might need a new set of API for deploying & managing bundles within or outside of EBAs.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (GERONIMODEVTOOLS-718) Update a bundle within an EBA

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036649#comment-13036649 ] 

Jarek Gawor commented on GERONIMODEVTOOLS-718:
----------------------------------------------

In revision 1125219 I removed the warning message about the lost updates since the updates are persistent now. See GERONIMO-5861 for details.


> Update a bundle within an EBA
> -----------------------------
>
>                 Key: GERONIMODEVTOOLS-718
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-718
>             Project: Geronimo-Devtools
>          Issue Type: New Feature
>          Components: eclipse-plugin
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>            Assignee: Han Hong Fang
>             Fix For: 3.0-M2, 3.0
>
>
> Some EBAs might be huge and contain many bundles. Right now whenever a bundle in a EBA is updated, the entire EBA is re-assembled and re-deployed to the server. That of course, can be expensive if the application is big. So it would be nice if only the updated bundle was re-deployed to the server.
> This feature will probably require changes to the server's deployer code or might need a new set of API for deploying & managing bundles within or outside of EBAs.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (GERONIMODEVTOOLS-718) Update a bundle within an EBA

Posted by "Yi Xiao (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13048962#comment-13048962 ] 

Yi Xiao commented on GERONIMODEVTOOLS-718:
------------------------------------------

Jarek, now,  the server side has modified the OSGI bundles' deployment process,  so, I need to do some bundle cache operations in the GEP side, could I just use the cache and the relative methods you removed?  

> Update a bundle within an EBA
> -----------------------------
>
>                 Key: GERONIMODEVTOOLS-718
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-718
>             Project: Geronimo-Devtools
>          Issue Type: New Feature
>          Components: eclipse-plugin
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>            Assignee: Han Hong Fang
>             Fix For: 3.0-M2, 3.0
>
>
> Some EBAs might be huge and contain many bundles. Right now whenever a bundle in a EBA is updated, the entire EBA is re-assembled and re-deployed to the server. That of course, can be expensive if the application is big. So it would be nice if only the updated bundle was re-deployed to the server.
> This feature will probably require changes to the server's deployer code or might need a new set of API for deploying & managing bundles within or outside of EBAs.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira