OSBOracle-Service-Bus安装配置手册_第1页
OSBOracle-Service-Bus安装配置手册_第2页
OSBOracle-Service-Bus安装配置手册_第3页
OSBOracle-Service-Bus安装配置手册_第4页
OSBOracle-Service-Bus安装配置手册_第5页
已阅读5页,还剩58页未读 继续免费阅读

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Orac1eServiceBus

安装配置手册

目录

IOracIeServiceBus安装

20rac1eServiceBus域配置

3开发环境准备

3。IServer配置

3.2建立OracleServiceBus配置项目及项H

3。3建立记Log的Java项I

3.4配置WebLogicServei•的连接池(记1盘要用)

3.5配置Queue(对帐交易中用到)

3。6建立对SocketTransport的支持

3。7电子支付平台与码头接口配置

4接口说明

4.1接口需求文档

4。2OracIeServiceBus接I1描述

5服务配置过程及测试

5.1工行实时扣费及划帐服务配置.(ICBCServices

5。2工行对帐服务配置(BatchServices)

5o3电子支付平台到码头服务配置(SCTScrvice)

6使用和对接

1Orac1eServiceBus安装

点击osblO3_weblogic】。3_win32。exe

建立BEAHome

选择Custom方式,并选择所有

ChooseInstallType

Selectthetypeofinstallationyouwishtoperform.ORACLG,

OTypical

Installthefollowingproduct(s)andcomponent(s):

♦WebLogicServer

♦Workshop

•OracleServiceBus

⑥Custom

Choosesoftwareproductsandcomponentstoinstallandperformoptional

configuration.

PreviousNext

racleInstalraciiceBus

ChooseProductsandComponents

Selecttheproductsandcomponentsyouwishtoinstall.ORACLE,

Grayedselectionsarealreadyinstalled.Double-clickheadingstorevealorcolapseselections.

0口WebLogicServer

0CoreApplicationServer

0AdministrationConsole

0ConfigurationWizardandUpgradeFramework

0Web2.0HTTPPub-SubServer

0WebLogicJDBCDrivers

0ThrdPartyJDBCDrivers

0WebLogicServerClients

0WebLogicWebServerPlugnsApproximate[nstaledSize*

0UDDIandXquerySupportHighlighteditem:3.3MB

0ServerExamples

Commonartifacts:14.6MB

七|

0WorkshopTotalofallselecteditems:1,099.6

0WorkshopforWeblog

*Instalerreqjresfreediskspace

\A/nrkchnnDiinbimAFrAmpiAmrk□

]Eapproximately2xthistotal

PreviousNext

选择安装JDK

InstaracilerviceBus1

InstallEclipseLocationOptions

ProvidetheEclipseinstalloptions.ORACLE,

E浜

racnstai二r

ChooseProductInstallationDirectories

ProvidethedirectorieswhereyojwishtoinstallORACLe,

OracleProducts.

PreviousNext

InstallWindowsService

InstallWindowsServicetomakendkatedfunctionalityORACLE,

availableaftermachinereboot.

NodeManagerServics

OYes

Installnow.Thisenablesremotestartaid

healthmonitoringofManagedServers.

NodeManagerListenPott:5556

©No

Donotinstalnow.Seeproduct

documentationforpost-installregistration

ofNodeManagerasaService.

Previous

OracleInstaller-Orac15X:

ChooseShortcutLocation

TheinstallercreatesshortcutstcBEAcomponents,samples,andtools.AsaORACLE-

userwithadministrativeprivileges,youcanspecifywheretheseshortcutsarecreated.

SelecttheStartMenjfolderinwhichyouwanttocreateBEAshcrtcuts:

@"AllUsers"StartMenufolder(recommended)

Forsomeinstallations,thissettingmayknittheautomaticcreation

ofservershortcutsforuserswithoutadministrativeprivileges.

Refeztothedocumentationformoreinformation.

OLocaluser'sStartMenufolder

Selectthisoptionfyouneedtoensurethatothezprofies

regisreredonthismachineMlnothaveaccesstotheseshortcuts.

PreviousNext

rx

InstallationSummary

ThefollowingProductsandJDKswlbeinstalled.ORACLe,

IWebLogicServerDescription_____________________________________________

)]CoreApplicationServerImplementsJ2EEtechnologies,Webservices,andotherleading

_JAdministrationConsoleInternetstandards,toprovideareliableframeworkforhighly

JjConfigurationWizardandUpgradeFavailable,scalable,andsecureapplications.

jWeb2.0HTTPPub-SubServer

jWi»hlngir1DRCDriverv

JThirdPartyJDBCDrivers

1WebLogicServerClient;

1WebLogicWebServerPlugins

i1UDOIandXquerySupport

]ServerExamples

IWorkshop

ApproximateInstalledSize

1WorkshopforWebLogic

