Borland Software JBUILDER 2005 Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Manuais de software Borland Software JBUILDER 2005. Borland Software JBUILDER 2005 User's Manual [en] [es] Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 132
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes

Resumo do Conteúdo

Página 1 - JBuilder

JBuilder® 2005Developing Applications for J2EE™ Servers

Página 2

4 Developing Applications for J2EE ServersDeveloper support and resourcesUsenet newsgroupsThe following Usenet groups are devoted to Java and related

Página 3 - Contents

94 Developing Applications for J2EE ServersUsing JBuilder with TomcatTo view Tomcat configurations,1 Choose Enterprise|Configure Servers. The Configur

Página 4

Chapter 10: Using JBuilder with Tomcat 95Selecting Tomcat as your project’s web serverIf you’d like more information about Tomcat or would like to run

Página 5 - Building J2EE modules 115

96 Developing Applications for J2EE ServersRunning your servlet or JSP with TomcatRunning your servlet or JSP with TomcatBefore you run your web appli

Página 6

Chapter 10: Using JBuilder with Tomcat 97Running your servlet or JSP with TomcatChanging Tomcat’s port numberOccasionally, you may run into a problem

Página 7 - Introduction

98 Developing Applications for J2EE ServersRunning your servlet or JSP with TomcatDebugging JSPs with Tomcat 4.1Tomcat 4.1 does not support JSP debugg

Página 8

Chapter 11: Editing J2EE deployment descriptors 99Chapter11Chapter11Editing J2EE deploymentdescriptorsJBuilder has a Deployment Descriptor Editor, als

Página 9 - Borland newsgroups

100 Developing Applications for J2EE ServersDisplaying the DD Editormodules and editing the deployment descriptors, see Chapter 12, “Integrating with

Página 10 - Reporting bugs

Chapter 11: Editing J2EE deployment descriptors 101Standard and server-specific pagesexpandable. When this node is expanded, you can see the entity be

Página 11 - Enterprise Edition

102 Developing Applications for J2EE ServersAdding to and deleting from a deployment descriptorClick any server-specific tabs and fill in each of thes

Página 12

Chapter 11: Editing J2EE deployment descriptors 103Validating a deployment descriptor entryA new page appears in the content pane that corresponds to

Página 13

Chapter 2: Programming for the Java 2 Platform, Enterprise Edition 5Chapter2Chapter 2Programming for the Java 2 Platform,Enterprise EditionThe Java™ 2

Página 14

104 Developing Applications for J2EE ServersValidating a deployment descriptor entryIf errors or warnings exist, they will appear on a Validation page

Página 15 - How JBuilder can help

Chapter 12: Integrating with Enterprise Information Systems 105Chapter12Chapter 12Integrating with EnterpriseInformation SystemsThe J2EE Connector arc

Página 16 - Other J2EE technologies

106 Developing Applications for J2EE ServersCreating a connector module node in the project paneTo begin creating a connector module node that contain

Página 17 - Learning about J2EE

Chapter 12: Integrating with Enterprise Information Systems 107Creating a connector module node in the project pane3 Specify a name to identify the ne

Página 18

108 Developing Applications for J2EE ServersCreating a connector module node in the project pane7 Select which Connector specification you are using f

Página 19

Chapter 12: Integrating with Enterprise Information Systems 109Creating a connector module node in the project pane4 Specify a name to identify the ne

Página 20 - Client-server applications

110 Developing Applications for J2EE ServersViewing the connector module deployment descriptors3 Click Next to go to the next page:4 Specify the name

Página 21 - Stand-alone clients

Chapter 12: Integrating with Enterprise Information Systems 111Editing the resource adapter descriptors Resource Adapter Version: Specify the version

Página 22 - Java client calling EJBs

112 Developing Applications for J2EE ServersEditing the resource adapter descriptorsFor more information about resource adapters and the J2EE Connecto

Página 23 - Business to business

Chapter 12: Integrating with Enterprise Information Systems 113Editing the resource adapter descriptorsConfiguration Property pageConnector modules ha

Página 24

6 Developing Applications for J2EE ServersWhy are J2EE applications desirable?was “served up” by a server. This approach initially promised improved s

Página 25 - Configuring the target server

114 Developing Applications for J2EE ServersServer-specific pagesServer-specific pagesAs you work with pages in the Connector Module DD Editor, you ma

Página 26 - JBuilder Developer

