You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Yi Xiao (JIRA)" <ji...@apache.org> on 2011/06/17 12:19:47 UTC

[jira] [Created] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

Using the new APIs to manage  the bundles status both in GEP and Server side
----------------------------------------------------------------------------

                 Key: GERONIMODEVTOOLS-759
                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
             Project: Geronimo-Devtools
          Issue Type: Improvement
          Components: eclipse-plugin
    Affects Versions: 3.0
         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
            Reporter: Yi Xiao
            Assignee: Yi Xiao
             Fix For: 3.0


This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

Re: [jira] [Commented] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

Posted by Yi Xiao <xi...@gmail.com>.
I've reviewed the code, it's better and more concise than I did[?], thank you
very much, Jarek.

When I test the new feature, I find a problem that when restart the eclipse
and modify the bundle's symbolic name or version, then publish the bundle to
the server, the server would not remove the previous one!

The root cause is when the eclipse restarts, the bundle Map's info is empty,
so it could not get the cached bundle id and also the bundle's symbolic name
or version has been changed, so it could not find the bundle id from server
side by them, the bundle will be an isolated and never used one in server
side.

Maybe we still need persist the bundle map in GEP side, but just persist the
bundle module id, symbolic name,version and the module's state(is removed or
something else), the module state can be obtained by a resource changed
listener as I patched before.
What's your option?

On Tue, Jul 12, 2011 at 1:45 AM, Jarek Gawor (JIRA) <ji...@apache.org> wrote:

>
>    [
> https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13063449#comment-13063449]
>
> Jarek Gawor commented on GERONIMODEVTOOLS-759:
> ----------------------------------------------
>
> In revision 1145251 I refactored the module handling code. I separated it
> into two separate classes - one for handling the Java EE modules and EBAs
> and second one for handling OSGi bundles. I also simplified the OSGi
> handling code.
> Please review in case I missed something.
>
>
> > Using the new APIs to manage  the bundles status both in GEP and Server
> side
> >
> ----------------------------------------------------------------------------
> >
> >                 Key: GERONIMODEVTOOLS-759
> >                 URL:
> https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
> >             Project: Geronimo-Devtools
> >          Issue Type: Improvement
> >          Components: eclipse-plugin
> >    Affects Versions: 3.0
> >         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6,
> Eclipse3.6SR1&SR2
> >            Reporter: Yi Xiao
> >            Assignee: Jarek Gawor
> >              Labels: OSGI, bundle
> >             Fix For: 3.0
> >
> >         Attachments: OSGIBundleDeploy.patch,
> OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changeAPI2_759.patch,
> OSGIBundleDeploy_changePOM_759.patch
> >
> >
> > This improvement depends on the server's modules, so, if the server side
> does not update timely, it may cause the GEP compile failure!
>
> --
> This message is automatically generated by JIRA.
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>


-- 
Best regards!


               John Xiao

[jira] [Updated] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Yi Xiao updated GERONIMODEVTOOLS-759:
-------------------------------------

    Attachment: OSGIBundleDeploy_759_noIDPersist.patch

the patch not persist the bundle id in GEP side

> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Jarek Gawor
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_759_noIDPersist.patch, OSGIBundleDeploy_759_persistence.patch, OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changeAPI2_759.patch, OSGIBundleDeploy_changePOM_759.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Commented] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Jarek Gawor commented on GERONIMODEVTOOLS-759:
----------------------------------------------

>From the experience of EBA update functionality caching bundle ids doesn't really work. Bundle ids can change quite frequently (for example when restarting EBA or restarting the server with -clean option). I think the code should be using passing bundle symbolic name & version to execute a particular operation or at least use bundle symbolic name & version to lookup the id each time and then execute the operation with the id.


> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Yi Xiao
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_changeAPI.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Commented] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Jarek Gawor commented on GERONIMODEVTOOLS-759:
----------------------------------------------

Again, you CANNOT save bundle ids because you might end up updating / deleting a wrong bundle. You could re-check a bundle id every time but what's the point of doing that if you can just as well look it up each time. The problem of changing the bundle symbolic name and version (without bundle id persistence) is much less severe than deleting a wrong bundle (with bundle id persistence). 


> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Jarek Gawor
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_759_persistence.patch, OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changeAPI2_759.patch, OSGIBundleDeploy_changePOM_759.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Commented] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

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

The new patch looks good to me.  Committed at revision: 1161034.

> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Jarek Gawor
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_759_persistence.patch, OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changeAPI2_759.patch, OSGIBundleDeploy_changePOM_759.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Commented] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Yi Xiao commented on GERONIMODEVTOOLS-759:
------------------------------------------

As the bundle deploy's behavior is still undecided at server side. The GEP side will change.

> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Yi Xiao
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changePOM_759.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Commented] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Yi Xiao commented on GERONIMODEVTOOLS-759:
------------------------------------------

The newest path is OSGIBundleDeploy_759_persistence.patch.

I reconstruct the code, add some classes in charge of the artifacts and bundles's persistence;
And, use the writeObject method to persist the object to a file instead of using a XML file, the efficiency is higher. Although the object file is difficult to understand and unmodified compared to XML file, I think the persistence file is no need to modify manually.



> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Jarek Gawor
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_759_persistence.patch, OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changeAPI2_759.patch, OSGIBundleDeploy_changePOM_759.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Commented] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Yi Xiao commented on GERONIMODEVTOOLS-759:
------------------------------------------

I've reviewed the code, it's better and more concise than I did, thank you very much, Jarek.

When I test the new feature, I find a problem that when restart the eclipse and modify the bundle's symbolic name or version, then publish the bundle to the server, the server would not remove the previous one!

The root cause is when the eclipse restarts, the bundle Map's info is empty, so it could not get the cached bundle id and also the bundle's symbolic name or version has been changed, so it could not find the bundle id from server side by them, the bundle will be an isolated and never used one in server side. 

Maybe we still need persist the bundle map in GEP side, but just persist the bundle module id, symbolic name,version and the module's state(is removed or something else), the module state can be obtained by a resource changed listener as I patched before.
What's your option?

> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Jarek Gawor
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changeAPI2_759.patch, OSGIBundleDeploy_changePOM_759.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Updated] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Yi Xiao updated GERONIMODEVTOOLS-759:
-------------------------------------

    Attachment: OSGIBundleDeploy.patch

> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Yi Xiao
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Commented] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Yi Xiao commented on GERONIMODEVTOOLS-759:
------------------------------------------

Hi, Jarek. Rex do the server side's bundle management, and we decide to use the bundle Id as the unique and never changed key to identify a bundle, so I save it to the gep side.

> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Yi Xiao
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_changeAPI.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Updated] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Yi Xiao updated GERONIMODEVTOOLS-759:
-------------------------------------

    Attachment: OSGIBundleDeploy_changeAPI.patch

The patch should replace the previous one for the API changed at server side.

> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Yi Xiao
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_changeAPI.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Commented] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Yi Xiao commented on GERONIMODEVTOOLS-759:
------------------------------------------

I find some other cases will lead to publish errors, I will consider it more carefully and provide a new patch.

> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Jarek Gawor
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_759_persistence.patch, OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changeAPI2_759.patch, OSGIBundleDeploy_changePOM_759.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Updated] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Yi Xiao updated GERONIMODEVTOOLS-759:
-------------------------------------

    Attachment: OSGIBundleDeploy_changeAPI2_759.patch

At last, I didn't cache bundle id in gep side, but cache bundle symbolic name and version for tracing the eclipse project's change and republishing to server.

> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Yi Xiao
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changeAPI2_759.patch, OSGIBundleDeploy_changePOM_759.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Assigned] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Jarek Gawor reassigned GERONIMODEVTOOLS-759:
--------------------------------------------

    Assignee: Jarek Gawor  (was: Yi Xiao)

> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Jarek Gawor
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changeAPI2_759.patch, OSGIBundleDeploy_changePOM_759.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Commented] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Yi Xiao commented on GERONIMODEVTOOLS-759:
------------------------------------------

