Java code to check connection to OIM 11g Remote Manager

Hi,
I need to check if the remote manager is running or not, for that I am making an API call:
What RMS data needs to be passed as argument to the below method?
RemoteManagerOperationsIntf rmObj = (RemoteManagerOperationsIntf)Platform.getService(RemoteManagerOperationsIntf.class);
rmObj.isRMRunning(+RMSData+);
Please help.

package com.thortech.xl.remotemanager;
import java.io.Serializable;
public class RMSData
implements Serializable
private String rmName;
private String serviceName;
private String url;
private boolean isRunning;
private boolean isITResource = true;
private RMRemote rmInstance;
public RMSData()
public RMSData(String serviceName, String url, RMRemote rmInstance)
this.serviceName = serviceName;
this.url = url;
this.rmInstance = rmInstance;
public boolean isITResource()
return this.isITResource;
public boolean isRunning()
return this.isRunning;
public RMRemote getRmInstance()
return this.rmInstance;
public String getServiceName()
return this.serviceName;
public String getUrl()
return this.url;
public void setITResource(boolean b)
this.isITResource = b;
public void setRunning(boolean b)
this.isRunning = b;
public void setRmInstance(RMRemote remote)
this.rmInstance = remote;
public void setServiceName(String string)
this.serviceName = string;
public void setUrl(String string)
this.url = string;
public String getRmName()
return this.rmName;
public void setRmName(String string)
this.rmName = string;
-Kevin