Chapter 13: Building J2EE modules 115Chapter13Chapter 13Building J2EE modulesThis chapter presents specific information about packaging J2EE modules i

Página 27

116 Developing Applications for J2EE ServersSetting module build propertiesConnector Module wizard. Compiling a connector module creates a RAR (Resour

Página 28 - Adding a service pack

Chapter 13: Building J2EE modules 117Adding custom file types A connector module RAR by default contains only descriptors. Classes in the project’s ou

Página 29 - The created libraries

118 Developing Applications for J2EE ServersSample build scenariosTo select file types to be copied over to the project’s output path and the module d

Página 30 - Selecting a server

Chapter 13: Building J2EE modules 119Sample build scenariosEJB JAR without EJB designer XML descriptorsFollow these steps:1 Right-click the EJB module

Página 31

120 Developing Applications for J2EE ServersSample build scenariosEAR with custom filesThis sample adds .dat files along with the archives and descrip

Página 32 - Setting up JDBC drivers

Chapter 13: Building J2EE modules 121Improving module build performanceImproving module build performanceTo improve module build performance, try thes

Página 33 - /lib/ext directory

122 Developing Applications for J2EE Servers

Página 34

Index 123Aapplication client modules 99Application Module wizard 11application modules 11, 99application servers 19Borland target 19configuring target

Página 35

Chapter 2: Programming for the Java 2 Platform, Enterprise Edition 7Why are J2EE applications desirable?This expanded diagram shows you the various co

Página 36

124 Developing Applications for J2EE ServersDeveloper Support 3disabled EJB wizards 24distributed applicationsCORBA 45VisiBroker ORB 45wizards 57docum

Página 37

Index 125Nnewsgroups 3Borland and JBuilder 3public 4Usenet 4OORB (Object Request Broker) 45default 47, 51properties 47, 50setting up 47, 51OrbixWeb OR

Página 38

126 Developing Applications for J2EE Serversweb serversconfiguring 19Tomcat 93WebLogic 66DD Editor 67setting EJBC options 67target application server

Página 39

8 Developing Applications for J2EE ServersWhy are J2EE applications desirable?Benefits of the multi-tier modelThe multi-tier approach adopted by the J

Página 40

Chapter 2: Programming for the Java 2 Platform, Enterprise Edition 9How JBuilder can helpHow JBuilder can helpJBuilder Enterprise Edition has many fea

Página 41

10 Developing Applications for J2EE ServersHow JBuilder can helpmanipulate data from a database so you can build data-aware servlets and JSPs. For inf

Página 42

Chapter 2: Programming for the Java 2 Platform, Enterprise Edition 11Learning about J2EE Extensible Markup Language (XML)Although not really a J2EE te

Página 43 - Changing the management port

12 Developing Applications for J2EE Servers

Página 44

Chapter 3: Creating applications with J2EE technologies 13Chapter3Chapter 3Creating applications with J2EEtechnologiesThe Developing Web Applications,

Página 45

Borland Software Corporation100 Enterprise WayScotts Valley, California 95066-3249www.borland.comRefer to the file deploy.html located in the redist d

Página 46 - Remote deploying

14 Developing Applications for J2EE ServersClient-server applicationsHere’s the diagram from the previous chapter showing the multiple tiers used in m

Página 47 - Remote debugging

Chapter 3: Creating applications with J2EE technologies 15Multi-tier applicationshandle business logic, all on the client tier. You would use JDBC or

Página 48 - Edition 5.2.1 is running

16 Developing Applications for J2EE ServersStand-alone clientsConsumers of dynamic web contentOne type of stand-alone client is a Java application or

Página 49 - Web module workarounds

Chapter 3: Creating applications with J2EE technologies 17Web-centric applicationsWeb-centric applicationsThere are times when your application just d

Página 50 - International issues

18 Developing Applications for J2EE Servers

Página 51 - Using JBuilder’s CORBA tools

Chapter 4: Configuring the target server settings 19Chapter4Chapter 4Configuring the target serversettingsBefore you begin creating enterprise applica

Página 52

20 Developing Applications for J2EE ServersSetting up servers within JBuilderSetting up servers within JBuilderThis is a feature ofJBuilder Developera

Página 53 - -Dvbroker.agent.port=14000

Chapter 4: Configuring the target server settings 21Setting up servers within JBuilderdialog box when not all required values are set or selecting ano

Página 54

22 Developing Applications for J2EE ServersAdding a service packCreating a duplicate configuration to editOnce you’ve created a server configuration,

Página 55

Chapter 4: Configuring the target server settings 23The created librariesThe created librariesWhen you configure the server settings, one or more libr

Página 56 - Configuring the OrbixWeb ORB

iContentsChapter 1Introduction 1Documentation conventions . . . . . . . . . . . . . 1Developer support and resources. . . . . .

Página 57 - Adding a new configuration

24 Developing Applications for J2EE ServersSelecting a serverJBoss 3.x+ JBoss 3.x+ Client: JARs needed to run a client. JBoss 3.x+ Servlet: Used for w

Página 58

Chapter 4: Configuring the target server settings 25Selecting a server To use different servers for different services,1 Select the Modular Services P

Página 59

26 Developing Applications for J2EE ServersSetting up JDBC driversData Source information is persisted in config.xml. DataSource entries are removed w

Página 60

Chapter 4: Configuring the target server settings 27Updating projects with the latest server settings5 Click OK to close the file browser. This displa

Página 61 - _tie classes will be

28 Developing Applications for J2EE ServersUpdating from an earlier version of JBuilderUpdating from an earlier version of JBuilderPrevious versions o

Página 62

Chapter 5: Using JBuilder with Borland servers 29Chapter5Chapter 5Using JBuilder with Borland serversThis chapter explains how to set up and use Borla

Página 63 - Using the CORBA wizards

30 Developing Applications for J2EE ServersConfiguring Borland servers in JBuilder Home Directory: The directory where Borland Enterprise Server AppSe

Página 64 - HTML CORBA Client wizard

Chapter 5: Using JBuilder with Borland servers 31Configuring Borland servers in JBuilder User Name: The name you use to identify yourself to the serve

Página 65 - Use CORBA Interface wizard

32 Developing Applications for J2EE ServersConfiguring Borland servers in JBuilder3 Select the Enable Server option at the top of the dialog box.Check

Página 66

Chapter 5: Using JBuilder with Borland servers 33Configuring Borland servers in JBuilder Partition Name: The name of the partition in which the server

Página 67 - Service packs

iiSetting and viewing IDL build properties . . . . . . . 55Using the CORBA wizards . . . . . . . . . . . . . . 57Sample IDL wizard

Página 68

34 Developing Applications for J2EE ServersMaking the ORB available to JBuilderMaking the ORB available to JBuilderYou use the CORBA node of the Enter

Página 69

Chapter 5: Using JBuilder with Borland servers 35Configurations, partitions, partition services, and J2EE APIsBorland Enterprise Server AppServer Edit

Página 70

36 Developing Applications for J2EE ServersConfigurations, partitions, partition services, and J2EE APIs4 For Borland Enterprise Server 6.0, change th

Página 71

Chapter 5: Using JBuilder with Borland servers 37Configurations, partitions, partition services, and J2EE APIsrun configuration for the partition (Edi

Página 72 - Working in JBuilder

38 Developing Applications for J2EE ServersStarting the configuration or serverStarting the configuration or serverBefore any server related actions (

Página 73 - Starting the server

Chapter 5: Using JBuilder with Borland servers 39Starting the configuration or serverThe libraries to be copied can be set with the Libraries To Deplo

Página 74

40 Developing Applications for J2EE ServersRemote deployingNote By default, all services associated with a partition are started. This could cause the

Página 75 - NAME>:<port number>

Chapter 5: Using JBuilder with Borland servers 41Remote debuggingRemote debuggingBefore you can debug your application remotely, you need to configure

Página 76

42 Developing Applications for J2EE ServersRemote debugging3 Look for the JPDA element and edit attribute values as follows:enable-jpda-debug="tr

Página 77

Chapter 5: Using JBuilder with Borland servers 43Web module workaroundsRemote debugging in JBuilderOnce either edition of the Borland Enterprise Serve

Página 78

iiiChapter 13Building J2EE modules 115J2EE modules . . . . . . . . . . . . . . . . . . . 115Setting module build properties . .

Página 79

44 Developing Applications for J2EE ServersDisplaying the Borland Management Console in JBuilderIf you are working on a named context but have the roo

Página 80

Chapter 6: Using JBuilder’s CORBA tools 45Chapter6Chapter 6Using JBuilder’s CORBA toolsThis chapter explains the CORBA (Common Object Request Broker A

Página 81

46 Developing Applications for J2EE ServersHow JBuilder and the VisiBroker ORB work togetherthe Internet or through local intranets. The VisiBroker OR

Página 82

Chapter 6: Using JBuilder’s CORBA tools 47Setting up JBuilder for CORBA applicationsSetting up JBuilder for CORBA applicationsThis section explains ho

Página 83 - Deploying

48 Developing Applications for J2EE ServersSetting up JBuilder for CORBA applicationsConfiguring VisiBroker stand-aloneFollow the steps in this sectio

Página 84 - WebSphere Server 4.0

Chapter 6: Using JBuilder’s CORBA tools 49Setting up JBuilder for CORBA applications5 The Library For Projects field defines the library location of t

Página 85 - Enabling remote debugging

50 Developing Applications for J2EE ServersSetting up JBuilder for CORBA applications2 Make sure VisiBroker is selected as your IDL compiler.3 Enter t

Página 86 - WebSphere Single Server 4.0

Chapter 6: Using JBuilder’s CORBA tools 51Setting up JBuilder for CORBA applications4 The Path For ORB Tools field allows JBuilder to access ORB tools

Página 87 - -Djava.compiler=NONE

52 Developing Applications for J2EE ServersSetting and viewing ORB build propertieslocation of the ORB tools. The library is necessary for compiling t

Página 88

Chapter 6: Using JBuilder’s CORBA tools 53Setting and viewing ORB build propertiesMake sure the IDL Compiler field is set to VisiBroker or VisiBroker

Página 90

54 Developing Applications for J2EE ServersSetting and viewing ORB build properties Set the Java2IIOP Strict Portable Code Generation (Java2IIOP) opti

Página 91

Chapter 6: Using JBuilder’s CORBA tools 55Setting and viewing IDL build properties3 Choose the Paths node in the Project Properties dialog box. Make s

Página 92

56 Developing Applications for J2EE ServersSetting and viewing IDL build propertiesThe tie mechanism offers an alternative when it is not convenient o

Página 93

Chapter 6: Using JBuilder’s CORBA tools 57Using the CORBA wizards3 Click the OK button to set the options to be used by the VisiBroker idl2java compil

Página 94

58 Developing Applications for J2EE ServersUsing the CORBA wizardsThe CORBA Client Interface wizard looks like this:CORBA Server Interface wizardThe C

Página 95 - Deploying locally

Chapter 6: Using JBuilder’s CORBA tools 59Using the CORBA wizardsThe Enter Application Details page of the HTML CORBA Client wizard looks like this. T

Página 96

60 Developing Applications for J2EE ServersUsing the CORBA wizardsThe first page of the Use CORBA Interface wizard, where you choose whether to use an

Página 97 - JSP debugging

Chapter 7: Using JBuilder with BEA WebLogic servers 61Chapter7Chapter 7Using JBuilder with BEA WebLogicserversThis chapter explains how to use to set

Página 98

62 Developing Applications for J2EE ServersConfiguring JBuilder for WebLogic serversdialog box when not all required values are set or selecting anoth

Página 99 - Using JBuilder with Tomcat

Chapter 7: Using JBuilder with BEA WebLogic servers 63Configuring JBuilder for WebLogic servers Web Browser Path: Specify the path and file name of th

Página 100 - <jbuilder>/

Chapter 1: Introduction 1Chapter1Chapter 1IntroductionDeveloping Applications for J2EE Servers introduces you to the various technologies that make up

Página 101

64 Developing Applications for J2EE ServersSelecting a serverCreated librariesWhen you configure JBuilder to target a WebLogic server, required librar

Página 102 - Stopping Tomcat

Chapter 7: Using JBuilder with BEA WebLogic servers 65Selecting a serverYou can click the Help button on this page for assistance using this page to s

Página 103 - Changing Tomcat’s port number

66 Developing Applications for J2EE ServersWorking in JBuildermeans the archive is exploded into a directory as its contents are deployed instead.If y

Página 104

Chapter 7: Using JBuilder with BEA WebLogic servers 67Starting the serverCreating WebLogic entity beans in JBuilderJBuilder’s EJB designer has support

Página 105 - Editing J2EE deployment

68 Developing Applications for J2EE ServersRemote deploying3 Select Server from the Type drop-down list.4 In the Name field, enter a name, such as Ser

Página 106 - Displaying the DD Editor

Chapter 7: Using JBuilder with BEA WebLogic servers 69Remote deploying Deploying from the project pane:a Right-click the module you want to deploy in

Página 107

70 Developing Applications for J2EE ServersRemote deploying5 Select the Map Project EJB Modules At Runtime option:6 Choose OK to close the dialog box.

Página 108

Chapter 7: Using JBuilder with BEA WebLogic servers 71Remote debuggingA few WebLogic Server properties, such as field groups and other CMP WebLogic-sp

Página 109

72 Developing Applications for J2EE ServersUpdating projects with the latest server settings4 Launch the WebLogic server with debug parameters. To do

Página 110 - 4 Choose OK

Chapter 8: Using JBuilder with IBM WebSphere servers 73Chapter8Chapter 8Using JBuilder with IBM WebSphereserversThis chapter explains how set up and u

Página 111 - Information Systems

2 Developing Applications for J2EE ServersDeveloper support and resourcesJBuilder is available on multiple platforms. See the following table for a de

Página 112 - 2 Click Next to see Step 2:

74 Developing Applications for J2EE ServersConfiguring JBuilder for WebSphere servers4 If you want to change any of the settings, click the ellipsis (

Página 113

Chapter 8: Using JBuilder with IBM WebSphere servers 75Selecting a server Add An Administrative Scripting Item To The Enterprise Menu: Checking this c

Página 114

76 Developing Applications for J2EE ServersStarting the serverthe WebSphere 4.0 Advanced Edition only. If you are using one edition of WebSphere 4.0 a

Página 115

Chapter 8: Using JBuilder with IBM WebSphere servers 77DeployingBy default in WebSphere 5.x, the stdout and stderr streams are redirected to log files

Página 116 - Connector1 RAR

78 Developing Applications for J2EE ServersDeploying8 Set the Host field to the host name where the Deployment Manager is running.9 Set the Port field

Página 117

Chapter 8: Using JBuilder with IBM WebSphere servers 79Enabling remote debuggingYou can also deploy a module to a remote server from JBuilder’s projec

Página 118 - Authentication Mechanism page

80 Developing Applications for J2EE ServersEnabling remote debugging2 Edit the launch script and add the following remote debug parameters to the java

Página 119 - Security Permission page

Chapter 8: Using JBuilder with IBM WebSphere servers 81Container-managed persistence (CMP) 1.1 and 2.0 in WebSphere 5.x5 In the dialog box that appear

Página 120 - Server-specific pages

82 Developing Applications for J2EE ServersContainer-managed persistence (CMP) 1.1 and 2.0 in WebSphere 5.xTo change the default CMP mapping behavior

Página 121 - Building J2EE modules

Chapter 9: Using JBuilder with JBoss servers 83Chapter9Chapter 9Using JBuilder with JBoss serversThis chapter explains how set up and use the JBoss ap

Página 122 - Class and resource filters

Chapter 1: Introduction 3Developer support and resourcesContacting Borland Developer SupportBorland offers several support programs for customers and

Página 123 - Adding custom file types

84 Developing Applications for J2EE ServersSelecting a server5 Click the Custom tab to view fields unique to the server. Change or fill in these field

Página 124 - Sample build scenarios

Chapter 9: Using JBuilder with JBoss servers 85Creating a JBoss service module2 Decide whether you are creating an empty JBoss service module that you

Página 125 - WAR with custom file types

86 Developing Applications for J2EE ServersCreating a JBoss service module3 Click Next.4 Specify a name to identify the new module in the Name field.5

Página 126 - EAR with custom files

Chapter 9: Using JBuilder with JBoss servers 87Creating a JBoss service module4 Specify a name to identify the new JBoss service module in the Name fi

Página 127 - Web modules

88 Developing Applications for J2EE ServersEditing the JBoss service module deployment descriptorEditing the JBoss service module deployment descripto

Página 128

Chapter 9: Using JBuilder with JBoss servers 89Deploying locally3 Select Server from the Type drop-down list.4 In the Name field, enter a name, such a

Página 129 - Index 123

90 Developing Applications for J2EE ServersDeploying exploded web modulesBoth the Server Deployment dialog box and the Deployment page of the Project|

Página 130

Chapter 9: Using JBuilder with JBoss servers 91JSP debuggingJSP debuggingTomcat or Jetty do not support JSP source debugging, but you can remedy this

Página 131 - Index 125

92 Developing Applications for J2EE Servers

Página 132

Chapter 10: Using JBuilder with Tomcat 93Chapter10Chapter 10Using JBuilder with TomcatWeb Development is afeature of JBuilderDeveloper andJBuilder Ent

Comentários a estes Manuais

Sem comentários