This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 58481 - InstanceProperties methods retrieve the admin instance
Summary: InstanceProperties methods retrieve the admin instance
Status: RESOLVED INVALID
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-02 10:35 UTC by sigalduek
Modified: 2005-09-19 10:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sigalduek 2005-05-02 10:35:33 UTC
I use the following code:

           Lookup l = enterpriseProject.getLookup();
           J2eeModuleProvider projectModule = (J2eeModuleProvider)
l.lookup(J2eeModuleProvider.class);
           if (projectModule != null) {
               *InstanceProperties instanceProp* =
projectModule.getInstanceProperties();
               if (instanceProp != null){
                   *port =
instanceProp.getProperty(InstanceProperties.HTTP_PORT_NUMBER);*
                   String UrlAttr =
instanceProp.getProperty(InstanceProperties.URL_ATTR);
                   ....

This code retrieves me for (for s1as) the admin port/url
Comment 1 Nitya Doraisamy 2005-08-25 20:41:51 UTC
So what is the issue here? I don't know what the error here is from your
description. Are you trying to get the project's associated server information? 
Comment 2 _ ludo 2005-09-18 02:28:57 UTC
This is by design: this http port is the one from admin.