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 133751

Summary: Missing API to obtain server host/port and (possibly) other props.
Product: serverplugins Reporter: Petr Hejl <phejl>
Component: InfrastructureAssignee: Petr Hejl <phejl>
Status: RESOLVED FIXED    
Severity: blocker CC: apireviews, jungi, mkuchtiak, pjiricka, vidhya
Priority: P2 Keywords: API, API_REVIEW_FAST
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 135324    
Bug Blocks: 126985, 109895    
Attachments: proposed change

Description Petr Hejl 2008-04-23 09:57:31 UTC
There is now no clean way how client could find out the server host/port. There is also no indication whether the server
is remote or local. This seems to be needed by several modules (ws, soa) - some of them are using terrible hack using
the leaking InstanceProperties (this is not reliable at all as there is no mandatory property for desired values).

We should provide api/spi representing ServerInstance (refactor subset of Deployment facade methods to it) and
ServerInstanceDescriptor (with methods to obtain host, port and remote flag).
Comment 1 Petr Hejl 2008-04-28 12:25:38 UTC
*** Issue 77478 has been marked as a duplicate of this issue. ***
Comment 2 Petr Hejl 2008-05-22 15:15:23 UTC
Attaching proposed change. The change is incremental to issue 135324 (diff expects that changes from 135324 are applied).
Comment 3 Petr Hejl 2008-05-22 15:17:48 UTC
Created attachment 61766 [details]
proposed change
Comment 4 Petr Hejl 2008-05-22 15:21:12 UTC
Please provide feedback on whether this change match your needs. Is any other instance property needed?
Comment 5 Petr Hejl 2008-05-29 10:10:36 UTC
If there are no objections, I'll push this tomorrow.
Comment 6 Petr Hejl 2008-05-30 11:44:42 UTC
Fixed in bb8f1225e3f6.
Comment 7 Quality Engineering 2008-06-03 04:13:09 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #234 build
Changeset: http://hg.netbeans.org/main/rev/bb8f1225e3f6
User: phejl@netbeans.org
Log: #133751 Missing API to obtain server host/port and (possibly) other props.