There came a situation where I wanted to work with two JDevelopers simultaneously and start two different applications in two JDEVs. (Both of them have to in separate installation location, else it will create a problem because of system directory).
Now, when we want to start WLS in JDEV, only the first one will be started and the other one fails with an exception of port conflict. Until few days back, $1million dollar question was how to change the integrated WLS port number?
So, heres the answer after some R&D. In the view menu, click on "Application Server Navigator". Right click on Integrated Weblogic server.
1) If it is the first time that you are trying to start the server, then there is a menu "Create Default Domain". If you click on this, a window will be displayed where it asks for the preferred port number. Change it here.
2) If the domain is already created, then click on Properties and change the preferred port number.
Again, if you want to change the port before starting JDEV from the file system, then goto $JDEV_USER_HOME/systemxxx/o.j2ee and open the file adrs-instances.xml and change the http-port in the startup-preferences:
<hash n="startup-preferences">
<value n="http-port" v="7111"/>
</hash>
Note 1: adrs-instances.xml will be created ONLY after you create the default domain.
Note 2: systemxxx - refers to system.<JDEV version> like system.11.1.1.3.56.59 for PS2.
Note 3: $JDEV_USER_HOME - in windows - would be C:\Documents and Settings\[user_name]\Application Data\JDeveloper"
Now, you can run multiple Integrated WLS simultaneously. But please be aware that running more than one WLS server will degrade system performance.