I know you mean, Jarek. In my patch:OSGIBundleDeploy_759_persistence.patch, I modify the SynchronizeProjectOnServerTask, and when synchronizing with server, the bundle id will be updated, so I persist it.
I still think save bundle id can save lots of time compare to look up bundle id every time from server, the SynchronizeProjectOnServerTask can guarantee the bundle id's correction, so I think just need to do a little modification in it we can use bundle id correctly. 

> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Jarek Gawor
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_759_persistence.patch, OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changeAPI2_759.patch, OSGIBundleDeploy_changePOM_759.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Commented] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Jarek Gawor commented on GERONIMODEVTOOLS-759:
----------------------------------------------

In revision 1145251 I refactored the module handling code. I separated it into two separate classes - one for handling the Java EE modules and EBAs and second one for handling OSGi bundles. I also simplified the OSGi handling code. 
Please review in case I missed something.


> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Jarek Gawor
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changeAPI2_759.patch, OSGIBundleDeploy_changePOM_759.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Updated] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Yi Xiao updated GERONIMODEVTOOLS-759:
-------------------------------------

    Attachment: OSGIBundleDeploy_changePOM_759.patch

This patch modifies the pom.xml, otherwise, the compile will be failed.

> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Yi Xiao
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changePOM_759.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Commented] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Jarek Gawor commented on GERONIMODEVTOOLS-759:
----------------------------------------------

Committed the latest patch in revision 1144570.


> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Yi Xiao
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changeAPI2_759.patch, OSGIBundleDeploy_changePOM_759.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Commented] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

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

Committed at revision: 1140441. Thanks Yi Xiao for the patch.

> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Yi Xiao
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changePOM_759.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Resolved] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Han Hong Fang resolved GERONIMODEVTOOLS-759.
--------------------------------------------

    Resolution: Fixed

> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Yi Xiao
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changePOM_759.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Reopened] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Jarek Gawor reopened GERONIMODEVTOOLS-759:
------------------------------------------


There are two big (but related) problems with this code right now: 1) the bundle ids cannot not be cached on disk (since server restart might change them), and 2) the bundle ids need to be re-synchronized each time server starts up.

For 1) doing memory only cache should be ok and for 2) need some api to lookup bundle id based on the bundle symbolic name and version.



> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Yi Xiao
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changePOM_759.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Commented] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

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

Committed new patch at revision: 1172513.

> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Jarek Gawor
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_759_noIDPersist.patch, OSGIBundleDeploy_759_persistence.patch, OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changeAPI2_759.patch, OSGIBundleDeploy_changePOM_759.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Commented] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Yi Xiao commented on GERONIMODEVTOOLS-759:
------------------------------------------

The newest patch is OSGIBundleDeploy_changeAPI2_759.patch, should use it to match the server side's change.



> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Yi Xiao
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changeAPI2_759.patch, OSGIBundleDeploy_changePOM_759.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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

        

[jira] [Updated] (GERONIMODEVTOOLS-759) Using the new APIs to manage the bundles status both in GEP and Server side

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

Yi Xiao updated GERONIMODEVTOOLS-759:
-------------------------------------

    Attachment: OSGIBundleDeploy_759_persistence.patch

> Using the new APIs to manage  the bundles status both in GEP and Server side
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-759
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-759
>             Project: Geronimo-Devtools
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: WinXP sp3 32bit& Win7 64bit, Oracle JDK 1.6, Eclipse3.6SR1&SR2
>            Reporter: Yi Xiao
>            Assignee: Jarek Gawor
>              Labels: OSGI, bundle
>             Fix For: 3.0
>
>         Attachments: OSGIBundleDeploy.patch, OSGIBundleDeploy_759_persistence.patch, OSGIBundleDeploy_changeAPI.patch, OSGIBundleDeploy_changeAPI2_759.patch, OSGIBundleDeploy_changePOM_759.patch
>
>
> This improvement depends on the server's modules, so, if the server side does not update timely, it may cause the GEP compile failure!

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