glassfish
  1. glassfish
  2. GLASSFISH-6655

Better integration between NetBeans RCP and Glassfish

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 9.1peur2
    • Fix Version/s: 3.1_ms07
    • Component/s: ejb_container
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Linux

    • Issuezilla Id:
      6,655

      Description

      Attached please find a patch to com.sun.ejb.EJBUtils that improves integration
      between NetBeans RCP based applications and Glassfish, by using standalone clients.

      Patch is for

      http://fisheye4.atlassian.com/browse/~raw,r=17529/glassfish-svn/trunk/v2/appserv-core/src/java/com/sun/ejb/EJBUtils.java

      in Glassfish v2ur2.

      I'll be adding a new test case at
      http://www.netbeans.org/issues/show_bug.cgi?id=151368
      in the following hours

        Activity

        Hide
        Alexis MP added a comment -

        cc

        Show
        Alexis MP added a comment - cc
        Hide
        Cheng Fang added a comment -

        The proposed fix (i.e., use EJBUtils classloader instead of thead context classloader) does not work on the server side. A similar issue on Eclipse RCP is http://java.net/jira/browse/GLASSFISH-12197 . Close it as Won't Fix.

        Show
        Cheng Fang added a comment - The proposed fix (i.e., use EJBUtils classloader instead of thead context classloader) does not work on the server side. A similar issue on Eclipse RCP is http://java.net/jira/browse/GLASSFISH-12197 . Close it as Won't Fix.
        Hide
        mikevader added a comment -

        Do I understand this correctly: There is no possibility to make an Netbeans RCP application to work with Glassfish v3 and above? Except if I add the patch above manually which would be quite dangerous on a larger server environment?!

        Show
        mikevader added a comment - Do I understand this correctly: There is no possibility to make an Netbeans RCP application to work with Glassfish v3 and above? Except if I add the patch above manually which would be quite dangerous on a larger server environment?!
        Hide
        vieiro added a comment -

        I'm afraid you're not understanding it correctly. The fact is there is no possibility to make Glassfish v3 to work on a NetBeans RCP application. Inside a NetBeans RCP application the class-loading is mandated by the NetBeans RCP classloading architecture, and not by the Glassfish classloading architecture (that is acting just as a library to access the server-side data).

        I submitted a patch about two years ago that solved a Glassfish v2 class-loading issue, so it would be possible to get Glassfish v2 to work on a NetBeans RCP application. The patch was targetted to the client-side jars, and you don't need to touch anything on the server side (i.e, you had to apply the patch to the jar in the client-side, but not on the server side).

        I didn't try to patch Glassfish v3. It seems somebody else did, without success.

        It seems you can also run a NetBeans RCP application inside a glassfish client container (see http://blogs.sun.com/geertjan/entry/deploying_swing_as_an_application) but I haven't investigated that (I don't like that solution).

        Show
        vieiro added a comment - I'm afraid you're not understanding it correctly. The fact is there is no possibility to make Glassfish v3 to work on a NetBeans RCP application. Inside a NetBeans RCP application the class-loading is mandated by the NetBeans RCP classloading architecture, and not by the Glassfish classloading architecture (that is acting just as a library to access the server-side data). I submitted a patch about two years ago that solved a Glassfish v2 class-loading issue, so it would be possible to get Glassfish v2 to work on a NetBeans RCP application. The patch was targetted to the client-side jars, and you don't need to touch anything on the server side (i.e, you had to apply the patch to the jar in the client-side, but not on the server side). I didn't try to patch Glassfish v3. It seems somebody else did, without success. It seems you can also run a NetBeans RCP application inside a glassfish client container (see http://blogs.sun.com/geertjan/entry/deploying_swing_as_an_application ) but I haven't investigated that (I don't like that solution).
        Hide
        arungupta added a comment -

        Adding myself to the CC.

        Show
        arungupta added a comment - Adding myself to the CC.

          People

          • Assignee:
            Cheng Fang
            Reporter:
            vieiro
          • Votes:
            6 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: