BEA WebLogic Server 7 Manuale Utente

Navigare online o scaricare Manuale Utente per Server BEA WebLogic Server 7. EJB Development Using Borland JBuilder 8 and BEA WebLogic [it] Manuale Utente

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 0
1
EJB
Development Using
Borland
®
JBuilder
®
8 and
BEA WebLogic Server
7.0
Jumpstart development, deployment,
optimization, and debugging EJB
A Borland White Paper
by Sudhansu Pati, Systems Engineer
December 2002
Vedere la pagina 0
1 2 3 4 5 6 ... 62 63

Sommario

Pagina 1 - December 2002

1EJB™ Development UsingBorland® JBuilder® 8 andBEA WebLogic Server™ 7.0 Jumpstart development, deployment,optimization, and debugging EJB™ A Borland W

Pagina 2 - Contents

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.010Make the projectMake the project (Ctrl +Shift + F9). Note: After the Make, t

Pagina 3

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.011Run WebLogic Server™ within JBuilder®Click on the Run Project icon from the

Pagina 4 - Introduction

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.012JBuilder starts another tab called WebLogic Application Server 7.x Enterpris

Pagina 5 - Working with session beans

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.013From WebLogic Server Console, expand mydomain, expand Deployments, and click

Pagina 6

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.014Remote deploymentThis section is an optional step and provides tips on how t

Pagina 7

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.015Figure 8: WebLogic 7.x Deploy Settings window for deploying to Remote WebLog

Pagina 8 - Deploy and run session bean

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.016The EJB Test Client Wizard pops up. In EJB Test Client Wizard–Step 1 of 3, m

Pagina 9 - Properties window. Click OK

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.017Expand the package com.borland.demo.ejb and change the main() method ofTestS

Pagina 10 - Make the project

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.018Figure 10: Test Client running within JBuilder and showing outputs from EJB

Pagina 11 - to WebLogic

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.019Optimizing EJB™ applicationsJBuilder 8 Enterprises has out-of-the-box integr

Pagina 12

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.02ContentsIntroduction...

Pagina 13

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.020Note: During Optimizeit installation, the installer automatically detects JB

Pagina 14 - Remote deployment

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.021Select Profiler from the combo box and click OK twice. WebLogic 7.x starts w

Pagina 15 - Test the session bean

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.022To attach Optimizeit Thread Debugger with WebLogic Server 7.x, click Run -&g

Pagina 16

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.023There are lot of features available in Optimizeit Suite, which helps to dete

Pagina 17 - Development Using Borland

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.024Import a database schemaRight-click on the editor pane. Click Import Schema

Pagina 18 - Client = Testing Successful

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.025Figure 15: JBuilder Database Schema Provider—to create entity beans from dat

Pagina 19 - applications

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.026To change the package name, click the entity bean Employee, click classes an

Pagina 20

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.027Figure 16: Visual EJBs in JBuilder displaying the fields and methods of enti

