Oracle SOA, AIA BPEL ESB and OSB knowledge base

Monday, January 17, 2011

Deploy into MDS in weblogic 11g

I showed in previous posts how to deploy xsd artifact using deploy able application.

Here i will show you how to deploy in MDS.

- first you go to your local 11g ORACLE_HOME/jdeveloper/integration/ folder
(if you have already applied third party plugin patch provided by oracle then you will see seed folder by default with all previous configuration done)

- now create folder with name apps under seed (remember to create folder with name apps else you might face issue this oracle documents say i didn;t try out)

- under apps you can create your xsd structure

now you are done with local setup.

you go ahead and build ant project to import them into mds. You can email me to request ant project coade :)

Actually you use common sca tool to do it and use target name importCommonServiceArtifactsIntoMds from class files provided by oracle (MDSImportTask).

depends="init"
description="imports the common wsdls/xsds into the mds store">
classname="com.otn.sample.fod.soa.util.MdsImportTask"
failonerror="true">












So this is another way of importing any artifact into MDS in 11g.

Happy coding.

DVM accesibility in WEBLOGIC 11g while migrating from 10G

Sometime back i heard my colleague asking me about migrating ESB and DVM components in 11g and how to use them.

I know lot of other people have nicely explained it in different blogs, i just wanna improve my typing :) and recall memory, so forgive for that.

Here we go...

- First you will need to export metadata from 10g to a ZIP file
-- goto ORACLE_HOME and run following command
ORACLE_HOME/export.sh metadata10g.zip
- Now transfer this ZIP file to SOA Suite 11g server and use following command to convert this ZIP to archive file
-- ant -f ant-sca-upgrade.xml upgrade-xrefdvm -Dsource=/temp/upgrade metadata10g.zip -Dtarget=/temp/upgrade/11g

This will generate a file called sca_XrefDvmFiles10g_rev1.0.jar

- Now follow below steps
a) From the Oracle JDeveloper 11g File menu, select Import, then SOA Archive into SOA Project.
b)In the Create SOA Project from SOA Archive Dialog Box, click Browse and locate the sca_XrefDvmFiles10g_rev1.0.jar file that you created previously in this procedure.
c) please make sure that the Project Name and Composite Name in the Create SOA Project from SOA Archive dialog box have the same name, which must be XrefDvmFiles10g.

- Now deploy this to weblogic server and open SOA composer and you will see this dvm over there. You can use SOA composer to change the DVM value at runtime.

Please find attached project code for DVM and to test DVM in 11g.

http://www.mediafire.com/?c3ccuxr03c0adma

Accesing XSD using deployed application in WEBLOGIC 11g

Here i will show how we can deploy an xsd based artifacts application to web logic server and access them as directory on server.

Advantage:
- One time deployment.
- any future changes are just modify the file in directory and takes effect on application
- accessible through browser

Disadvantage:
- single point failure (until unless file system is configured as fail-over detection)
- you need to change host url/port before migration VS mds xpath to access artifacts

How to:
- prepare directory system and put your xsd artifacts accordingly
- create META-INF,WEB-INF directory at top level under application folder
- under META-INF directory, create file application.xml and specify web-uri (XYZ.war) and context-root (root path from where you can access /XYZ)
- under WEB-INF directory create two files web.xml and weblogic.xml
- web.xml would be normal default file no changes
- weblogic.xml would be bet here how do you want to access your artifacts i mean through file system or just an deployed application
-- if as file system then specify virtual-directory-mapping node element and define local-path(from where you wanna access) and url-pattern (what type of url should be served from this location).

Now package your application and deploy on weblogic server.

Now you can access your artifacts from specified location and refer them in your local wsdls or anywhere. Remember to change these referential URLS while deploying on other environments.

Happy coding.

Oracle SOA 11g Managing Artifacts in Weblogic

In the recent times people asked me how do we store artifacts (XSD,WSDL,DVM or any static file) in web logic server?

Here are my thoughts:

- You can store artifacts in MDS repository (i will explain how in latter post)
- You can store artifacts in web logic server as deployed applications with virtual-directory-mapping element set in configuration file
- You can also do it through web server root directory setup

I feel second and third option is good for internet development as you can access easily your artifacts from internet.

FEEDJIT Live Traffic Map

My Blog List