How to specify AND/OR relationships while linking nodes in uCMDB Java API

Hi,
I am trying to build a TQL via the uCMDB Java API. The structure that I am trying to build is of this type:
|- Server
    |- Disk
    |- FileSystem
    |- NIC(Interface)
        |-IPAddress
In the TQL I want to specify the relationship between server and  nic (interface) as composition or containment. So if either relationship matches, it should return me data.
To build this, I used the following code:
//server node
QueryNode serverNode = queryDefinition.addNode("ServerNode").ofType("node");
//nic (interface) node, uses containment link
QueryNode nicNode = queryDefinition.addNode("NICNode").ofType("interface");
//nic (interface) node, uses composition link
QueryNode nicNode1 = queryDefinition.addNode("NICNode1").ofType("interface");
// now add relationships
serverNode.linkedTo(nicNode).withLinkOfType("containment").atLeast(0);
serverNode.linkedTo(nicNode1).withLinkOfType("composition").atLeast(0);
My guess is that when I am adding relationships using "withLinkOfType()", it directly ANDs the conditions. Is there a way I could OR conditions which says:
                    Give me NIC Interfaces which either have a composition or containment relation with my server.
Thanks in advance!

Hi,
You need to create a ejb-jar.xml and jboss.xml files to deploy the application on the servers.
Also, put these lines of codes after getting System Properties.
prop.put(Context.PROVIDER_URL, "iiop://localhost:[port_no]");Thanks,
Srikant

