One of the cool features in JDeveloper that only gets used now and then is the ability to configure JDeveloper to use a different install of weblogic when running internally. It could also be the case you need a custom configured Domain to support your application, for example when doing buffered web services.
To configure a server connection you need to go to Tools -> Preferences -> Run then Edit Server instances.
We are going to create a new configuration, so press the New button and you should see a screen as follows (you could of course just edit the default server configuration and this would affect the entire IDE rather than on a application by application basis):
Now by default JDeveloper assumes that you are try to connect to a remote weblogic instance. So you could just define a new connection to this server, big green plus top right, and you would be ready to go at this point. For the purposes of this blog we are going to assume that you want to let JDeveloper do the management of a server on the current machine. So we tick "Let JDeveloper manage...." and provide the location of the wls_server and where the domain in placed. You do still need to create a valid connection to where the server will start up to; but you obviously wont be able to test this server connection until after you have let JDeveloper start the instance.
The final step is to configure the listener port, in most cases you should just set this to what is configured in your domain:
So you can now assign this application server instance to a particular application in jdeveloper. First bring up the properties for the application:
Then select the custom configuration that we created before. Note you can create new configurations here also; but I showed the preferences way of doing things for completeness.
Now anything you Run/Debug/Profile/Test from inside of this application will use this server instance.