1WorkshopRuntimeFrameworkHighlighteditem:396.2MB

GIETotalofallselecteditems:1,412.9MB

PreviousMext

2OracleServiceBus域配置

启动配置向导configurationwizard(program一>OracleWebLogic—>WebLogi

cServer10gr3—>Too1s—>ConfigurationWizard)

flOracleTebLocicCoafic^iirationTiz<rd-ln|x

Welcome

ChoosebetweencreatingendextendingademanBasedonyoursdecUon,ORACLG,

theConfigurationWizardguidesyouhoughtheHepstogenerateaneworextendanexisthgdomain.

◎CreateanewWebLogicdomain

CreateaWebLogcdomainnyou-projectsdirectory.

OExterxlanexistingWebLogicdomain

ExtendanexistngWebLogKdoman.

Usethisoptiontoaddaopicatonsandservees,ortooverrideewstngdatabaseaccess(JCCC)and

messagng(JMS)settings.

|4一I-||一「

选择CreateanewWebLogicdomain,然后Nexl

|jOracleVebLogicCoafijurationVizard

SelectDomainSource

Sdectthesourcefromwhichthedomainwilbecreated.YoucancreatethedomainbyckkingORACLE-

ontherequredconconentsorbyselectingfroma1stofexistingdomantemplates.

@Generateadomainconfiguredautomaticallytosupportthefollowingproducts:

0WeblogkServer(Required)

0WorkshopforWeblogic10.3

0OracleServiceBus

OBasethisdomainonanexistingtemplate

Templatelocettn:

选择WorkshopforWebLogic10。3和Orac1cServiceBus,然后Ncxt

输入WebLogic管理控制台用户名密码(wcblogic/weblogic),然后Nexl

选择域的运行模式,缺省开发模式,然后选择相应的JDK,然后Ncxi

选择Ncxt

输入域名称和所在目录,选择Crca©直到完成,选择Done

flOraclefebLocicCon£icurontirar上J凶

CreatingDomain

ORACLe-

Progress:

70%

Prcoating...

ExtraccngDorr>ainConcents...

CreatingDomanSecurityIrformatton...

ORACLe

I空心小!

0racleServiceBus的域配置完成.

3开发环境准备

3.1Server配置

打开workshop(Program-)OracIeWebLogic—>WorkshopforWebLog

icIOgr3),在Server$的视图中选择新建

选择OraclcWebLogicServcrvl0o3,然后Next

OMe>Server

DefineaNewServer

Choosethetypeofservertocreate

Server'shostname:|localh>st二J

Downloadadditionalserveradapters

Selecttheservertype:

|typefiltertext

s

or回

Server10.1.3

Server10.1.3.1

JracleWebLogicservervlO.3

OracleWebLogicServervl0.3

Server=unti■0:|0r@cl@WebLogicServervlO.3▼IInstalledRuntimes...

<BackINext>IFinishICancel

配置域路径

1□1x|

OracleWebLogicServervlO.3

DefineaWebLogicServerORACLG

直到出现

配置server过程完成

3.2建立OracIeServiceBus配置项目及项目

选择File—>New->OracleServiceBusConfigurationProject

OOracleServiceBus-OracleWorkshopforfebLo^ic

£ileEditNavigateSearchProjectRunlindowHelp

输入项目名,比如EPSProjectl

EPSProjectl

国函ResourceSummary

选择EPSProjectl,右键建立OracleSendceBus项目

a四EPSProjcctl

E”►PJProject.

ITJyrynq.QWb

SI00SBLo<Proj<

哈CopyCtrlK‘Fil。

Al;金Sinpl«Sodc<

■PezteCU14VC3

3testosb

)XDelet.

jtestvithbaz国JJIDIProvider

Wove...

31testvithb^x

ProxyServer

3;jtestvithbozRenameF2

康SH?Server

3壮JSR-109WeiInport»

QIDDIRepstry

Export>

OracleServiceBusConficurationProject

<jRefreshFS

Or«cl«S«rvxc«BuzProject

CloseProject

输入项目名称,然后Finish

在新建立的OracleServiceBus项目下如图建立乂下目录(Folder),分别是

BusinessServices,ProxyServices,ServiceAccount,Tranformati

on.WSDL.Jar

-④EPSProject

+函ResourceSummary

S®®EePSServices

wcBusinessServices

H心

Ea

seServicoAccour.t

HaTransformaticn

tfSDL

分别作为以下用途

BusinesssServices:用于存放定义的BusinessServices,接入后端服务

ProxyServices:用于定义ProxyServices,提供前端调用接口

ServiceAccount:用于定义ftp的访问需要的用户名密碣

Transformation:用于存放和定义在过程中发生的数据转换

WSDL:用于存放WSDL文件

Jar:用于JavaCallout»主要是通过JavaCal1out方式来记日志

