BEA WebLogic Server 7 Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Servidores BEA WebLogic Server 7. EJB Development Using Borland JBuilder 8 and BEA WebLogic [it] Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 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
Vista de página 0
1 2 3 4 5 6 ... 62 63

Resumo do Conteúdo

Página 1 - December 2002

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

Página 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

Página 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

Página 4 - Introduction

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 12

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

Página 13

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 21

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

Página 22

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

Página 23 - Working with entity beans

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

Página 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: <

Página 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

Página 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

Página 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

Página 28

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

Página 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

Página 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

Página 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

Página 32

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

Página 33

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

Página 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

Página 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

Página 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

Página 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

Página 38 - None>

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

Página 39

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 48 - Create a Message Driven Bean

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

Página 49

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

Página 50 - Test the MDB

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

Página 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

Página 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

Página 53 - Troubleshooting

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

Página 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

Página 55

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

Página 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

Página 57

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

Página 58

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

Página 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

Página 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

Página 61

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

Página 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

Página 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

Comentários a estes Manuais

Sem comentários