Similar Messages

  • How to specify the target name while deploying a code in OSB-- Plz Help

    Hi all,
    Am working in creating a cluster environment. For my testing i created a new managed server(OSB_Server) in 9001 port in the admin console itself and that server started running. The default managed server(Admin_Server) is in 7001 port. So when i deploy a code in 7001 sb console the WSDL gets exposed in 7001 because the default admin server port is 7001. While deploying a code in service bus admin console we are not specifying the target name. So how to specify the target name while deploying the code in service bus admin console. Plz help me.
    Regards
    Prabhu

    Hi Prabhu,
    There are three kind of server architecture possible for OSB -
    1. Single server - Everything gets deployed on Admin server itself
    2. Admin Server + Single Managed Server for OSB -- OSB configuration gets deployed on OSB managed server. OSB resources (proxy service, WSDL, Schema) will remain available on OSB managed server port only and NOT on admin server port
    3. Admin Server + OSB cluster -- OSB configuration gets deployed on OSB cluster. OSB resources (proxy service, WSDL, Schema) will remain available on OSB Cluster port(s) only and NOT on admin server port
    Converting one type of server architecture to any other type, requires a manual tedious process, so it is suggested that you create domain accordingly i.e. if you need clusters then while creating domain itself, create OSB cluster, so that all OSB applications gets deployed to OSB cluster. I will suggest you to create a clustered domain from scratch and import the configuration from your existing domian to this new clustered domain.
    You may refer-
    http://download.oracle.com/docs/cd/E17904_01/doc.1111/e15022/toc.htm
    Regards,
    Anuj

  • How to use AND,OR,NOT condition in Pattern Matching in java

    how to use AND,OR,NOT condition in Pattern Matching in java
    Please anyone give example..

    Stop asking these stupid vague questions and do some of your own research.
    Start here:
    http://www.regular-expressions.info/
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html

  • How to drag and drop user from one node to other node.

    Dear All,
    How to drag and drop user from one node to other node.I tried but no success.
    What are precautions to be taken.
    Cay anybody kindly explain it.
    Thank you.

    Hello, if you had this message you had created BP....
    Now you don't have to user USERS_GEN this transaction is used only in first action, when you create the user in R/3 and then you pass this user to EBP in the organizational structure.
    Now you have to:
    1) Go to PPOMA_BBP
    2) Double click on organizational unit that you want to put this user (purchasing organization or purchasing group box for example)
    3) Select assign button in the top of the functions in the transaction
    4) Click on incorporates -- position
    5) Put userID that you want to add in this organizational unit
    6) Click Save
    Thanks
    Rosa

  • How IT Resource and Resource Objects are linked?

    Hi All,
    I am new to OIM product and learning the basics. I have 2 questions.
    I am not able to figure out how an "IT Resource" and "Resource Objects" are linked?
    We always link "Resource Objects" and "Process Definition". How "Process Definition" picks the values provided in "IT Resource"?
    Thanks in Advance
    Jatin

    Hi
    I don't think "IT Resource" and "Resource Objects" are anyway linked with each other.
    "IT Resource" is something where you specify all the resources in the system which are not meant to be provisioned to users. Like proxy server or Email server in your organization.
    "Resource Objects" is a place where you define all the resources that you provision to users.
    This is my understanding, which might be wrong. I think someone more experienced user can give better answer to this question.
    -Kiran Thakkar

  • How to collect and transport a hierrachy linked to an object ?

    Hi guru,
    I am working in BI 7.0  and  linked a Hierarchy to oan object.
    When I transported the object to production, the hierarchy is missing in production.
    How to collect and transport this hierachy  ?
    In case of a user-defined hierarchy, is it possible to transport it or  have I to re-create in prod ?
    Thanks for your support

    hi ,
    Yes we can create hierarchy in production .
    But if you have some kind of infrastructure build for data laod , that needs to be separately migrated.
    The Info-object with the Hierarchy check in maintaineance window of info-object should be migrated to production  in order to naually maintain the hierarchy in Production
    Thanks
    Mukesh

  • How to specify the sheet name while writing data into excel

    _Workbook workbook = (_Workbook)(excelapp.Workbooks.Open(@"E:\ScriptTest\c.xlsx"));
    workbook.Sheets.Add();
    _Worksheet worksheet = (_Worksheet)workbook.ActiveSheet;
    Line 1 Selection of excel sheet
    Line 2:I am intersted in Adding the new sheet
    Line3:Selection of Sheet
    I want to select may be sheet 2 or sheet 3 like that
    How to specify ?
    And instead of just Add() can we specify name of sheet to be created also If yes how ?

    Hi,
    Please try the sample code:
    Dim aSheet As Worksheet
    Set aSheet = Worksheets.Add()
    aSheet.Name = "myWorksheet"
    Worksheets("myWorksheet").Activate
    http://msdn.microsoft.com/en-us/library/office/ff821537(v=office.15).aspx
    PS:
    This forum is for general questions and feedback related to Microsoft Excel, if you have more Excel develop issue, I recommend you post to MSDN forum
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to create and install a toolbar to a browser using java

    Hi all,
    Can any one guide me about how to create and install toolbar to a browser using java ??
    please any one help me about this,i am not getting any idea about this..
    Thanks and Regards
    Sandesh S

    I doubt you can. Those browser toolbars are done by implementing to an API provided by the browser. That API, I don't believe, is provided via Java. But of course, that would be entirely up to the browser, not Java.

  • How to create relationship between two records using MDM Java APIs

    Hi,
    I am trying to create relationship between two records using Java Apis. Please guide me in doing this.
    Regards,
    Niraj

    Hi Niraj,
    There is ModifyRelationshipsCommand:
    http://help.sap.com/javadocs/MDM/SP06/com/sap/mdm/data/commands/ModifyRelationshipsCommand.html
    Retrieve Relationship command:
    http://help.sap.com/javadocs/MDM/current/com/sap/mdm/schema/commands/GetRelationshipListCommand.html
    Also, please refer similar thread, MDM Java API and relationships.
    Hope it helps..
    Regards,
    Mandeep Saini

  • How to compile and deploy an custom plugin access gate with java?

    Hi.
    How can deploy and registrer my custom plugin, for ready to use in the Access System Console in Authentication Managment?
    thanks

    Hi,
    Is it an AccessGate, or an authentication plugin? The procedure for adding custom plugins for use in OAM authentication schemes is described here:
    http://docs.oracle.com/cd/E21764_01/doc.1111/e12491/authnapi.htm#BABCEIIA
    Regards,
    Colin

  • How to retrieve the data from MDM hierarchy table using MDM Java API

    Hi,
    I had a hierarchy table in MDM. This table had some column say x. I want to retrieve the values of this x column and need to show them in a drop down using MDM Java API.
    Can anyone help me to solve this?
    Regards
    Vallabhaneni

    Hi,
    Here is your code...
    TableId Hier_TId = repository_schema.getTableId(<hierarchy table id>);
    java.util.List list = new ArrayList();
    ResultDefinition Supporting_result_dfn = null;
    FieldProperties[] Hier_Field_props =rep_schema.getTableSchema(Hier_TId).getFields();
    LookupFieldProperties lookup_field = null;
    TableSchema lookupTableSchema = null;
    FieldId[] lookupFieldIDs = null;
    for (int i = 0, j = Hier_Field_props.length; i < j; i++) {
    if (Hier_Field_props<i>.isLookup()) {     
                                  lookup_field = (LookupFieldProperties) Hier_Field_props<i>;
         lookupTableSchema =repository_schema.getTableSchema(lookup_field.getLookupTableId());
                                  lookupFieldIDs = lookupTableSchema.getFieldIds();
         Supporting_result_dfn = new ResultDefinition(lookup_field.getLookupTableId());
         Supporting_result_dfn.setSelectFields(lookupFieldIDs);
         list.add(Supporting_result_dfn);
    com.sap.mdm.search.Search hier_search =new com.sap.mdm.search.Search(Hier_TId);
    ResultDefinition Hier_Resultdfn =     new ResultDefinition(Hier_TId);
    Hier_Resultdfn.setSelectFields(rep_schema.getTableSchema(Hier_TId).getDisplayFieldIds());
    ResultDefinition[] supportingResultDefinitions =
    (ResultDefinition[])list.toArray(new ResultDefinition [ list.size() ]);
    RetrieveLimitedHierTreeCommand retrieve_Hier_tree_cmd =
    new RetrieveLimitedHierTreeCommand(conn_acc);
    retrieve_Hier_tree_cmd.setResultDefinition(Hier_Resultdfn);
    retrieve_Hier_tree_cmd.setSession(Auth_User_session_cmd.getSession());
    retrieve_Hier_tree_cmd.setSearch(hier_search);
    retrieve_Hier_tree_cmd.setSupportingResultDefinitions(supportingResultDefinitions);
    try {
         retrieve_Hier_tree_cmd.execute();
    } catch (CommandException e5) {
              // TODO Auto-generated catch block
              e5.printStackTrace();
    HierNode Hier_Node = retrieve_Hier_tree_cmd.getTree();
    print(Hier_Node,1);
    //method print()
    static private void print(HierNode node, int level) {
    if (!node.isRoot()) {
         for (int i = 0, j = level; i < j; i++) {
              System.out.print("\t");
         System.out.println(node.getDisplayValue());
    HierNode[] children = node.getChildren();
    if (children != null) {
              level++;
    for (int i = 0, j = children.length; i < j; i++) {
    print(children<i>, level);
    //end method print()
    Best regards,
    Arun prabhu S
    Edited by: Arun Prabhu Sivakumar on Jul 7, 2008 12:19 PM

  • IllegalStateException while invoking livecycle formserver using java api

    I am new to livecycle formserver.when i am trying to invoke formserver using java api ,it is giving illegal state exception.My servlet application to invoke formserver is deployed in tomcat 5.o in one system and jboss with formserver is in anohter system.
    I am using the following properties to connect formserver in another system.
    Properties ConnectionProps = new Properties();
    ConnectionProps.setProperty("DSC_DEFAULT_EJB_ENDPOINT", "jnp://172.21.49.116:JBoss:1099");
    ConnectionProps.setProperty("DSC_TRANSPORT_PROTOCOL","EJB");
    ConnectionProps.setProperty("DSC_SERVER_TYPE", "JBoss");
    ConnectionProps.setProperty("DSC_CREDENTIAL_USERNAME", "administrator");
    ConnectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", "password");
    And i am confusing in setting the following paths using UrlSpec object.
    URLSpec urlspec = new URLSpec();
    urlspec.setApplicationWebRoot("http://JBOSS:8080/FormServer");
    out.println("after webroot");
    urlspec.setContentRootURI("http://localhost:8080/srvapp");
    out.println("after contentroot");
    urlspec.setTargetURL("http://localhost:8080/srvapp/HandleData");
    My .xdp file is in my localsystem where my tomcat is running.and renderToHtml method is like this:
    FormsResult formOut = Fsc.renderHTMLForm(formName, TransformTo.AUTO,oInputData,htmlRenderSpec,"",urlspec,null);
    i am passing the path of the .xdp file in my local system to formName parameter.
    with this code i am facing problem.Is there anything wrong in my code?or is there any settings to change in formserver?
    please help me with this problem,i am trying to sort out this problem.
    Any help?
    Thanks in Advance

    If you are invoking LiveCycle ES2 on JBoss compile with JDK 1.6 and run against JRE 6.
    Steve

  • How service order and sales order are linked to Service notification

    Hi I want to link a specific service order type and a specific sales order type to a service notification how to do that. Please help me out

    The sales order to service order link is also there in table AUFK
    AUFK-KDAUF (sales order number)
      Sales order
    Also check document flow of the sales order for the item in question:
    If the item is a a service item then

  • How to setAction  and make a bookmark linked to a page number?

    I am writing a vbscript...
    set ADoc=CreateObject("AcroExch.AVDoc")
    ADoc.Open   "D:\aaa.pdf"
    set BMark = ADoc.GetPDDoc.GetJSObject.BookMarkRoot
    BMS= BMark.Children
    MsgBox     BMS(0).name
    Now i want to give BMS(0) a link to the page number 11.
    Is "setAction" can do this?
    How?

    click file/publish settings/html and use the quality settings dropdown.
    if that doesn't lead to satisfactory file size, you may need to check the properties of each bitmap in the library to see if it's set to over-ride the global settings.

  • How to specify and use arrays in .h and .m files?

    Ok, this is pretty basic. For regular variables, no problem.
    (in .h)
    @interface Mine : NSObject {
    int x;
    @property (assign) int x;
    @end
    (in .m)
    @implementation Mine
    @synthesize x;
    @end
    But, when I want to specify an array of objects, it fails, with "error: bad property declaration".
    (in .h)
    @interface Mine : NSObject {
    int x[15][10];
    @property (assign) int x[15][10];
    @end
    (in .m)
    @implementation Mine
    @synthesize x;
    @end
    If I don't use @property and @synthesize, I can use these arrays just fine in the .m file.
    However, the problem I run into, quite often is that I cannot use these without a warning, which usually causes an exception:
    x[myX][myY] = s;
    or
    [obj getX:myX :myY];
    gives a warning "assignment from a distinct Objective-C type" or "obj may not respond to -getX" which usually ends up with an exception:
    2009-08-17 16:56:00.512 AppName[9638:20b] * -[Mine getX::]: unrecognized selector sent to instance 0x103a800
    2009-08-17 16:56:00.538 AppName[9638:20b] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[Mine getX::]: unrecognized selector sent to instance 0x103a800'
    2009-08-17 16:56:00.548 AppName[9638:20b] Stack: (
    807902715,
    2426465851,
    808284155,
    Can someone tell me how to do this properly?
    My app wants to create 2 arrays of 15x9 to manage a playing board on an x,y grid.
    I want one array to be of type NSString, and the other to be of class Piece (one of my own classes). In some places it works without the @property declaration using a custom getter and setter, but in other places the exact same code gives me one of the errors above.
    What am I missing?

    Still working this out. In my App, I really only use the "NSMutableArray* cells" to use as a representation of my initial layout, built from a string obtained in my scene plist file. (sceneTableau)
    An example board can be seen at http://reststop.homeip.net/dev/Picture4.png for those interested in seeing what the working code does.
    - (Board*) setupBoard:(Board*)b {
    if (b) {
    int loc=0;
    b.cells = [[NSMutableArray alloc] initWithCapacity:(boardWidth*boardHeight)];
    for (int n=0; n<boardHeight; n++) {
    for (int m=0; m<boardWidth; m++) {
    NSRange myRange=NSMakeRange(loc*3,2); // get first 2 of 3 chars
    NSString* t = [b.sceneTableau substringWithRange:myRange];
    [b.cells insertObject:t atIndex:loc];
    [t release];
    loc++; // increment to next piece
    } // for m
    } // for n
    }This works great, doing my own math for x,y. In fact this initialization loop ONLY used m,n for documentation and could simply be "for (int loc=0; loc<boardWidth*boardHeight; loc++)" to shorten the code. Since I don't ever actually modify the NSString*s I could make the setter routine for cells be an empty void method, e.g. "- (void) setCells:(NSString*) {}".
    I also noticed a couple of method in the NSString.h file:- (NSArray *)componentsSeparatedByString:(NSString *)separator;
    - (NSArray *)componentsSeparatedByCharactersInSet:(NSCharacterSet *)separator;which would allow me to simply use:b.cells = [b.sceneTableau componentsSeparatedByCharactersInSet:whitespaceAndNewlineCharacterSet];since my sceneTableau string is simply 135 sets of 2-character codes separated by a space or a newline.
    Taking this in the other direction, I could dispense with the cells array and simply use the sceneTableau field and my getter routine would be:- (NSString*) getCells:(int)loc {
    NSRange myRange=NSMakeRange(loc*3,2);
    return [b.sceneTableau substringWithRange:myRange];
    } (I may go ahead and make this change as it is a little more compact and I don't use this array except to initialize the display).
    However, for the pieces, I do need to keep an array, as there is more structure to the objects, and some objects will move from one position to another and the display will need to be redrawn after each move, changing the appearance of at least 2 positions and as many as 4 positions.
    If I did need to modify the contents of a cell, then I presume that I should really use objects of type NSMutableString* instead of NSString, and then the proper way to set a new value would be:
    - (void) setCells:(NSString* s) {
    NSMutableString* c = [self.cells objectAtIndex:(x+y*boardWidth)];
    [c setString:s];
    I am not sure what I need to do in the way of releasing c in this context. Does c go away at the end of the invocation, and no longer points to anything, or do I need to assign nil, or release c?
    I presume I could also do as my current code does[self.cells replaceObjectAtIndex:(myX+myY*boardWidth) withObject:s];but again I am not sure what I need to do about release. I gather that the NSArray handles retaining and releasing the objects which are put into or removed from its instance, and they will all be released when I release the NSArray in my dealloc method.
    Based on this, I do need to rethink my NSMutableArray* of pieces, as I will need to write methods that move the pieces and my earlier model does not allow them to move freely without having to perform some coding gymnastics in Objective-C. I will still need to use an array, NSMutableArray most likely.
    Have I missed anything?
    A quick question on my "setupBoard" routine above. You may have noticed that it takes a Board* and returns a Board*. I currently have to use[b setupBoard:b]; which seems wrong, but it works. What is the proper way to define and invoke this message so that my code would look more like this???[b setupBoard];
    and then to finish and do my releases
    [b upsetBoard];Is it correct Objectivc-C syntax to have a method that manipulates the contents of an object, such as my setupBoard method, and to say:invocation:
    [boardPointer setupBoard];
    implementation:
    - (void) setupBoard {
    if ( self ) { // test for non-nil
    [self.cells = [self.sceneTableau componentsSeparatedByCharactersInSet:whitespaceAndNewlineCharacterSet];

Maybe you are looking for