3.3建立记Log的Java项目

・首先先在数据库表中建立。sblog表

Createtableosb1og(

Transnovarchar(20),

Messagevarchar(2(X)).

Transdatedate);

.在WebLogicconsole中建立到数据库的连接池JNDI设置为XE

>建立JavaProjcct,注意在bui1d路径下加入wcblogic.jar

・先建立一个osbutiliiy的package,然后新建OsbLogMessage类,代码如下:

packageosbuti1ity;

importjava。sql.Connection;

importjava□sq1.SQLException;

importjavaosq1.Statement:

importjava。util.*:

importjavax.naming.Context;

importjavax.naming。InitiaIContext;

PublieclassOsbLogMessage{

/**

*@paramargs

*/

/*publicstaticvoidmain(String[]args){

//TODOAuto-generatedmethodstub

}

*/

publicstaticboo1eanlog(Stringtransno,Stringmess){

Connectioncon=nu11;

Statemcntstmt=nu11;

intval=1;

try(

Contextctx=null;

Hashtable<String,String>ht=newHashtable<String»String><);

htoput(Context.INITIALCONTEXT_FACTORY,Aweb1ogic.jndi。WLInitialCon

textFactory,z);

ht。put(Context.PROVIDER_URL,"t3://loca1host:7001,z):

ht.put(Context.SECURITYPRINCIPAL,"weblocic");

ht.put(ContextsSECURITY_CREDENTIALS,"weblogic"):

ctx=newInitialContext{ht);

javaxasq1oDataSourccds=(javax.sql.DataSource)ctx。lookup("XE");

con=ds.getConnection();

Stringsql="insertintoosb1ogvalucs(1,z+transno+'*'4m

ess+"',sysdate)";

System.out„printin(sql);

stmt=con。cresteStatement();

val=stmtoexecuteUpdate(sql);

}catch(Exceptione){

System。out.println(e®getMessage()):

}fina11y{

try{

if(stmt!=null)

stmt*close();

if(con!=nu11)

con.close();

}

catch(SQLExceptione)(

Systera.out.printIn(e.toString()):

)

)

if(val!=0)

returnfalse:

returntrue;

)

)

3.4配置WebLogicServer的连接池(记Log要用)

打开WebLogicServer管理控制台http:〃k)calhost:70()1/conso1e

新建Services->JDBC—>DataSource

JDBCDataSourceProperties

ThefollowingpropertieswillbeusedtoidentifyyournewJDBCdatasource.

Indicatesrequiredfields

WhatwouldyouliketonameyournewJDBCdatasource?

'Name:

CHDS

WhatJFJDInamewouldyouliketoassigntoyournewJDBCDataSource?

JNDIName:

Whatdatabasetypewouldyouliketoselect?

DaiabaseType:画工三

Whatdatabasedriverwouldyouliketousetocreatedatabaseconnections?

DatabaseDriven|Oracle,sDriver(Thin)Versions:901,920.10.113

其他选择缺省设置,并且设置用户名密码,测试通过部署到AdminServer就可

3.5配置Queue(对帐交易中用到)

1)选择Services—〉Messaging—>JMSModules,建立CHModu1e

CreateJMSSystemModule

NextFinishCancel

Thefollowingpropertieswillbeusedtoidentifyyournewmodule.

JMSsystemresourcesareconfiguredandstoredasmodulessimilartostandardJ2EEmo

includequeues,topics,connectionfactories,templates,destinationkeys,quota,distributed

foreignsevers,andJI.1Sstore-and-forv^ard(Sgparameters.Youcanadministrativelycon'

systemmodulesasglobalsystemresources.

*Indicatesrequiredlelds

WhatwouldyouliketonameyourSystemModule?

Name:CHModule|

Whatwouldyouliketonamethedescriptorfilename9Ifyoudonotprovideaname,adefault

DescriptorFileName:

WherewouldliketoplacethedescriptorforthisSystemModule,relativetothejmsconfigurat

domain*?

LocationInDomain:

NextFinishCancel

选择部署到AdminServer

CreateJMSSystemModule

NextFinishCancel

Thefollov/ingpropertiesv/illbeusedtotargetyourne.vJMSsystemm

Usethispagetoselecttheserverorclusteronwhichyouwouldliketodei

reconfiguretargetslaterifyouwish.

Targets:

CreateJMSSystemModule

Next

Back11FinishCancel

AddresourcestothisJMSsystemmodule

Usethispagetoindicatewhetheryouwanttoimmediatelyaddresourcestothis

JMSresourcesincludequeues,topics,connectionfactories,etc.

“WouldyouliketoaddresourcestothisJMSsystemmodule?

BackFinishCancel

2)新建JMSServers同时部署到AdminServer

CreateaNewJMSServer

NextIIFinishIICancel

JMSServerProperties

ThefollowingpropertieswillbeusedtoidentifyyournewJMSSender.

