quality@glassfish.java.net

Re: NetBeans plugin question

From: Dick Davies <rasputnik_at_hellooperator.net>
Date: Mon, 10 Nov 2008 11:00:28 +0000

How about finding what Server the project is set to deploy to (which I
think is a
Netbeans project property, I'm pretty new to NetBeans) and then
parsing that servers
domain.xml?

I don't know how to do any of the above, I'm just saying that may be a
valid approach :)

On Sat, Nov 8, 2008 at 12:12 AM, Ajnavi Rani Kumar
<ajnaviranikumar_at_yahoo.com> wrote:
> Hi Davis,
>
> Thanks for your answer, but I need to find out from java code.
>
> I have added a menu in the popup menu of a project. When user click on the
> menu I need to find these details for the selected project. Please let me
> know the NetBeans API to use to find these informations.
>
> Thanks,
> -Ajnavi.
>
> ________________________________
> From: Davis Nguyen <Davis.Nguyen_at_Sun.COM>
> To: quality_at_glassfish.dev.java.net; ajnaviranikumar_at_yahoo.com
> Sent: Friday, November 7, 2008 4:08:13 PM
> Subject: Re: NetBeans plugin question
>
> Hi Ajnavi,
>
> 1. Find out what Glassfish server Version and "Context Path" , "Relative
> URL"....of a web project.
> From the Netbean IDE Project tab > right-click at the Web Project
> name > select Properties menu > select Run
> Context Path, Relative URL and Server version are listed under
> the Run menu
> 2. Find out (Host name and domain name.) Assume you're using Glassfish V3
> From the IDE Services tab > expand Servers node > right-click at
> Glassfish V3 > select Properties
> Host name and domain name are listed there
>
> -davis
>
>
> Ajnavi Rani Kumar wrote:
>
> Hi All,
>
> I am working on a GlassFish project as my master's project to develop a
> NetBeans plugin. I have a question.
>
> How do I find out "hostname", "port number", "Context Path", "Relative URL"
> properties of a web project? These properties are used to deploy the web
> application in a browser, but I need a way to find out in a NetBeans plugin.
>
> Please help.
>
> Thanks,
> -Ajnavi.
>
>
>