External Library Deployment and Usage in SAP NetWe

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

SAPCOMMUNITYNETWORKSDN-sdn.sap.com|BPX-bpx.sap.com|BOC-boc.sap.com|UAC-uac.sap.com©2010SAPAG1ExternalLibraryDeploymentandUsageinSAPNetWeaverDeveloperStudio(NWDS)Appliesto:SAPNetWeaver,SAPNetWeaverDeveloperStudio7.0.16,SAPJava,ExternalLibrariesFormoreinformation,visittheJavahomepage.SummaryThisarticlewillguideyouthroughstepbystepprocessofusinganexternallibraryinexistingwebapplication.AnexternallibraryDevelopmentComponentwillbefirstcreatedandthendeployedtoapplicationserver.Author:SaurabhAgarwalCompany:Steria,IndiaCreatedon:27thFebruary2010AuthorBioSaurabhAgarwalisworkingasaConsultingEngineerwithSteriaIndiaLtd.HehasbeeninvolvedinJavabasedportaldevelopment(NetweaverDeveloperStudio),andalsohasknowledgeofSAPEnterpriseportal(Administration),JavaWebDynpros.HecanalsocontributeandmodifyapplicationsinABAPandABAPWebDynpros.ExternalLibraryDeploymentandUsageinSAPNetWeaverDeveloperStudio(NWDS)SAPCOMMUNITYNETWORKSDN-sdn.sap.com|BPX-bpx.sap.com|BOC-boc.sap.com|UAC-uac.sap.com©2010SAPAG2TableofContentsIntroduction.........................................................................................................................................................3AddJARto“ExternalLibrary”typeDevelopmentComponent...........................................................................3Step–CreateDevelopmentComponent“ExternalLibraryContainerDC”.......................................................3Step–AddJARlibraryfileto“ExternalLibraryContainerDC”.........................................................................5ExposelibrarytobeusedbyotherDevelopmentComponents.........................................................................6Step-Add“publicparts”to“ExternalLibraryContainerDC”.............................................................................6Step–AddJARfiletopublicpart.................................................................................................................10Createadeployableunitfor“ExternalLibraryContainerDC”.............................................................................11Step–CreateaDevelopmentComponentoftype“J2EEservercomponent-Library”.............................11Step–Reference“ExternalLibraryContainerDC”from“externallibrary_deployableunit”..............................12Step-Builtanddeploy“externallibrary_deployableunit”..............................................................................14Step–Crosscheckwhetherithasreachedserver.......................................................................................16Usingdeployedlibraryinyourwebapplication................................................................................................17Step–Createdependencyto“externallibrary_deployableunit”from“WebApplicationDC_EA”...................17Step–Createdependencyto“ExternalLibraryContainerDC”from“WebApplicationDC_WA”.....................18Step–Addreferenceto“ApachePOI”in“WebApplicationDC_EA”..............................................................19RelatedContents..............................................................................................................................................23DisclaimerandLiabilityNotice..........................................................................................................................24ExternalLibraryDeploymentandUsageinSAPNetWeaverDeveloperStudio(NWDS)SAPCOMMUNITYNETWORKSDN-sdn.sap.com|BPX-bpx.sap.com|BOC-boc.sap.com|UAC-uac.sap.com©2010SAPAG3IntroductionOftentherearescenarioswhereinsideyourwebapplicationyouneedtoreferencesomeJARfile.Like,youneedtogivedownloadfunctionalityinxlfformatforyourjavareport.ForthispurposeyouwishtouseApachePOIJarfiles.Thisdocumentwillguideyouthroughastepbystepprocessforusinganexternallibraryinsideyourexistingwebproject.First,youwilllearnhowtodeploythisJARfileinapplicationserverandthenhowtoreferenceitfromwithinyourexistingwebdevelopmentcomponent.Iassumethatyoualreadyhaveyourwebdevelopmentcomponentanditscorrespondingdeploymentcomponent(EnterpriseApplicationDevelopmentComponent)alreadycreatedinyourworkspace.Ihavenamedthem:WebApplicationDC_WA(WebDevelopmentComponent)WebApplicationDC_EA(EnterpriseApplicationDevelopmentComponent)Inbelowstepbystepprocesswewillcreatean“ExternalLibrary”DevelopmentComponentwhichwillcontainourJARfile.WewillnameitasExternalLibraryContainerDCOncewehaveaJARinsideabovecontainer(ExternalLibraryContainerDC),weneedtodeployitonapplicationserver.ForthispurposewerequireadeployableunitforthislibrarycontainerDCoftype“J2EEservercomponent-Library”.WewillnameitasExternalLibrary_DeployableUnitAddJARto“ExternalLibrary”typeDevelopmentComponentThiscomponentwillactasactualcontainerforourJARfile.Step–CreateDevelopmentComponent“ExternalLibraryContainerDC”ClickonFile-New-OtherExternalLibraryDeploymentandUsageinSAPNetWeaverDeveloperStudio(NWDS)SAPCOMMUNITYNETWORKSDN-sdn.sap.com|BPX-bpx.sap.com|BOC-boc.sap.com|UAC-uac.sap.com©2010SAPAG4SelectDevelopmentComponentandclickonNext.SelectLocalDevelopment-MyComponentsandclickNextExterna

1 / 24
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功