Está en la página 1de 16

Configure application and Weblogic

Configure JDBC on WebLogic


1. Open web browser and type http://localhost:[pornunber]/console and login
using username and password which defined before.

2. Click Lock & Edit button on the left menu.

3. Configure jdbc. Navigate to Service -> Data Sources -> JDBC

Aprisma - Training Center

Page | 1

4. Click New button to add a configuration

5. Fill the following fields which is marked. Find the complete information on
configuration.txt. Click Next when finish

Aprisma - Training Center

Page | 2

Aprisma - Training Center

Page | 3

6. Fill the following fields which is marked. Find the complete information on
configuration.txt. Click Next when finish

7. Check the AdminServer. And Finish

Aprisma - Training Center

Page | 4

Aprisma - Training Center

Page | 5

8. Click Active Changes

Configure Appllication
Confiugre applicationContext resources.xml

Confiture microstream properties

Aprisma - Training Center

Page | 6

Configure startWeblogic.sh
Steps:
1. Find webLogic.sh in Training folder project and configure.
Configure 5 things on startWeblogic.sh:
1. DOMAIN_HOME
Find the domain home which created before.
2. TMP_HOME
Create a folder under home folder for temporary data.
3. JAVA_CACHE
Using a folder that user has permission to read and write on. (e.g: user
home folder)
4. Remote Debugging
Configure port for remote debugging. Type the following configuration:
JAVA_OPTIONS="-Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,address=availableport,server=y,susp
end=n"
Note, search the available port using nc command, such as explained
above.
5. TRAINING_HOME
Location of Training project
6. Folder location
Domain folder location

Aprisma - Training Center

Page | 7

Follow these line as figured bellow:

2. Copy startWebLogic.sh to domain_folder/bin. (if necessary, backup the


existing webLogic.sh)

Aprisma - Training Center

Page | 8

Deploy to Weblogic
In this step, deploy as following :
1. Style.jar (find under dist folder on Training project)
2. Training-client.jar (find under dist folder on Training project)
3. Training-server.jar (find under dist folder on Training project)
4. Webapp (Webapp folder itseft, no need to export as war file)
Install libraries
Follow these steps to do webapp deployment:
1. Click Lock & Edit button on the left menu

2. Click Deployment -> Install and see the following step. Find the jar file.
Click Next and Finish

Aprisma - Training Center

Page | 9

3. Do the same thing to training-client.jar and training-server.jar

Aprisma - Training Center

P a g e | 10

Install Webapp as an application


Follow these steps to do webapp deployment:
1. Click Lock & Edit button on the left menu

2. Click Install and see the following step. Find the location of webapp folder,
select, click next.

Aprisma - Training Center

P a g e | 11

3. Select Install this deployments as an application. Click Next and Finish


after this step

Aprisma - Training Center

P a g e | 12

Test
Type URL http://localhost:[portNumber]/

Aprisma - Training Center

P a g e | 13

Remote Debbuging
Developers need to have an "eye" to see the way of code, called debug. In this
case, server and IDE (Eclipse) stand on different environment. Such as a debug is
called Remote Debugging.
JVM has a debugging feature to help developer to do debugging activities.
Developers need to configure the JVM with parameter when execute the Java
application:
Xdebug
-Xnoagent
-Xrunjdwp:transport=dt_socket,address={availableport},server=y,suspend=n
Eclipse has a debugging visual which will help developer to visualize the information
that given by JVM. In order to do this, configure Eclipse with Remote Debugging, and
connect to such port that was configured in JVM parameter.

Server Side (JVM) Configuration


See the configuration in startWeblogic.sh that explained before.

Client Side (JVM) Configuration


In case of this application development, there are 2 environment: client and server.
Server environment has already been configured on startWeblogic.sh. Now,
configure client environment to debug Applet application. Follow the instruction
below:
1. Open ControlPanel on .{jdk_installation_path}/bin/ControlPanel.sh
training case, the path is on /opt/jdk6/bin/ControlPanel.sh)

(In

2. Similar to server configuration, fill the following snippet to Runtime


Parameters
-Xdebug
-Xnoagent
-Xrunjdwp:transport=dt_socket,address={availableport},server=y,suspend
=n

Aprisma - Training Center

P a g e | 14

Eclipse Configuration
To do remote debugging, we need to configure on server and IDE itself. The server
has a role as a listener and IDE as a dispatcher. follow these steps to configure the
IDE (Server has been configure before a long with startWeblogic.sh):
1. Open debug configurations

2. Click Remote Java Application and create new configuration. Consider the
port configuration which is configured before along with startWebLogic.sh.

Aprisma - Training Center

P a g e | 15

3. Click Apply and Debug

Aprisma - Training Center

P a g e | 16

También podría gustarte