Sunday, September 22, 2013

Deploy DVM/Artifacts to MDS



Introduction: 
After reading the heading the first question that strike is wooo!!!! why do we need something to deploy DVM to MDS when we have the DVM local to our SOA project which can be deployed with SAR.

But my dear friends what will happen when you have a same DVM which can be used across several SOA services. Are you going to create a copy of the same DVM across all projects ??

The obvious answer will be No.

Here is a Smart solution for all the above :):).

Create a Separate Project :

Create a separate SOA Project (EMPTY) and create structure (in case you want to create some structure across projects) and copy the DVM inside as shown in the screenshot below:


Now this DVM can be accessed across every project with the below simple function:
dvm:lookupValue("oramds:/apps/test/DVM/ConnectionDetails.dvm","code","SupplierName","value","No Description").
Deployment:
You can have Ant scripts to deploy the project to MDS.
 To use Ant scripts click here 

But if you don’t have time for that then here is a simple solution for that too.

Execute below commands:
     1)   Cd $SOA_Home/common/bin/wlst.sh 
         (for linux environment, Also SOA_HOME is according to your installation).
             
      2)   You will get offline screen. Now you need to execute connect(). You will be asked for the admin username and password.
       

Once you will get connected you will get the below message:

Successfully connected to Admin Server 'AdminServer' that belongs to domain 'my_domain'.

wls:/my_domain/serverConfig>
      3) Now execute the command:

importMetadata(application='soa-infra',server='soa_server1',fromLocation='DVM Location with the same structure as mentioned in docs ',docs='/apps/test/DVM/*.dvm').

e.g.


     4) Now open your MDS connection and there you go with your DVM on MDS :):)



In case of any queries, you are welcome to comment or write us at letslearnoraclesoa@gmail.com 


Cheers,

LetsLearnOracleSOA Team

1 comment:

  1. Buenos días en que herramientas de ORACle se despliegan los archivos.dvm????
    - Service BUs
    - Enterprise Manager

    ReplyDelete