Java code to access the SLD

Hi,
I'm writing a java application that needs to connect to the SLD Server and then query and return data about the SID and available instances and associated database(s).
I have figured out the connection piece using  SAP_JCODestinationAccessor, but have not figured out how to get the SID and instance names.  It appears that the methods I want to use are in the lcrclient.jar file (perhaps SAP_ApplicationSystemInstance?
Are there any code example or javadocs that are available to help me understand the methods that are available for data retrieval from the SLD?
Thanks in advance,
Tammy

Hi,
Yes, the examples are where I got my start from.  In general my problem is that I didn't have an JCO's defined, so no data was being returned. Thus the example only helped me minimally.
I'm assuming that when not using a JCO, I still can make a connection to the SLD Server and then using the CIM objects be able to retreive the SID and associated instances.
Tammy
Tammy

Similar Messages

  • In java ,how to access the  user-defined type of pl/sql?

    in my application,i using the following code to access the pl/sql type self-defined,but it throws run-time exception,how can i resolve it?String sqlStr="{call BossStat.dunStat(?,?,?,?,?,?)}";
    OracleCallableStatement ocstmt=(OracleCallableStatement)conn.prepareCall(sqlStr);
    int paramIndexInt=1;
    ocstmt.setInt(paramIndexInt++,100);
    ocstmt.setInt(paramIndexInt++,1);
    ocstmt.setInt(paramIndexInt++,1);
    ocstmt.setTimestamp(paramIndexInt++,new java.sql.Timestamp(System.currentTimeMillis()));
    ocstmt.setTimestamp(paramIndexInt++,new java.sql.Timestamp(System.currentTimeMillis()));
    ocstmt.registerOutParameter(paramIndexInt++,OracleTypes.ARRAY,"BossStat.TP_STATLABELVAR");
    ocstmt.execute();

    You can have a look at this how to document
    http://otn.oracle.com/sample_code/tech/java/codesnippet/jdbc/objects/ObjectTypes.html
    You can apply similar concept if you want to use stored procedure.
    If you still get problems, post the type that you have created and the error you are getting.
    Chandar

  • Does java api allow access the ethernet card directly

    i m working on cluster computing. i like to code in java. i need to send object from one single machine to other machines in a university computer lab. i would like to send the objects very efficiently and fastly. i used java.net and also java.nio. but i think it would be fast more if i could directly access the ethernet card- read from and write to the network interface card directly.

    does java api allow access the ethernet card directlyNo.

  • After I have installed the Portal I cannot access the SLD

    After I have installed the Portal (Netweaver 2004s) I cannot access the SLD - it tells me that I do not have access to it.  Even though I have a super admin rights to the portal.
    Please advice?

    Azim,
    1. If you are loggin in to the Portal as Administrator/j2ee_admin user, you should be having the role "LcrAdministrator".Search for this role and assign this role to your j2ee_admin or Administrator
    2. Have you done the Post Installation Configuration of SLD.
    Please go through the SLD configuration first.
    3.If you go to http://host:port/sld -> Administrator tab is disabled because Your "Administrator" user doesnt have Security Role "LcrAdministrator".
    All these steps mentioned clearly in Post Installation Guide.Please read all the steps carefully and go ahead and Configure your system.
    4. Check this Post -Installation Guide:
    https://websmp207.sap-ag.de/~sapidb/011000358700000351302008E
    5. If you dont have service market place user id and password:
    go through this SAP help:
    Another Important link to get more knowledge on
    SLD in your scenario
    http://help.sap.com/saphelp_nw70/helpdata/EN/11/0dfe55e0c8fc4e910706a47ca6859b/frameset.htm
    ->Click "Configuring Systems to Connect to SLD" ->Click "Connection Between Web AS Java Systems and SLD"
    If you need more help let me know.
    Regards,
    Karthick Eswaran
    *Reward points for helpful answers

  • When using Java Wizard with Firefox 3.6.23 on a Mac OS X 10.6.8 it keep getting an error message: "The Java Wizard cannot run. Please configure your browser to allow Java applets to access the filesystem." Have NO idea how to fix this problem.

    When trying to upload files I received the following error: "The Java Wizard cannot run. Please configure your browser to allow Java applets to access the filesystem."

    If the problem is with a site that is hosted using MOVEit DMZ by Ipswitch, please notify the site owner of the issue and ask them to apply the patch that is available on the support site to resolve the issue.
    This is a better resolution than downgrading your version of Java that was updated due to security issues.

  • Static initialization of java code included in the Imported Archives jars?

    Hi
    Does SAP PI 7.0 support static initialization of java code included in the Imported Archives jars?
    Static block of a java class included in the Imported Archive jars throws a Runtime Exception called ExceptionInInitializationError while trying to run.
    Regards,
    RDS

    Have you tested the code outside PI?

  • After downloadeding the latest Java plugin, I start to receive "Please configure your browser to allow Java applets to access the filesystem" message when I try to run a download wizard. What do I need to do? BTW, IE does not have this problem.

    I had no problem using a download wizard Java applet to download file to my computer from an SFTP site using Firefox. When I tried to do the same thing with Chrome, I was told to download the latest plugin. Once I did that, I receive the following message when I run the downlaod wizard:
    The Java Wizard cannot run.
    Please configure your browser to allow Java applets to access the filesystem.
    I got the same message using Firefox and Chrome. However, I have no problem using IE to run the same download wizzard. Please help.

    If the problem is with a site that is hosted using MOVEit DMZ by Ipswitch, please notify the site owner of the issue and ask them to apply the patch that is available on the support site to resolve the issue.
    This is a better resolution than downgrading your version of Java that was updated due to security issues.

  • HT201304 I can't remember the four digit code to access the Restrictions settings.  Is there a way of resetting it?

    I can't remember the four digit code to access the Restrictions settings.  Is there a way of resetting it?
    I set restrictions on a child's iPod and can't remember the code to change them.

    Apple Unsavvy wrote:
    Thanks.  Do you know how many attempts I get before the iPod locks?
    No, but you will probably be warned.  Also if you happen to have a backup from before you set your Restrictions you can do a restore from that backup.  But if the latest backup was done after you set the restrictions, you are out of luck.

  • How to write java code to read the pixel color in some place of screen?

    Hello all:
    How to write java code to read the pixel color in some place of screen?
    The java application iteself doesn't have any GUI.
    thank you
    -Danel

    See java.awt.Robot

  • How do I pass an error status from my java code back to the Program Job Ser

    How do I pass an error status from my java code back to the Program Job Server?
    I have a jar program object that reports a scheduled status of "Success" even if the java code errors out.

    Exceptions thrown from the program object are ignored by the program job server.
    You need to configure the Program Object, then stream out a special string sequence to the stdout of the Program Object, to set the scheduled instance status to Failed.
    Look up SAP KBase  1201804 - How to programmatically set the status of a Program object to "Failed"
    Sincerely,
    Ted Ueda

  • Update the result to client (JAVA code) aftere completing the user task

    Hi All,
    I have a simple workflow activity with in my BPEL process .
    FLOW is like this:
    1)----->Initiate/Process
    2)----->Workflow user task
    3)Approve/Reject /Others
    4)If APPROVE a call to web-service method
    5)reply
    If i got the out put as approve the next step is a call to web-service which should give the output to client(JAVA code).
    Is the above senario possible through BPEL.
    Thanks,
    Kalyan.

    HI ALL
    I fixed this problem. Problem was because of classpath. After setting the path of class file in classpath, issue was fixed.
    Regards
    Arun

  • Execute java code before rendering the page

    Hi,
    In a task flow, can I execute some java code before the page/view is rendered (i.e. some preprocessing). I would need to be able to have access to the bindings on the page.
    Thanks!

    Can you try doing as specified below:
    If it is simple JSPX, you could use the phase listener as follows:
    JSPX Code:
    <f:view beforePhase="#{SamplePageBean.phaseListener}">
    <af:document id="d1">
    <af:form id="f1">
    <af:panelFormLayout id="pfl1">
    <f:facet name="footer"/>
    </af:panelFormLayout>
    </af:form>
    </af:document>
    </f:view>
    Bean Code:
    public class SamplePageBean {
    public SamplePageBean() {
    public void phaseListener(PhaseEvent phaseEvent) {
    if (phaseEvent.getPhaseId().equals(phaseEvent.getPhaseId().RENDER_RESPONSE)) {
    // DO NECESSARY INITIALIZATION
    Thanks,
    Navaneeth

  • Java code common to the applications modules

    I need help to generalise some methods and include them in project.
    I have some Java methods and I need it to be able to include/calll these methods from different application modules.
    I need it accessible to all app modules.
    Is there any way to do it?

    what we do is create a root application module to be the parent of all our app modules. edit that root app module and add your other app modules as nested app modules under the "Application Modules" section. then in your child app module java code you can initialize your root application module by using the getRootApplicationModule() method:
    YourServiceImpl yourServ = (YourServiceImpl)getRootApplicationModule();
    then you have access to all your methods in the master app module. however, to make sure you're accessing your app module in the desired hierarchy, you have to base your jhs app def file on your root app module or use your app module under the desired hierarchy in any of your custom adf pages.
    hope this helps
    paul

  • Pythagors into java-code (i got the idea, i think,  but need it simplified)

    Goodday all :),
    I have been trying to turn the forumula | a^2 + b^2 = c^2 | into java code.
    To clear it up a little more;
    1. Define unknown variable
    2. Define values of other two variables
    3. Program calculates
    x1. unkown variable is 'a'
    x2. b = 20 , c = 40
    x3. a = [(40^2) - (20^2)] ^0.5 (sorry couldnt figure out superscript)
    What i was thinking as a concept;
    1. Java asks for uknown value -> user defines as 'a' , 'b' or 'c'.
    2. Java If else statement
    2.1 if 'd' -> java asks again
    2.2 else 'e' --> java asks again etc (if else statemenst from d - z)
    import java.io.*;
    public class example {
         public static void main(String[] args) {
              System.out.println("define uknown value");
              BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
              boolean running = true;
              while(running) {
                        String line = reader.readLine();
                        if (line.startsWith("d")) {
                             System.out.println("wrong input, define unknown value");
                             running = true;
                             } else      if (line.startsWith("e")) {
                             System.out.println("wrong input, define unknown value");
                             running = true;
                             } else      if (line.startsWith("f")) {
                             System.out.println("wrong input, define unknown value");
                             running = true;
                             } else      if (line.startsWith("g")) {
                             System.out.println("wrong input, define unknown value");
                             running = true;and furter i was thinking;
    If a, b or c is pressed it will ask for the values of the other two
    and it will be such a code as above, repeating itself;
                        String line = reader.readLine();
                        if (line.startsWith("a")) {
                             System.out.println("please define b");
                             running = true;
                             if (line.startsWith("1")) {
                             int x = 1;
                             System.out.println("b=1");
                             running = true;
                             } else      if (line.startsWith("2")) {
                             int x = 2;
                             System.out.println("b=2");
                             running = true;
                             } else      if (line.startsWith("3")) {
                             int x = 3;
                             System.out.println("b=3");
                             running = true;and so on till, lets say 1000?
    Now my question is;
    Is this the right way to make this program?
    I would have like a .java file of severel megebytes if i wanted the values to get up to 10000 or something >.<

    Aargh! No. This code snippet might be of help.
    try {
       int x = Integer.parseInt("42");
       System.out.println("X = " + x);
    } catch( NumberFormatException e ) {
       System.err.println("Not a number: " + e);
       e.printStackTrace();
    }You would probably also find it useful to read about "regular expressions" if you always expect the formula to have exactly the same form.

  • Password code to access the PSTN

    Hi all
    I have a CCME ver4 in a router 2811 with 4 fxo ports to PSTN and 20 ip phones.
    I need establish password code by users to have different type the access to the PSTN (local, LD, LDI), and that the phone number and code password appear in the report call history, to control the users.
    The router have a COR configuration but work by phone and not by user.

    There seem to be a TCL script in CME 4.01 ( i have never seen this script yet) according to this link, that can authorize pins and if pin is valid, the call is allowed.
    FAC script can check the pin with an external Radius server.
    http://www.cisco.com/hk/learning/showcase/files/Depolying_CME_and_CUE_Deployment_Management_Security.pdf
    PS:please remember to rate posts!

Maybe you are looking for

  • Business Partner in Organizational Model Missing

    Hi I have added an Org Unit in Development Server and the ID and BP number is generated. I have Transported from Dev to Quality server by using RHMOVE50 to move the org unit. The Org unit and ID are transported successfully but the BP number is missi

  • 2013 Icon Editor bug?

    I searched and did not see this listed as a bug, but I seem to have issue anytime i used the Icon Text feature versus just using the Text tool. 2013 SP1 2012 SP1 Solved! Go to Solution.

  • Subscribed Calendars Not Updating

    I currently only subscribe to two calendars - US holidays and movie releases. Neither will refresh today. This is the first time in a week I've tried to refresh them so I don't know whether the issue just started today or during the last week. I'm go

  • Model update error

    Hello i have a list of usernames in a listbox, when i select one user and press the commandbutton i see the id of the user - so far so good. <h:form id="myForm"> <h:selectOneListbox value="#{selectedUserBean.selectedUser}"     converter="User">   <f:

  • 3D Graph How to avoid pixel interpolation?

    You can see my problem in attached VI. I have 3D graph that represents topography and I would like to use it as an intensity chart but the problem is that there is some interpolation between the pixels so it looks too good which unfortunatelly makes