Hi Dick,
Thank you so much for the reply to give help and suggestion. Many time
things get there answer in the discussion,
that is what the community for. Davis told me in this case Ajnavi was
looking for NB API code, so we have sent
the NB dev alias to get help there.
Hi All, If you have any question/suggestion to GlassFish quality, please
feel free to send to this alias. We like to
hear from you all :-)
Thanks,
Judy
Dick Davies wrote:
>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.
>>
>>
>>
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>
>
>