Win a copy of Getting started with Java programming language this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Obtain context from Infosphere MDM Collaborative Edition server  RSS feed

 
Petr Sigmund
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are instructions for developing extension points under MDM Collaborative Edition server.

http://www.ibm.com/developerworks/data/library/techarticle/dm-1312mdmjapi/

And mentioned folowing:

Prerequisites for developing Java API-based extension points

A running MDM Collaborative Edition instance is required. This instance need not be running on the same machine where the IDE is running and Java API-based classes are created.

How to obtain PMContext from remote running MDM Collaborative Edition instance? Which files I have to configure? There is no mention what to do in instructions.

Thank you for your advice,
Sigi
 
Muthukumaran Murugesan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sigi,
As suggested in that article, you need to copy the jars, locales, etc folder from the MDM CE installation home ($TOP) into your local machine where IDE is running. From the workspace, create new folders and link the directories mentioned earlier. Also copy the locales folder under etc/default folder of the workspace. You should be set. Now if you are invoking your class with a main method, could be Java extension point or the DocstoreLoader class given in that article, you need to run the class arguments like the following

-DCCD_ETC_DIR=C:\prj\MDMCS10_1\etc -DTOP=C:\prj\MDMCS10_1\etc\default -classpath $CLASSPATH

In above given args, replace the underlined section with your local absolute path containing the MDM CE folder. the As far as MDM CE is running then you will be get context and talk to MDM CE application. I would presume that you have a local JRE installed and MDM CE jars in the local folder are kept in your Java Project's classpath.

Refer the

Thanks,
Muthu
MDMCE_Java_Workspace.JPG
[Thumbnail for MDMCE_Java_Workspace.JPG]
MDM CE Java Workspace
VM_Args.JPG
[Thumbnail for VM_Args.JPG]
Arguments to Main class
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!