OSBOracle-Service-Bus安裝配置手冊(cè)_第1頁(yè)
OSBOracle-Service-Bus安裝配置手冊(cè)_第2頁(yè)
OSBOracle-Service-Bus安裝配置手冊(cè)_第3頁(yè)
OSBOracle-Service-Bus安裝配置手冊(cè)_第4頁(yè)
OSBOracle-Service-Bus安裝配置手冊(cè)_第5頁(yè)
已閱讀5頁(yè),還剩58頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

Orac1eServiceBus

安裝配置手冊(cè)

目錄

IOracIeServiceBus安裝

20rac1eServiceBus域配置

3開(kāi)發(fā)環(huán)境準(zhǔn)備

3。IServer配置

3.2建立OracleServiceBus配置項(xiàng)目及項(xiàng)H

3。3建立記Log的Java項(xiàng)I

3.4配置WebLogicServei?的連接池(記1盤要用)

3.5配置Queue(對(duì)帳交易中用到)

3。6建立對(duì)SocketTransport的支持

3。7電子支付平臺(tái)與碼頭接口配置

4接口說(shuō)明

4.1接口需求文檔

4。2OracIeServiceBus接I1描述

5服務(wù)配置過(guò)程及測(cè)試

5.1工行實(shí)時(shí)扣費(fèi)及劃帳服務(wù)配置.(ICBCServices

5。2工行對(duì)帳服務(wù)配置(BatchServices)

5o3電子支付平臺(tái)到碼頭服務(wù)配置(SCTScrvice)

6使用和對(duì)接

1Orac1eServiceBus安裝

點(diǎn)擊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域配置

啟動(dòng)配置向?qū)onfigurationwizard(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管理控制臺(tái)用戶名密碼(wcblogic/weblogic),然后Nexl

選擇域的運(yùn)行模式,缺省開(kāi)發(fā)模式,然后選擇相應(yīng)的JDK,然后Ncxi

選擇Ncxt

輸入域名稱和所在目錄,選擇Crca?直到完成,選擇Done

flOraclefebLocicCon£icurontirar上J兇

CreatingDomain

ORACLe-

Progress:

70%

Prcoating...

ExtraccngDorr>ainConcents...

CreatingDomanSecurityIrformatton...

ORACLe

I空心小!

0racleServiceBus的域配置完成.

3開(kāi)發(fā)環(huán)境準(zhǔn)備

3.1Server配置

打開(kāi)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

直到出現(xiàn)

配置server過(guò)程完成

3.2建立OracIeServiceBus配置項(xiàng)目及項(xiàng)目

選擇File—>New->OracleServiceBusConfigurationProject

OOracleServiceBus-OracleWorkshopforfebLo^ic

£ileEditNavigateSearchProjectRunlindowHelp

輸入項(xiàng)目名,比如EPSProjectl

EPSProjectl

國(guó)函ResourceSummary

選擇EPSProjectl,右鍵建立OracleSendceBus項(xiàng)目

a四EPSProjcctl

E”?PJProject.

ITJyrynq.QWb

SI00SBLo<Proj<

哈CopyCtrlK‘Fil。

Al;金Sinpl?Sodc<

■PezteCU14VC3

3testosb

)XDelet.

jtestvithbaz國(guó)JJIDIProvider

Wove...

31testvithb^x

ProxyServer

3;jtestvithbozRenameF2

康SH?Server

3壯JSR-109WeiInport?

QIDDIRepstry

Export>

OracleServiceBusConficurationProject

<jRefreshFS

Or?cl?S?rvxc?BuzProject

CloseProject

輸入項(xiàng)目名稱,然后Finish

在新建立的OracleServiceBus項(xiàng)目下如圖建立乂下目錄(Folder),分別是

BusinessServices,ProxyServices,ServiceAccount,Tranformati

on.WSDL.Jar

-④EPSProject

+函ResourceSummary

S??EePSServices

wcBusinessServices

H心

Ea

seServicoAccour.t

HaTransformaticn

tfSDL

分別作為以下用途

BusinesssServices:用于存放定義的BusinessServices,接入后端服務(wù)

ProxyServices:用于定義ProxyServices,提供前端調(diào)用接口

ServiceAccount:用于定義ftp的訪問(wèn)需要的用戶名密碣

Transformation:用于存放和定義在過(guò)程中發(fā)生的數(shù)據(jù)轉(zhuǎn)換

WSDL:用于存放WSDL文件

Jar:用于JavaCallout?主要是通過(guò)JavaCal1out方式來(lái)記日志

3.3建立記Log的Java項(xiàng)目

?首先先在數(shù)據(jù)庫(kù)表中建立。sblog表

Createtableosb1og(

Transnovarchar(20),

Messagevarchar(2(X)).

Transdatedate);

.在WebLogicconsole中建立到數(shù)據(jù)庫(kù)的連接池JNDI設(shè)置為XE

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

?先建立一個(gè)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要用)

打開(kāi)WebLogicServer管理控制臺(tái)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

其他選擇缺省設(shè)置,并且設(shè)置用戶名密碼,測(cè)試通過(guò)部署到AdminServer就可

3.5配置Queue(對(duì)帳交易中用到)

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同時(shí)部署到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建立對(duì)SocketTransport的支持

1)先在cmd下轉(zhuǎn)到需要部署的OracIeServiceBusdomain目錄(如E:\b

ea\user_projects\domains\CH_domain\bin)運(yùn)行SetDomainEnv。c

md

2)在cmd下轉(zhuǎn)到相應(yīng)的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,主要修改方法為:(藍(lán)

色)

publicbooleanisServiceTypeSupported(BindingTypeInfobindingType){

retumtrue:

/*

try(

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

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

BindingTypeInfo,MessageTypeEnumresponseMessageType=

bindingType.gctRcsponscMcssageTyp

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論