fIndicatesrequiredfields

WhatwouldyouliketonameyournewJMSServer?

朗"Name:ICHSen/er

SpecifypersistentstoreforthenewJMSServer.

PersistentStore:

|FilestoreZ]CreateaNewStore

FinishCancel

3)在CHModule中建立ConnectionFactory

CreateaNewJMSSystemModuleResource

NextCancel

Choosethetypeofresourceyouv/anttocreate.

UsethesepagestocreateresourcesinaJMSsystemmodul

factories.

Dependingontnet/peofresourceyouselect,youareprompl

targetableresources,likestand-alonequeuesandtopics,co

servers,andJMSSAFdestinations,youcan3lsoproceedtot

canalsoassociatetargetableresourceswithsubdeploymenl

moduleresourcesandthememberstosen/erresources.

(•ConnectionFactory

CQueue

CreateaNewJMSSystemModuleResource

BaJIIIFinishIICati-el

ConnectionFactoryProperties

Thefollowingpropertieswillbeusedtoidentifyyournewconnectionfactory.Thecurn

bIndicatesrequiredfields

Whatwouldyouliketonameyournewconnectionfactor/*?

Name:ChConnectionFactory

WhatJNDINamewouldyouliketousetolookupyournewconnectionfactory*?

JNDIName.jmsCHQueueConnectionFactoryj

BaJIile.-.tIIFinishIICancel

4)然后新建Queue

CreateaNewJMSSystemModuleResource

Back■Ne>1IIFinishIICancel

JMSDestinationProperties

ThefollowingpropertieswillbeusedtoidentifyyournewQueueThecurrentmoc

1Indicatesrequiredfields

Name:ChQueue

JNDIName:r777;

jins仰eQueue______________________________________

Temple:丽包

Back■NextIIFinishIICancel

5)选择新建Subdeployment如图

CreateaNewJMSSystemModuleResource

Next11

BackFinishCancel

ThefollowingpropertieswillbeusedtotargetyournewJMSsystemmoduleresource

Usethispagetoselectasubdeploymenttoassignthissystemmoduleresource.Asubdeployi

whichJMSresourcesaregroupedandtargetedtoaseiverinstance,duster,orSAFagentIfne

newsubdeplo.mentbyclickingtheCreateaNewSubdeploymentbutton.Youcanalsoreconfij

targetslaterbyusingtheparentmodulessubdeploymentmanagementpage.

Selectthesubdeploymentyouwanttouse.Ifyouselect(none),notargetingwilloccur.

Subdeployments:

CreateaNewSubdeployment

Whattargetsdoyouwanttoassigntothissubdeployment?

Targets:

BackNext11FinishIICancel

CreateaNewSubdeployment

OKICancel

SubdeploymentProperties

Thefollowingpropertieswillbeusedtoidentifyyournewsubdeployment.

SubdeploymentName:les二c~:

-'CHSubDeployment

OKCancel

CreateaNewJMSSystemModuleResource

Cancel

ThefollowingpropertieswillbeusedtotargetyournewJMSsystemmoduleresoi

Usethispagetoselectasubdeploymenttoassignthissystemmoduleresource.As

whichJMSresourcesaregroupedandtargetedtoasenerinstance,cluster,orSNFa

newsubdeploymentbyclickingtheCreateaNewSubdeploymentbutton.Youcan3ls

targetslaterbyusingtheparentmodulessubdeploymeitmanagementpage.

Selectthesubdeploymentyouwanttouse.Ifyouselect(none),notargetingwilloccur.

Subdeployments:

|CHSubDeploymentTCreateaNewSubdeployment

Whattargetsdoyouwanttoassigntothissubdeployment*?

Targets:

JMSServers

CHServer

wIsbJMSServer

WseeJmsServer

Next|

BackFinishCancel

完成

3.6建立对SocketTransport的支持

1)先在cmd下转到需要部署的OracIeServiceBusdomain目录(如E:\b

ea\user_projects\domains\CH_domain\bin)运行SetDomainEnv。c

md

2)在cmd下转到相应的SocketTninsport的安装目录(如E:\bea\

osb_IO<.3\samp1es\servicebus\samp1e-tran$port),修改在E:\bea\osb_

10.3\samplcs\scrviccbus\samplc—transport\src\com\bca\a1sb\t

ransports\sock中的SocketTransportUIBinding.java,主要修改方法为:(蓝

色)

publicbooleanisServiceTypeSupported(BindingTypeInfobindingType){

retumtrue:

/*

try(

BindingTypelnfo«BindingTypeEnumtype=bindingType,getl\pe();

if(type.equals(BindingTypelnfo«BindingTypeEnumoMIXED)){

BindingTypeInfo,MessageTypeEnumresponseMessageType=

bindingType.gctRcsponscMcssageTyp

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论