<!-- <questionid="arch-overall"when="init"> Describetheoverallarchitecture. <hint> WhatwillbeAPIfor <ahref="http://openide.netbeans.org/tutorial/api-design.html#design.apiandspi"> clientsandwhatsupportAPI</a>? Whatpartswillbepluggable? Howwillplug-insberegistered?Pleaseuse<code><apitype="export"/></code> todescribeyourgeneralAPIs. Ifpossiblepleaseprovide simplediagrams. </hint> </question>
-->
<answer id="arch-overall">
<p>
This is the plugin for NetBeans 4.1 enabling the Sun Java System Application Server 8.1 PE as a J2EE target
for development and deployment of J2EE Applications.
</p>
</answer>
<!-- <questionid="arch-quality"when="init"> Howwillthe<ahref="http://www.netbeans.org/community/guidelines/q-evangelism.html">quality</a> ofyourcodebetestedand howarefutureregressionsgoingtobeprevented? <hint> Whatkindoftestingdo youwanttouse?Howmuchfunctionality,inwhichareas, shouldbecoveredbythetests? </hint> </question>
-->
<answer id="arch-quality">
<p>
This code, being part of the NetBeans 4.1 product is tested by the NetBeans QE team.
</p>
</answer>
<!-- <questionid="arch-time"when="init"> Whatarethetimeestimatesofthework? <hint> Pleaseexpressyourestimatesofhowlongthedesign,implementation, stabilizationarelikelytolast.Howmanypeoplewillbeneededto implementthisandwhatistheexpectedmilestonebywhichtheworkshouldbe ready? </hint> </question>
-->
<answer id="arch-time">
<p>
The plugin is bundled within NetBeans 4.1 (along with the Sun Java System Application Server 8.1 PE product itself). Please refers to the NetBeans 4.1 schedule.
</p>
</answer>
<!-- <questionid="arch-what"when="init"> Whatisthisprojectgoodfor? <hint> Pleaseprovidehereafewlinesdescribingtheproject, whatproblemitshouldsolve,providelinkstodocumentation, specifications,etc. </hint> </question>
-->
<answer id="arch-what">
<p>
This project is good for enabling deployment and execution of J2EE applications created via NetBeans to the Sun Application Server.
The plugin also enable a comprehensive Administration tool for server instances (List of Deployed Apps, or registered resources).
The plugin enables J2EE Application debugging (java and JSP), log viewer, verifier tool inegration, remote deployment,...
</p>
</answer>
<!-- <questionid="compat-i18n"when="impl"> Isyourmodulecorrectlyinternationalized? <hint> Correctinternationalizationmeansthatitobeysinstructions at<ahref="http://www.netbeans.org/download/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/i18n-branding.html"> NetBeansI18Npages</a>. </hint> </question>
-->
<answer id="compat-i18n">
<p>
This module is correctly internationalized, as being part of NetBeans 4.1 product.
</p>
</answer>
<!-- <questionid="compat-standards"when="init"> Doesthemoduleimplementordefineanystandards?Isthe implementationexactordoesitdeviatesomehow? </question>
-->
<answer id="compat-standards">
<p>
The module depends on the implementation of a few standards from the Application Server itself. The plugin dynamically loads JAR files from the app
server installation directory to get access to a J2EE 1.4 specification implementation : EJB, JWS, Web Services, JSR 88, JMX,...
</p>
</answer>
<!-- <questionid="compat-version"when="impl"> Canyourmodulecoexistwithearlierandfuture versionsofitself?Canyoucorrectlyreadalloldsettings?Willfuture versionsbeabletoreadyourcurrentsettings?Canyouread orpolitelyignoresettingsstoredbyafutureversion? <hint> Veryhelpfulforreadingsettingsistostoreversionnumber there,sofutureversionscandecidewhetherhowtoread/convert thesettingsandolderversionscanignorethenewones. </hint> </question>
-->
<answer id="compat-version">
<p>
There is an earlier version of the plugin that shipped with NetBeans 3.6 in auto update center. These settings are not compatible with the new plugin, but
the migration is as simple as specifying again the Application Server Installation Directory.
We expect future versions of the plugin to understand the current structure of the settings going forward.
</p>
</answer>
<!-- <questionid="dep-jre"when="final"> WhichversionofJREdoyouneed(1.2,1.3,1.4,etc.)? <hint> Itisexpectedthatifyourmodulerunson1.xthatitwillrun on1.x+1ifno,statethatplease.Alsodescribeherecaseswhere yourundifferentcodeondifferentversionsofJREandwhy. </hint> </question>
-->
<answer id="dep-jre">
<p>
Thsi module needs JRE 1.4 or 1.5. The module is compiled with with JDK 1.4 for now, without any 1.5constructs usage.
</p>
</answer>
<!-- <questionid="dep-jrejdk"when="final"> DoyourequiretheJDKoristheJREenough? </question>
-->
<answer id="dep-jrejdk">
<p>
JRE is enough for the plugin.
</p>
</answer>
<!-- <questionid="dep-non-nb"when="init"> WhatotherprojectsoutsideNetBeansdoesthisonedependon? <hint> Somenon-NetBeansprojectsarepackagedasNetBeansmodules (see<ahref="http://libs.netbeans.org/">libraries</a>)and itispreferredtousethisapproachwhenmoremodulesmay dependonsuchthird-partylibrary. </hint> </question>
-->
<answer id="dep-non-nb">
<p>
The plugin depends a lot on the Application Server 8.1 product and needs an installation of it to be fully functional. We need for example the
JSR 88 implementation provided by the application server. We also need all the CLients APIS for Management of an app server.
We also depends on the directory structure of an application server installation area, to get access to a few command line tools like asadmin, verifier or the log files.
</p>
</answer>
<!-- <questionid="dep-platform"when="init"> Onwhichplatformsdoesyourmodulerun?Doesitruninthesame wayoneach? <hint> IfyourmoduleisusingJNIordealswithspecialdifferencesof OSeslikefilesystems,etc.pleasedescribeherewhattheyare. </hint> </question>
-->
<answer id="dep-platform">
<p>
Any platform supported by both NetBeans and the Application Server 8.1. Windows XP, Linux, Solaris, JDS, Mac OSX.
</p>
</answer>
<!-- <questionid="deploy-jar"when="impl"> DoyoudeployjustmoduleJARfile(s)orotherfilesaswell? <hint> UsuallyamoduleconsistofoneJARfile(perhapswithClass-Path extensions)andalsoaconfigurationfilethatenablesit.Ifyou haveanyotherfiles,use <apigroup="java.io.File"name="yourname"type="export"category="friend"&an>gt;...</api> todefinethelocation,nameandstabilityofyourfiles(ofcourse changing"yourname"and"friend"tosuityourneeds). IfitusesmorethanoneJAR,describewheretheyarelocated,how theyrefertoeachother. IfitconsistofmoduleJAR(s)andotherfiles,pleasedescribe whatistheirpurpose,whyotherfilesarenecessary.Please makesurethatinstallation/uninstallationleavesthesystem instateasitwasbeforeinstallation. </hint> </question>
-->
<answer id="deploy-jar">
<p>
The plugin is a more than a JAR file, in order to be able to dynamically load JAR files from the Application Server product itelf.
We have abstracted via interfaces the communication between the real netbeans module (loaded by a NetBeans Class loader) and the App Server jars.
So far, the structure is as follow:
moduleles/org-netbeans-modules-j2ee-sun-ide.jar
that depends on
modules/ext/appserv-jsr88.jar
modules/ext/validation.jar
modules/ext/appserv-libapi.jar
<api group="java.io.File" name="org-netbeans-modules-j2ee-sun-ide.jar"type="export"category="friend">
the main plugin module
</api>
<api group="java.io.File" name="appserv-jsr88.jar"type="export" category="friend">
a Netbeans independant (could be used with Eclipse for example) implementation of the config editors that are
necessary for the JSR 88 UI implementation. This edits all the Sun specific Deployment dewcriptor files like sun-web.xml, sun-ejb-jar.xml or sun-application.xml.
</api>
<api group="java.io.File" name="validation.jar"type="export" category="private">
A utility to do some XML validation for the sun deployment descritors. This could be exposed later, but it only used byt he app server plugin.
</api>
<api group="java.io.File" name="appserv-libapi.jar"type="export" category="friend">
DD APIS for the sun specific deployment descriptors. It follows exactely the same patterns as the NetBeans J2EE DD APIs,
</api>
<!-- <questionid="deploy-shared"when="final"> Doyouneedtobeinstalledinthesharedlocationonly,orintheuserdirectoryonly, orcanyourmodulebeinstalledanywhere? <hint> Installationlocationshallnotmatter,ifitdoesexplainwhy. Consideralsowhether<code>InstalledFileLocator</code>canhelp. </hint> </question>
-->
<answer id="deploy-shared">
<p>
The plugin can be installed either in the share location or the netbeans user directory.
</p>
</answer>
<!-- <questionid="exec-classloader"when="impl"> Doesyourcodecreateitsownclassloader(s)? <hint> Abitunusual.Pleaseexplainwhyandwhatfor. </hint> </question>
-->
<answer id="exec-classloader">
<p>
Yes, the plugin has a specific class loader to load the necessary Spec implementations JARs from the application server area.
We could have copied the necessary jars under modules/ext, but 1/ this is not ARC compliant, and 2/ the size of the external jars is way too big to be bundled
within NetBeans. The NetBeans product is tracking the issue related to loading external jar files (i.e outside the netbeans installation directory with this bug: http://www.netbeans.org/issues/show_bug.cgi?id=53898
</p>
</answer>
<!-- <questionid="exec-component"when="impl"> Isexecutionofyourcodeinfluencedbyany(string)property ofanyofyourcomponents? <hint> Often<code>JComponent.getClientProperty</code>,<code>Action.getValue</code> or<code>PropertyDescriptor.getValue</code>,etc.areusedtoinfluence abehaviorofsomecode.Thisofcourseformsaninterfacethatshould bedocumented.Alsoifonedependsonsomeinterfacethatanobject implements(<code>componentinstanceofRunnable</code>)thatformsan APIaswell. </hint> </question>
-->
<answer id="exec-component">
<p>
it is possible to define the com.sun.aas.installroot property (passed via the command line of the NetBeans script) to tell the plugin where the application server 8.1 is installed.
</p>
</answer>
<!-- <questionid="exec-introspection"when="impl"> Doesyourmoduleuseanykindofruntimetypeinformation(<code>instanceof</code>, workwith<code>java.lang.Class</code>,etc.)? <hint> CheckforcaseswhenyouhaveanobjectoftypeAandyoualso expectitto(possibly)beoftypeBanddosomespecialaction.That shouldbedocumented.Thesameappliesonoperationsinmeta-level (Class.isInstance(...),Class.isAssignableFrom(...),etc.). </hint> </question>
-->
<answer id="exec-introspection">
<p>
We do use introspection as of today to handle the dynamic aspect of the fact that the application server JARs location is unknown by the plugin code. A special
class loader is used to load the JSR 88 necessary implementation classes, a well as the AMX admin beans used to communicate to the server.
<!-- <questionid="exec-process"when="impl"> Doyouexecuteanexternalprocessfromyourmodule?Howdoyouensure thattheresultisthesameondifferentplatforms?Doyouparseoutput? Doyoudependonresultcode? <hint> Ifyoufeedaninput,parsetheoutputpleasedeclarethatasanAPI. </hint> </question>
-->
<answer id="exec-process">
<p>
We do execute external processes to: 1/ start ot stop the Application Server instance 2/ start/stop the pointbase database 3/ call the ASADMIN CLI tools 4/ Call the Verifier tool.
The only output we parse is the verifier output which is a XML file that uses a published DTD from the Application Server Product.
</p>
</answer>
<!-- <questionid="exec-property"when="impl"> Isexecutionofyourcodeinfluencedbyanyenvironmentor Javasystem(<code>System.getProperty</code>)property? <hint> Ifthereisapropertythatcanchangethebehaviorofyour code,somebodywilllikelyuseit.Youshoulddescribewhatitdoes andthe<ahref="http://openide.netbeans.org/tutorial/api-design.html#life">stabilitycategory</a> ofthisAPI.Youmayuse <pre> <apitype="export"group="property"name="id"category="private"url="http://..."> descriptionoftheproperty,whereitisused,whatitinfluence,etc. </api> </pre> </hint> </question>
-->
<answer id="exec-property">
<p>
Our code needs to set a Java System property which is used by the Application Server jars that indicates the Application Server installation directory.
it is called "com.sun.ass.installroot".
</p>
</answer>
<!-- <questionid="exec-reflection"when="impl"> DoesyourcodeuseJavaReflectiontoexecuteothercode? <hint> ThisusuallyindicatesamissingorinsufficientAPIintheother partofthesystem.Iftheothersideisnotawareofyourdependency thiscontractcanbeeasilybroken. </hint> </question>
-->
<answer id="exec-reflection">
<p>
Not yet in the plugin code. Maybe indirectly via some Application Server JAR files, but we don't know that. (JMX MBeans?)
</p>
</answer>
<!-- <questionid="exec-threading"when="impl"> Whatthreadingmodels,ifany,doesyourmoduleadhereto? <hint> IfyourmodulecallsforeignAPIswhichhaveaspecificthreadingmodel, indicatehowyoucomplywiththerequirementsformultithreadedaccess (synchronization,mutexes,etc.)applicabletothoseAPIs. IfyourmoduledefinesanyAPIs,orhascomplexinternalstructures thatmightbeusedfrommultiplethreads,declarehowyouprotect dataagainstconcurrentaccess,raceconditions,deadlocks,etc., andwhethersuchrulesareenforcedbyruntimewarnings,errors,assertions,etc. Examples:aclassmightbenon-thread-safe(likeJavaCollections);might befullythread-safe(internallocking);mightrequireaccessthroughamutex (andmayormaynotautomaticallyacquirethatmutexonbehalfofaclientmethod); mightbeabletorunonlyintheeventqueue;etc. Alsodescribewhenanyeventsarefired:synchronously,asynchronously,etc. Ideas:<ahref="http://core.netbeans.org/proposals/threading/index.html#recommendations">ThreadingRecommendations</a>(inprogress) </hint> </question>
-->
<answer id="exec-threading">
<p>
We do call a lot foreign APIS implemented by the Application Server. For the JSR 88 ones, we need to interject a Thread Context Class loader before any 88 calls.
because of some limitations of the App Server implementation for the JMX remote library usage, which did not specify a class loader to find a factory for the JMX remote implementation.
<!-- <questionid="format-dnd"when="impl"> Whichprotocols(ifany)doesyourcodeunderstandduringDrag&Drop? <hint> OftenNode'sdealwithclipboardbyusageof<code>Node.drag,Node.getDropType</code>. Checkyourcodeforoverridingthesemethods.Btw.iftheyarenotoverridden,they bydefaultdelegateto<code>Node.clipboardCopy,Node.clipboardCutandNode.pasteTypes</code>. </hint> </question>
-->
<answer id="format-dnd">
<p>
No DnD used so far.
</p>
</answer>
<!-- <questionid="format-types"when="impl"> Whichprotocolsandfileformats(ifany)doesyourmodulereadorwriteondisk, ortransmitorreceiveoverthenetwork? </question>
-->
<answer id="format-types">
<p>
We need to read and write Deployment Descriptors (both J2EE 1.4 or Sun App Server 8.1 Specific) with published stable DTDs or Schemas.
We deploy WAR, EJB JARS and EAR files, whose formats are specified in the J2EE spec.
</p>
</answer>
<!-- <questionid="lookup-lookup"when="init"> Doesyourmoduleuse<code>org.openide.util.Lookup</code> oranysimilartechnologytofindanycomponentstocommunicatewith?Whichones? <hint> Pleasedescribetheinterfacesyouaresearchingfor,where aredefined,whetheryouaresearchingforjustoneormoreofthem, iftheorderisimportant,etc.Alsoclassifythestabilityofsuch APIcontract.Forthatuse<apigroup=&lookup&/>tag. </hint> </question>
-->
<answer id="lookup-lookup">
<p>
this module uses the org.openide.util.Lookup class via the J2EEServer module with which it interacts. 3 JSR 88 interfaces are looked up in the NodeFactory class:
<!-- <questionid="perf-exit"when="final"> Doesyourmodulerunanycodeonexit? </question>
-->
<answer id="perf-exit">
<p>
NetBeans can call the 'stop' server command at exit time. Since stopping a server can be time consuming, in this case, we have a special flag that allow us to return immediately.
This way, the server can take as long as needed to stop, but NetBeans can exit very quickly.
</p>
</answer>
<!-- <questionid="perf-huge_dialogs"when="final"> Doesyourmodulecontainanydialogsorwizardswithalargenumberof GUIcontrolssuchascomboboxes,lists,trees,ortextareas? </question>
-->
<answer id="perf-huge_dialogs">
<p>
yes for the JSR 88 config editor implementation that proposes a UI for editing complex XML files (Deployment Descriptors)
</p>
</answer>
<!-- <questionid="perf-mem"when="final"> Howmuchmemorydoesyourcomponentconsume?Estimate witharelationtothenumberofwindows,etc. </question>
-->
<answer id="perf-mem">
<p>
Unknown at this point.
</p>
</answer>
<!-- <questionid="perf-menus"when="final"> Doesyourmoduleusedynamicallyupdatedcontextmenus,or context-sensitiveactionswithcomplicatedandslowenablementlogic? <hint> Ifyoudoalotoftrickswhenaddingactionstoregularorcontextmenus,youcansignificantly slowdowndisplayofthemenu,evenwhentheuserisnotusingyouraction.Payattentionto actionsyouaddtothemainmenubar,andtocontextmenusofforeignnodesorcomponents.If theactionisconditionallyenabled,orchangesitsdisplaydynamically,youneedtocheckthe impactonperformance.Insomecasesitmaybemoreappropriatetomakeasimpleactionthatis alwaysenabledbutdoesmoredetailedchecksinadialogifitisactuallyrun. </hint> </question>
-->
<answer id="perf-menus">
<p>
We do implement a "wait-node" for all the management calls within the nodes int he runtime tab. For example, querying the application server for the list of deployed applications can take a few seconds.
This "wait-node" makes sure the UI is responsive for other parallel activities within the IDE.
</p>
</answer>
<!-- <questionid="perf-progress"when="final"> Doesyourmoduleexecuteanylong-runningtasks? <hint>Longrunningtasksshouldneverblock AWTthreadasitbadlyhurtstheUI <ahref="http://performance.netbeans.org/responsiveness/issues.html"> responsiveness</a>. Taskslikeconnectingover network,computinghugeamountofdata,compilation bedoneasynchronously(forexample using<code>RequestProcessor</code>),definitivelyitshould notblockAWTthread. </hint> </question>
-->
<answer id="perf-progress">
<p>
Starting and stopping the application server call take a long time. The UI is not blocked during this step, and the IDE, via J2EEServer module is showing a progess bar.
There is a time out of 2 minutes. Also, the plugin can detect is the target server is stopped in debug mode at a breakpoint. This way, the plugin stops doing administrative request
calls, because these calls would not return.
</p>
</answer>
<!-- <questionid="perf-scale"when="init"> Whichexternalcriteriainfluencetheperformanceofyour program(sizeoffileineditor,numberoffilesinmenu, insourcedirectory,etc.)andhowwellyourcodescales? <hint> Pleaseincludesomeestimates,thereareothermoredetailed questionstoanswerinlaterphasesofimplementation. </hint> </question>
-->
<answer id="perf-scale">
<p>
The Deployment time of J2EE applications depends a lot on the state of the running server (how many applications have been deployed, how many users are using the server, etc).
Since this is a development environment, we expect that the server is per user, and this user can undeploy unecessary applications, in case of performance issues.
</p>
</answer>
<!-- <questionid="perf-spi"when="init"> Howtheperformanceofthepluggedincodewillbeenforced? <hint> Ifyouallowforeigncodetobepluggedintoyourownmodule,how doyouenforcethatitwillbehavecorrectlyandquicklyandwillnot negativelyinfluencetheperformanceofyourownmodule? </hint> </question>
-->
<answer id="perf-spi">
<p>
So far, no foreign code can be plugged to this module.
</p>
</answer>
<!-- <questionid="perf-startup"when="final"> Doesyourmodulerunanycodeonstartup? </question>
-->
<answer id="perf-startup">
<p>
Yes, as a side effect of the fact that the servers have to be registered. Database registration is done in a lazy manneer.
</p>
</answer>
<!-- <questionid="perf-wakeup"when="final"> Doesanypieceofyourcodewakeupperiodicallyanddosomething evenwhenthesystemisotherwiseidle(nouserinteraction)? </question>
-->
<answer id="perf-wakeup">
<p>
The is one optional wakeup thread whenever the user has decided to view the local application server log file. As soon as the log viewer dialog is closed, the thread is stopped.
</p>
</answer>
<!-- <questionid="resources-file"when="final"> Doesyourmoduleuse<code>java.io.File</code>directly? <hint> NetBeansprovidealogicalwrapperoverplainfilescalled <code>org.openide.filesystems.FileObject</code>that providesuniformaccesstosuchresourcesandisthepreferred waythatshouldbeused.Butofcoursetherecanbesituationswhen thisisnotsuitable. </hint> </question>
-->
<answer id="resources-file">
<p>
java.io.File is used for accessing the application server log file, as well adn the default-web.xml file to configure the HTTP monitor tool.
All other resources are accessed via the NetBeans APIS.
</p>
</answer>
<!-- <questionid="resources-layer"when="final"> Doesyourmoduleprovideownlayer?Doesitcreateanyfilesor foldersinit?Whatitistryingtocommunicatebythatandwithwhich components? <hint> NetBeansallowsautomaticanddeclarativeinstallationofresources bymodulelayers.Moduleregisterfilesintoappropriateplaces andothercomponentsusethatinformationtoperformtheirtask (buildmenu,toolbar,windowlayout,listoftemplates,setof options,etc.). </hint> </question>
-->
<answer id="resources-layer">
<p>
Yes the module has it's own layer file for declaring the resource templates, the online help system, and some J2EE Server specific configuration for a few factories.
<!-- <questionid="security-policy"when="final"> Doesyourfunctionalityrequiremodificationstothestandardpolicyfile? <hint>Yourcodemightpasscontroltothird-partycodenot comingfromtrusteddomains.Thiscouldbecodedownloadedoverthe networkorcodecomingfromlibrariesthatarenotbundled withNetBeans.Whichpermissionsneedtobegrantedtowhichdomains?</hint> </question>
-->
<answer id="security-policy">
<p>
no
</p>
</answer> <!-- <questionid="exec-ant-tasks"when="impl"> Doyoudefineorregisteranyanttasksthatothercanuse? <hint> Ifyouprovideananttaskthatuserscanuse,youneedtobevery carefulaboutitssyntaxandbehaviour,asitmostlikelyformsan APIforendusersandasthereisalotofendusers,theirreaction whensuchAPIgetsbrokencanbeprettystrong. </hint> </question>
-->
<answer id="exec-ant-tasks">
<p>
The app server plugin registers the Sun Application Server 8.1 ANT tasks that are documented under http://docs.sun.com/source/819-0079/dgdeploy.html
</p>
</answer>
</api-answers> <!-- Copy this above the </api-answers> tag! -->
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.33 Sekunden
(vorverarbeitet am 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.