Similar Messages

  • How to check connector connectivity in OIM 11g

    Hi All,
    How to check connector connectivity in OIM 11g. In erlier version we have XIMDD from where we can test connectivity. But I dont see anything in 11g.
    Thanks.

    Noway ! !
    Go to:
    *<Oracle-Weblogic-Middleware-Home>\Oracle_IDM\server\features\Xellerate.zip* & you can find the XIMDD.war

  • Java code to make connection to web server??

    Hi,
    we are looking at simple java code to connect to IIS Server and retrive a ZIPed file.
    this zip file contains photos. all individual photos are stored in zip file under doc root of IIS server..
    any sample code will be great

    Here is some code on how to open an URL and read from it.
    url = new URL("http://IIS_server/doc/Yourfile.zip");
    URLConnection conn = url.openConnection();
    conn.setDoInput(true);
    in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
    StringBuffer sbResponse = new StringBuffer();
    int intChar = 0;
    while ((intChar = in.read()) !=-1) {
         // got one byte as int from the server do something here to pass the byte from one stream to another (filestream)
         // there is a way to save to the local HD with an applet but you have to sign it and adjust some security policys
    in.close();

  • Sun Java System Directory connector cloning on OIM 11g R2

    Hi all,
    we successfully installed the +"Sun Java System Directory (9.0.4)"+ connector on OIM 11g R2 and it is properly working.
    We need to clone the LDAP Resource Object in order to execute provisioning to different ldap instances,
    but under "Connector Management" web console is not possible clone this connector; it's possible for example for Active Directory resource object but not for LDAP.
    How we can clone the connector for LDAP?
    Thanks a lot,
    Ettore F.

    Hello Rajiv,
    thank for your help.
    I figured out how to clone a connector, even if the resource object is not shown under "Connector Management".
    It's enough to click the "Clone" button and providing the original xml file, of the resource object then you can proceed with the cloning of the connector in 12 steps as the wizard shows.
    Bye,
    Ettore F.

  • Java Code for Checking Yahoo account

    hi guys
    i know that in java there's is something called a Robot class
    which move mouse ,press keys etc..
    i want to know that is there some api's in java which can check mails
    for example i want to check where there are any new mails in my yahoo acount
    then can some programe in java can be written to which i will feed userid and password and it will return some text that there r new mails

    FRIENDS UR NOT GETTING MY QUESTION
    i dont want a to make a mail client
    i know that using java mail api its posible
    its requires smtp address port etc..
    see i just have two parameter i.e userid and password
    now for checking mail
    i go to yahoo.com enter my password and id and see my mails
    i want this to be done my a java program that's all
    i want a java program who on my behalf enter's user id and password
    and just fetches new mails subject(not the entire mails);
    and display it sop

  • OIM and Remote Manager

    Do you know if out of the box connectors bundled(9.0.4.1) are supported using Remote Manager?
    Remote Manager and OIM Server are in a different location
    Regards

    The majority of the out of the box connectors don't require (or use) remote managers. There are a few exceptions, typically when the target systems don't have network aware libraries available at all or on all the operating systems that the OIM server supports.
    You can't use a non-remote manager connector via remote manager as there are required changes in both the forms and the underlying adapter code.

  • Java code to check system of another PC

    i would like to check the system (i.e. CPU name, CPU speed, etc) of another PC from my PC. How will I do it? Currently, I can check the system of a PC if I launched my java application on that PC. But now, I want it to be checked via network.
    Can you help me on this. Many thanks to all.

    Yeah you're right there that you do not want anybody looking at your PC system. But, it is my job here in our company to make sure that all supported PC should have met the requirements installed in their PC. Let us say, Virus Scan should have the version of 8. If it is not version 8, my java program should prompt the user that his PC Virus Scan application is not compliant with what the company set. He should upgrade it to 8.0.
    Anybody who can help me on this? Many thanks.

  • Java code to establish connection between 2 computers through phoneline

    Hi, We are working on a small project which transfers files through phonelines using modems. We are planning to use remote method invocation (RMI) technology. The file transfering code is working fine. But my problem is how to establish connection between two computers over phoneline using modems. If anyone having code to connect two computers through phoneline using modems, please send me urgent.. thanks in advance
    sridhar

    hello.im not experienced in computer .but i tried this method nd found it very funny.....i used a program in the window called hyper terminal ..you can reach to it through start up then programs then accessories then communication then hyperterminal .....throuh this program you can connect two compuers only by phone......you will adjust the sender computer to {call} and the reciever computer to {wait for call} these option is present inside the program.....
    in the sender computer you will choose the phone number of the receiving computer ...and vice versa {in the sender cmputer{client} you will type the phone number of the recieving computer {server} } excuse me .is this what you want...or im not understanding what is in your mind .....with best wishes for you

  • OIM 11g R1 Managed Server Falied to Start

    Hi Experts,
    I have configured Weblogic, OIM and OAM with 11.1.1.5 Version -- Complete Full Version Download.
    I haven't applied any patches after that. Once after changing the Policy Store to LDAP from File based. I am gettin the below error.
    From the below error, i am able to find that there is some mismatch in the versions between Policy Store and OPSS. Help me in rectifying this Issue..
    ========================================================================
    <22-Jan-2013 10:09:57 o'clock GMT> <Notice> <Log Management> <BEA-170019> <The server log file E:\Oracle\Middleware\user_projects\domains\base_domain\servers\oim_server2\logs\oim_server2.log is opened. All server side log events will be written to this file.>
    oracle.security.jps.service.policystore.PolicyStoreIncompatibleVersionException: JPS-06100: Policy Store version 11.1.1.6.0 and Oracle Platform Security Services Version 11.1.1.4.0 are not compatible.
    at oracle.security.jps.internal.policystore.ldap.LdapPolicyStore.initial(LdapPolicyStore.java:402)
    at oracle.security.jps.internal.policystore.ldap.LdapPolicyStore.<init>(LdapPolicyStore.java:365)
    at oracle.security.jps.internal.policystore.ldap.LdapPolicyStoreProvider.getInstance(LdapPolicyStoreProvider.java:153)
    at oracle.security.jps.internal.policystore.ldap.LdapPolicyStoreProvider.getInstance(LdapPolicyStoreProvider.java:73)
    at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.findServiceInstance(ContextFactoryImpl.java:139)
    at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getContext(ContextFactoryImpl.java:170)
    at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getContext(ContextFactoryImpl.java:191)
    at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:132)
    at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:127)
    at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.java:850)
    at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.java:844)
    at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyStore(PolicyUtil.java:844)
    at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:291)
    at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:285)
    at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:270)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    ========================================================================
    Thanks in Advance,
    VA.

    Hi Experts,
    I have configured Weblogic, OIM and OAM with 11.1.1.5 Version -- Complete Full Version Download.
    I haven't applied any patches after that. Once after changing the Policy Store to LDAP from File based. I am gettin the below error.
    From the below error, i am able to find that there is some mismatch in the versions between Policy Store and OPSS. Help me in rectifying this Issue..
    ========================================================================
    <22-Jan-2013 10:09:57 o'clock GMT> <Notice> <Log Management> <BEA-170019> <The server log file E:\Oracle\Middleware\user_projects\domains\base_domain\servers\oim_server2\logs\oim_server2.log is opened. All server side log events will be written to this file.>
    oracle.security.jps.service.policystore.PolicyStoreIncompatibleVersionException: JPS-06100: Policy Store version 11.1.1.6.0 and Oracle Platform Security Services Version 11.1.1.4.0 are not compatible.
    at oracle.security.jps.internal.policystore.ldap.LdapPolicyStore.initial(LdapPolicyStore.java:402)
    at oracle.security.jps.internal.policystore.ldap.LdapPolicyStore.<init>(LdapPolicyStore.java:365)
    at oracle.security.jps.internal.policystore.ldap.LdapPolicyStoreProvider.getInstance(LdapPolicyStoreProvider.java:153)
    at oracle.security.jps.internal.policystore.ldap.LdapPolicyStoreProvider.getInstance(LdapPolicyStoreProvider.java:73)
    at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.findServiceInstance(ContextFactoryImpl.java:139)
    at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getContext(ContextFactoryImpl.java:170)
    at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getContext(ContextFactoryImpl.java:191)
    at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:132)
    at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:127)
    at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.java:850)
    at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.java:844)
    at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyStore(PolicyUtil.java:844)
    at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:291)
    at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:285)
    at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:270)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    ========================================================================
    Thanks in Advance,
    VA.

  • OIM 11g - User Management Authorization policy issues

    Hello,
    1) Created an organization -> Human Resource
    2) Created an Role -> HR_Admins
    3) Assigned HR_Admins roles as administrative role of Human Resource organization
    4) Created user1 with organization as Human Resource & Assigned HR_Admins role to this user.
    5) Created authorization policy for user management with following selections
    Permission -> Create User.
    Data Constraints -> Selected "Users that are members of selected Organizations" & selected above Human Resource organization.
    Assignment -> HR_Admins role .
    now when i log into user1 i am not able to see Administration tab where i can select Create user.
    I am working on this issue for couple of days ,but not able to find the solution & have i missed some configurations ?
    Thank-You
    Rahul Shah

    Hi Rahul,
    I have tested your scenarion.. with below clause
    1) Created an organization -> Human Resource
    2) Created an Role -> HR_Admins
    3) Assigned HR_Admins roles as administrative role of Human Resource organization
    4) Created user1 with organization as Human Resource & Assigned HR_Admins role to this user. : default role All Users
    5) Created authorization policy for user management with following selections
    Permission -> Create User. :- *"Select ALL"*
    Data Constraints -> Selected "Users that are members of selected Organizations" & selected above Human Resource organization.
    Assignment -> HR_Admins role .
    In data constraints
    Organization Security Setting     Hierarchy Aware (include all Child Organizations)
    Now I am able to see the create user tab and, I can create user in Human Resource org only.
    If it doesn't work for you. Just assign "REQUEST ADMINISTRATOR" IN AUTH POLICY. Test the result.
    Also what is your OIM version?
    Test it with fresh data like new role name, org and user,
    -kuldeep
    Edited by: Kuldeep on May 22, 2012 4:19 AM

  • Export OIM 11g Resource object with dependencies

    Hi All,
    I am looking for sample code that will export all OIM 11g Resource objects along with dependencies into XML format. Can somebody help?
    I am using the below code to retreive all resource objects but don't have dependencies.
    FileWriter fstream = new FileWriter("OIMResources.xml");
    BufferedWriter out = new BufferedWriter(fstream);
    tcExportOperationsIntf moExportUtility = (tcExportOperationsIntf) ioUtilityFactory
              .getUtility("Thor.API.Operations.tcExportOperationsIntf");
    Collection lstObjects = moExportUtility.findObjects(export_object, "*");
    String s = moExportUtility.getExportXML(lstObjects, "*");
    out.write(s);
    Thanks
    Mahendra.

    Hi Vladimir,
    I am using the below code snippet to do the export of Resources.
    public Boolean export() {
         Boolean result = true;
         //String export_object = Util.config.getProperty(Constants.EXPORT_PATH);
         String export_object="Resource";
         /*if (export_object != null && !export_object.endsWith(File.separator)) {
         export_object = export_object.concat(File.separator);
         //String export_object_path = export_object.concat(xmlFile);
         try {
         FileWriter fstream = new FileWriter("OIMResources.xml");
         BufferedWriter out = new BufferedWriter(fstream);
         tcExportOperationsIntf moExportUtility = (tcExportOperationsIntf) ioUtilityFactory.getUtility("Thor.API.Operations.tcExportOperationsIntf");
         Collection<RootObject> lstObjects = moExportUtility.findObjects(export_object, "*");
         System.out.println(lstObjects);
         lstObjects.addAll(moExportUtility.getDependencies(lstObjects));
         lstObjects.addAll(moExportUtility.retrieveChildren(lstObjects));
         lstObjects.addAll(moExportUtility.retrieveDependencyTree(lstObjects));
         String s = moExportUtility.getExportXML(lstObjects, "*");     
         out.write(s);
         LOG.info(Resource + " Objects are successfully exported --------------->");
         out.close();
         } catch (Exception e) {
         LOG.log(Level.SEVERE, "Exception occured while exporting OIM object - " + Resource, e);
         return result;
    I am not getting its dependent objects as I was getting through OIM Deployment manager console. If I export the details through OIM console, the file size is around 3 MB. If I exported through above java code, file size is 300 KB only.
    Please let me know if I am missing anything.
    Edited by: Mahendra K on Jun 19, 2012 10:19 AM

  • Can  SPML-DSML client (10g) talk to SPML-XSD in OIM 11g?

    Hello.
    I have a SPML client that works with OIM 10g. If I upgrade to OIM 11g, will my client continue to work, or will I need to re-code it?
    I understand OIM 11g supports the newer XSD profile of SPML, but I would hope it is backward compatible with clients written to work with the DSML profile (10g)...But when I got an error when I tried to hit the WS in SPML-XSD with my client, I decided to install the SPML-DSML app (using the SPML-DSML.ear found in my OIM 11g installation, same dir as DSML-XSD.ear).
    The web app shows as Active, however I cannot see any Web Services (tried URL http://<oim-server>:14000/spmlws) ... To confirm, when I open Enterprise Manage 11g, and I do see the app (spml-dsml) under Application Deployments --> Internal Deployments, but when I right click on it to get to Web Services, I get the message "No Web Services are found in the application"...
    I then tried un-installing SPML-XSD, but that did not help...
    Thoughts anybody?
    Edited by: user8663548 on Jul 12, 2012 5:46 PM

    Update:
    I tried again hitting the Web Service in SPML-XSD and saw this error in OIM server log (which I missed the first time, too busy looking at my client app log):
    <Jul 12, 2012 5:36:52 PM EDT> <Error> <oracle.wsm.resources.security> <WSM-00069> <The security header is missing. Ensure that there is a valid security policy attached at the client side, and the policy is enabled.>
    <Jul 12, 2012 5:36:52 PM EDT> <Error> <oracle.wsm.resources.security> <WSM-00006> <Error in receiving the request: oracle.wsm.security.SecurityException: WSM-00069 : The security header is missing. Ensure that there is a valid security policy attached at the client side, and the policy is enabled..>
    <Jul 12, 2012 5:36:52 PM EDT> <Error> <oracle.wsm.resources.enforcement> <WSM-07607> <Failure in execution of assertion {http://schemas.oracle.com/ws/2006/01/securitypolicy}wss-username-token executor class oracle.wsm.security.policy.scenario.executor.WssUsernameTokenScenarioExecutor.>
    <Jul 12, 2012 5:36:52 PM EDT> <Error> <oracle.wsm.resources.enforcement> <WSM-07602> <Failure in WS-Policy Execution due to exception.>
    <Jul 12, 2012 5:36:52 PM EDT> <Error> <oracle.wsm.resources.enforcement> <WSM-07501> <Failure in Oracle WSM Agent processRequest, category=security, function=agent.function.service, application=spml-xsd, composite=null, modelObj=SPMLService, policy=oracle/wss_username_token_service_policy, policyVersion=null, assertionName={http://schemas.oracle.com/ws/2006/01/securitypolicy}wss-username-token.>
    <Jul 12, 2012 5:36:52 PM EDT> <Error> <oracle.webservices.service> <OWS-04086> <oracle.fabric.common.PolicyEnforcementException: InvalidSecurity : error in processing the WS-Security security header
    Getting closer!
    Edited by: user8663548 on Jul 12, 2012 5:45 PM

  • Error in Provioning Exchange2007 with oim 11g

    Hi All ,
    I installed a new Remote manager in the same server where Exchange is installed. Then I configured Exchange connector and IT resource with oim11g.
    While I was trying to provision a newly created user with Exchange2007 after provisioning with Active Directory.
    I got an error like this :
    Running CHECKPROCESSORDEREDFORUSER
    Target Class = com.thortech.xl.util.adapters.tcUtilXellerateOperations
    Running GETVALUE
    Target Class = com.thortech.xl.integration.Exchange.tcExchangeTasks
    Running GETSTRINGLENGTH
    Target Class = com.thortech.xl.util.adapters.tcUtilStringOperations
    Running Check Madatory
    Running Check If Email Alias Characters Are Invalid
    Running GETSERVICENAME
    Target Class = java.lang.String
    Running GETURL
    Target Class = java.lang.String
    Running GETSCRIPTPATH
    Target Class = java.lang.String
    Running GETREPORTLOGPATH
    Target Class = java.lang.String
    Running CheckRemoteManagerConnection
    <Jan 20, 2012 8:56:15 PM IST> <Error> <XELLERATE.REMOTEMANAGER> <BEA-000000> <Class/Method: RemoteManagerSupport/getRemoteManager encounter some problems: RManager1
    java.rmi.NotBoundException: RManager1
    at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:114)
    where RManager1 is the Remote manager service name.
    Any solutions please.
    -Ashish

    Make sure that the Remote Manager Service name is the same in the following two locations
    1. In OIM Design Console, under IT Resource of Type "Remote Manager" you specify the service name. I believe this must be set to RManager1.
    2. Now on the host where you have deployed Exchange Remote Manager, check the xlconfig.xml file and ensure that the service name specified there is also RManager1
    Restart the Remote Manager.
    Before trying to provision the mailbox, check the status of the Remote Manager from the Design Console -> Administration -> Remote Manager form.

  • Importing oim 9.1 exported data to oim 11g?

    Hello,
    I just read a few recent threads on upgrading from 9.1 to 11g... It sounds like there isn't a path to 11g at the moment.
    But has anyone tried exporting oim 9.1 data and using oim 11g Deployment Manager to import the 9.1 exported data in?
    We've invested about 4 man years in our current oim 9.1 solution. Just can't affort to throw too many things away!
    Appreciate any feedback.
    Thanks and cheers,
    Luke

    For the time being, stick with what works. Right nows the approval process form 10g does not exist in 11g so it cannot be migrated. There are a few other changes such as event handlers and entity adapters and pre-populate adapters and i'm sure many more. Wait for 11g to mature a bit more and provide the path you need to upgrade. Your implementation will not end with the current state, just don't be in a hurry to move forward to the 11g version. And remember, if it isn't broken, don't fix it. Unless you are in dire need of the functionality that 11g is going to give over 10g, then stay where you are at for the time being.
    -Kevin

  • How to assign OIM Remote Manager as a service on Win 2003 ?

    I want to assign OIM Remote Manager as a service on Win 2003. I've used instsrv.exe to install srvany.exe and configured Parameters-Application, Parameters-AppDirectory and Parameters-AppParameters string values using parameters from remotemanager.bat file. I've obviously make same configuration mistakes because when I try to start service which I create, I can't see any new java application and Remote Manager log stays calm.
    Would you please give me advices how to configure Windows registry to start Remote Manager as a service.
    Regards
    VeePee

    Hi folks,
    I am a little bit confused about this.
    The metalink note explains how to convert remote manager to a windows service using the java service wrapper (and noted that this approach applies to version 9.0.1)
    It is explicitly declared that OIM’s Remote Manager can run as a Windows Service in OIM 9.1 datasheet (see: http://www.oracle.com/global/kr/download/pdf/ofm/OIM_DATASHEET.PDF) but admin/install guides does not include any configuration guidance about how to do it.
    Is there an easier way for v 9.1 to install remote manager as a service or do we use Java Service Wrapper method for this version also ??
    cheers
    // gurol
    Edited by: Gurol Erdogan on Dec 13, 2008 11:16 AM

Maybe you are looking for

  • Creating an icon box with a website template

    Hey fellow dreamweavers,      I want to add a social media icon set(facebook,twitter,etc,) in the corner of my website, the thing is i am using a premade template that didn't come with one how can i create a box to add the icons. thanks, vx

  • Java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

    We have upgraded from Crystal 10 to 2008.  We are able to run all reports from the admin console but when trying to connect and run from a java based application to the crystal server, we encounter the following error: [0000TvbEgjI3QkQAR-cNXc83c5x:-1

  • Thunbird won't open after update, I get Entry point not found cubeb_get_min_latency could not be located in gkmedias.dll

    Thunderbird has just failed after an update. It doesn't open. I get the following message: Entry point not found cubeb_get_min_latency could not be located in gkmedias.dll Any help on what I can do to deal with this? Many thanks, Chris

  • Bitwise inversion question.

    Here is a question that I would like a bit of explaining. I got it right but I get lost in the logic & would really appreciate your help. public class test {      public static void main(String args[]) {           byte x = 3;           x = (byte)~x;

  • The best export codec

    Hi all, I am using FCP7. I have edited footage which I filmed on the JVC GY-HM100U. I brought it into FCP with the following info: Dimensions: 1440 x 1080 Codecs: XDCAM HD 108i50 (35 Mb/s VBR), Integer (Big Endian), Timecode I want to do two differen