Pagina 21

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.028 ex.printStackTrace(); }catch (Exception ex){ ex.printStackTrac

Pagina 22

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.029Figure 17: Creating an EJB Reference visually using JBuilder deployment desc

Pagina 23 - Working with entity beans

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.03Deploy and run EJBs in WebLogic...

Pagina 24 - Import a database schema

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.030Name: Start WebLogic 7.0 [Users can enter any name here]Build target: <

Pagina 25 - Generate an entity bean

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.031From WebLogic Server Console, expand Services -> expand JDBC.® Click Conn

Pagina 26 - Create a session bean

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.032Click Connections from the right window, which is under Configuration tab. P

Pagina 27

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.033Note: Once you move myserver from Available to Chosen, you can check the JDa

Pagina 28

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.034Figure 21: WebLogic Console window to creating a data sourceClick Targets -&

Pagina 29

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.035If WebLogic is not running within JBuilder, start it by clicking Run Project

Pagina 30

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.036Run the test clientFrom the JBuilder toolbar, click the Run Project icon. Cl

Pagina 31

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.037Note: For this exercise, let’s take the exercise created in the previous cha

Pagina 32

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.038Name: RemoteDebugBuild target: <None>Type: ServerClick Debug tab fro

Pagina 33

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.039Figure 23: Runtime Configuration Properties window with remote debug paramet

Pagina 34 - Test the data source

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.04IntroductionBorland® JBuilder® Enterprise is a comprehensive set of award-win

Pagina 35 - Test the entity bean

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.040Assign breakpointsAssign breakpoints to the entity bean and session bean to

Pagina 36 - Remote debugging of EJBs

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.041Figure 24: WebLogic Server 7.x running in remote mode outside of JBuilderNot

Pagina 37 - Provide remote debug options

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.042Figure 25: JBuilder opened a connection to remote WebLogic ServerNote: JBuil

Pagina 38 - None>

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.043Figure 26: JBuilder remotely debugging running EJBs. Debugger stopped at the

Pagina 39

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.044The required configurations are as follows:• Create a Connection Factory•

Pagina 40 - Assign breakpoints

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.045Figure 27: Creating a JMS Connection Factory using WebLogic Server ConsoleLe

Pagina 41 - See Figure 25 for details

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.046Make sure that you create the specified directory, [i.e. E:\bea\DEMO JMS Fil

Pagina 42 - See Figure 26 for details

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.047Leave other defaults. Click Targets tab and select myserver as Target.See Fi

Pagina 43

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.048Leave other defaults. Click Create. See Figure 30 for details.Figure 30: Cre

Pagina 44 - Create a Connection Factory

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.049Enter the following values in the Bean Properties window: Name: TestJMSTran

Pagina 45 - Create a JMS Store

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.05Working with session beansFor this exercise, let’s create a simple session be

Pagina 46 - Create a JMS Server

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.050Right-click the MDB TestJMS and click View bean source. Change the onMessage

Pagina 47 - Create a Queue

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.051Enter the name of the class as Client. Change the contents of Client.java in

Pagina 48 - Create a Message Driven Bean

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.052 QueueConnection qConn = qConnFact.createQueueConnection(); QueueSessi

Pagina 49

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.053Figure 32: JBuilder showing successful execution of MDB in WebLogic Server r

Pagina 50 - Test the MDB

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.054Error 1: NameNotFoundException from test clientError description javax.namin

Pagina 51 - Client.java

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.055When did this happenI have deployed my EJB JAR file successfully. When I run

Pagina 52 - See Figure 32 for details

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.056Solution Go back to JBuilder message pane and check the error messages from

Pagina 53 - Troubleshooting

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.057If the error message is:<Error> <JDBC> <001060> <Cannot

Pagina 54

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.058Solution Go back to the JBuilder message pane and see the error message from

Pagina 55

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.059SolutionStart the JDataStore Server. Click Start -> All Programs -> JB

Pagina 56

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.06Figure 1: JBuilder EJB Module Wizard to create a visual EJB hosting environme

Pagina 57

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.060Error 7: EJB JAR deployment failedError descriptionException:weblogic.manage

Pagina 58

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.061Error 8: WebLogic remote server failed to startError description <Server

Pagina 59

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.062When did this happenThe error occurred when I tried to attach JBuilder with

Pagina 60

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.063JBuilder white papershttp://community.borland.com/all/0,1435,c|3|13,00.htmlJ

Pagina 61

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.07Figure 2: Creating a session bean visually using JBuilder visual EJB designer

Pagina 62 - Useful links

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.08Deploy and run session beanCreate a runtime configuration JBuilder allows use

Pagina 63 - Feedback and suggestions

EJB™ Development Using Borland® JBuilder® 8 and BEA WebLogic Server™ 7.09Figure 3: Runtime configuration to run WebLogic within JBuilderClick OK and n

Commenti su questo manuale

Nessun commento