How to call c/c++ built in func., using JNI in Java

hello friends,
I want to write a prog. in Java to call a function written in C or C++ without disturbing the c/c++ function
thanks

now only i noticed your reply,
this subject of the post doesn't have anything to do with the question (as far as I see).am created thread so fast as well i didnt notice that subject
sorry for that.
As the error message you see comes clearly from the pl/sql procedure you are calling from the application module method, the groovy call works.
yes you are right.We can't decide what your function does if you pass null as a parameter. You can check the parameters before you pass them to the procedure or write the procedure in a way that it handles null parameters.
yes i cross check that, some description field i did that,oh my god :) which world am.
For some description, i didnt do that. so only problem..
if (someinputvalu != null)
call groovy some //adf.object.applicationModule.getmethods
//you catch me correctly. well thanks a lot. again... now problem went off.

Similar Messages

  • How to call session directly in bdc without using SM35

    how to call session directly in bdc without using SM35

    HI
    good
    you r using the sm35 to see the session for calling teh session in your report
    ATA:   messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE ,
    c_session  LIKE   apqi-groupid VALUE 'Z3PL_CUST' ,
    c_job      LIKE   tbtcjob-jobname VALUE 'Z3PL_JOB_CUST' ,
    c_flag     TYPE    c VALUE 'X'  ,
    g_qid      TYPE apqi-qid      .
    thanks
    mrutyun

  • How to set a variable in portal session using web dynpro java.

    Hi,
    I have created a web dynpro application, which is running inside portal. I have created a role called "R1". Inside role R1, i have created 3 workset W1, W2 and W3. and inside each workset i have some pages and iviews.
    My requirement is when user logins to the portal , and when he clicks on role R1 for the first time, a login page should come (so that we can do revalidation), and when he enters his password again in that login page , then only workset W1, W2 and W3 should be visible/accessible to him and after successful revalidation, if he clicks again on role R1, in that particular portal session, than that login page should not come.
    for this, i thought i will set a variable in portal session, whenever user successfully revalidated himself, and if after successful revalidation he clicks again on role R1, i will check in doinit method of webdynpro whether variable is set or not (which i already set on successful revalidation), and if it is set then i will do Donavigation else i will present login page to the user.
    Can anyone tells me how to set a variable in portal session using web dynpro java.
    thanks
    Arush

    Hi,
    Try this:
    WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE, key, value)
    WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE, key)
    Ex:
    WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE,"Key1","Value1");
    String value1=WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE,"Key1").toString();
    /people/william.cui/blog/2007/02/12/sharing-session-context-between-parent-and-external-windows-running-on-same-host
    Regards,
    Charan

  • How to create a user in UME Database using web dynpro java custom application

    Hi,
    Can you please suggest me how to create a user in UME Database using web dynpro java custom application.
    My Requirement is user can register his/her user id in SAP Portal 7.3 UME database.
    Please suggest me.
    Thanks and Regards,
    Amit

    Hi Amit,
    Generated Documentation (Untitled)
    This is what you're looking for, there's no real cook-book -- though Amey mentioned there might be some material on SDN, perhaps some tutorials.
    You should be looking into com.sap.security.api.IUserFactory, methods newUser(String) which gives you and IUserMaint and commitUser(IUserMaint, IUserAccount) -- IUserAccount can be obtained using com.sap.security.api.IUserAccountFactory, method newUserAccount(String)
    Hope it helps,
    D.

  • How to extract the mouse cursor image without using JNI

    I want to get the image of the mouse cursor of the system using java. The Robot class captures the screen only, but the mouse icon image is not the part of the screen, so it is not easily detected. But we can get the mouse cursor position using API, but how to get the exact image icon, without using JNI. I don't want to generate my own cursor at that position.

    I am building a Remote Desktop kinda app using java..... I want the screen of the remote comp to be viewed on my screen and generate events from my machine to the remote machine. So, I am capturing the screen images of the remote machine. But the cursor is not part of the screen object. i want to extract the cursor image icon from the remote machine to my machine and render the image.

  • Can you see how many calls are waiting in a queue using Supervisor.

    Is there a way to see how many calls are sitting in a particular queue using supervisor or is there and additional software or hardware i need to use or purchase?
    I am using  Contact Center - 5.0(2)SR01_Build053

    Do you see any CSQs listed in the upper left box in the Supervisor?
    If so, when you click on one or the top-level tree item you should see stats relating to CSQs to the right. You may have to scroll that window accross so see some stats.
    Regards
    Aaron

  • How to call SAP GUI Graphical interface by using SAP ACTIVEX Control?

    Hi,all
    I want to connet my delphi system with SAP system. But we still need to call SAP GUI Graphical interface into our delphi system. Could we use SAP ACTIVEX Control to implement this funciont?
    Or, is there any other method to Call SAP GUI Graphical interface into other system?
    Besides call SAP GUI into IE by using portal
    Thanks and best regards.

    check out this thread
    Re: Calling SAPGUI transaction out of BSP application

  • How to find who is login Portal by using webdynpro with java

    Hi Friend
    One Supplier( Abc) Login into the portal . How to find it "ABC"  user login into portal by using webdynpro with java
    My requirement is
    One Supplier login in to the portal that supper having one Vendor number ( it is fixed)
    Exp: Portal user vijay login his vendor number 12345 like
            Suppose u r login into the portal u have one vendor number like this
    i have to desine one screen that is find PO'Status Screen, In that Screen, Meterial Group,line number,PO Status and Vendor number is avaliable.
    Supplier login in to that portal he is finding some items.
    this my Requirement. i m creating this screen ..How to fined user name from portal .once i have to find this user name by using webdybpro with java. I have to assine vendor number
    Regards
    Vijay

    Hello Vijay,
    You can wirte the following code to get the logged in user's ID
    try {
              IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
              IUser sapUser = wdClientUser.getSAPUser();
              IUserAccount[] acct = sapUser.getUserAccounts();
              String str = acct[0].getDisplayName();
              wdComponentAPI.getMessageManager().reportSuccess("user "+ str);
         } catch (WDUMException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         } catch (UMException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
    You need security api for using it make sure that is present.
    Thanks,
    Hope this will help
    Sarbjeet

  • How to call people from built-in speakers?

    Does anyone know how you can call people from Skype™ with no microphone, but only from speakers? My friend wants to know this, he apparently wants to use some soundboard, and if you call from your speakers, the person you are calling can only hear the soundboard but nothing else like background noise or anything.
    He's been bugging me to find this out, lol. Anyone know? He has a MacBook Pro 15" OS X Lion.

    for others to hear you or for you to record your voice a microphone is required
    a speaker can never be used at all it's just a magnetic construction which moves air to  produce sound

  • How to call stored procedure having parameter as oracle type from java???

    Hello,
    I have created following type & stored procedure in oracle. How can i call this stored procedure from my java class?
    I want to pass 2d array to this procedure.
    CREATE OR REPLACE TYPE type_survey AS OBJECT ( emp_id number,emp_name varchar(100));
    CREATE OR REPLACE TYPE tbl_survey AS VARRAY(100) OF type_survey;
    CREATE OR REPLACE PROCEDURE INSERTEMP (pp in tbl_survey)
    IS
    BEGIN
    FOR I IN pp.FIRST .. pp.LAST
    LOOP
    INSERT INTO SURVEY (id) VALUES (pp(I).emp_id);
    END LOOP;
    END;
    /

    CREATE OR REPLACE TYPE type_survey AS OBJECT ( emp_id number,emp_name varchar(100));
    CREATE OR REPLACE TYPE tbl_survey AS VARRAY(100) OF type_survey;
    CREATE OR REPLACE PROCEDURE APP_DATA.INSERTEMP (pp in tbl_survey,result out varchar)
    IS
    BEGIN
    FOR I IN pp.FIRST .. pp.LAST
    LOOP
    INSERT INTO SURVEY (id) VALUES (pp(I).emp_id);
    END LOOP;
    result:='done';
    END;
    public static void passArray() throws SQLException
         Connection conn=null;
         try{
              conn=getOracleConnection();//this method returns connection object
         catch (Exception e)      
              e.printStackTrace();
         String[][] val=new String[2][2];
    *     val[0][0]="1";*
    *     val[0][1]="aaa";*
    *     val[1][0]="2";*
    *     val[1][0]="bbb";*
    StructDescriptor desc1=StructDescriptor.createDescriptor("TYPE_SURVEY",conn);
    STRUCT p1struct1 = new STRUCT(desc1,conn,_val_); *//showing error at this line*
    ArrayDescriptor arraydesc = ArrayDescriptor.createDescriptor("TBL_SURVEY",conn);
    ARRAY array = new ARRAY(arraydesc,conn,*p1struct1*);
    CallableStatement cstmt = conn.prepareCall("{ call INSERTEMP(?,?)}");
    cstmt.setObject(1,array);
    cstmt.registerOutParameter(2, OracleTypes.VARCHAR);
    cstmt.execute();
    String res=cstmt.getString(2);
    System.out.println(res);
    in the above java code, I have passed 2d array of string to STRUCT constructor and passed STRUCT object i.e. p1struct1  to ARRAY constructor. is it correct? that means @bottom line, I want to pass val array to my stored porcedure. How can i do this? above code is showing following error......
    Exception in thread "main" java.sql.SQLException: Fail to convert to internal representation: [Ljava.lang.String;@146c1d4
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
         at oracle.jdbc.oracore.OracleTypeNUMBER.toNUMBER(OracleTypeNUMBER.java:540)
         at oracle.jdbc.oracore.OracleTypeNUMBER.toDatum(OracleTypeNUMBER.java:54)
         at oracle.sql.StructDescriptor.toOracleArray(StructDescriptor.java:717)
         at oracle.sql.StructDescriptor.toArray(StructDescriptor.java:1375)
         at oracle.sql.STRUCT.<init>(STRUCT.java:159)
         at com.flologic.ArrayDemo.passArray(ArrayDemo.java:29)
         at com.flologic.ArrayDemo.main(ArrayDemo.java:57)

  • How to call tdms file in DIAdem programatically using LabVIEW

    Hi all,
               I'm working on a project which has to acquire and stamp data in every 5 ms and store the data from the test cycle start up to almost a months' time. We have decided to store the data in the TDMS file format. We are going to use DIAdem for report generation. I'm new to NI diadem. So I need to know whether it is possible to acquire at the rate of 50Ks/s of around 15 channels and store data to the TDMS file and how we can call a TDMS file into DIAdem and generate reports in the HTML format.

    Hi Jothiraja,
    Yes, I think this is an excellent choice.  In DIAdem you can just drag and drop the TDMS file from the NAVIGATOR tree view on the left into the Data Portal on the right in order to load the TDMS file.  The REPORT panel in DIAdem has a "File >> HTML Export..." menu you can use to export your configured report in HTML format.  Both the data loading and the HTML export can also be run programmatically in DIAdem, if you need to automate the reporting process.
    On the LabVIEW side, how large is your acquisition buffer going to be?  1000 values on each of the 15 channels?  5000 values on each of the channels?  If your acquisition buffers are going to be smallish, then you may want to consider creating a "NI_MinimumBufferSize" property on each of the 15 channels, assigning a value to this property that is the number of channel values you want to flush to disk at a time.  The question here is how much of the resulting TDMS file will be stored data vs. binary buffer header information.  If your resulting TDMS_Index file is tiny compared with its TDMS file, then you can ignore this tip.  Alternatively, you could run the "TDMS Defragment.vi" at the end of the data acquisition, or equivalently load the acquired TDMS file into DIAdem and then re-save it over the original.  In both of these cases you will get just one binary buffer at the top of the TDMS file, and all the rest of it will be stored data.  Again, you can compare the size of the TDMS file with its TDMS_Index file to show you what the effect is.
    TDMS is plenty fast enough to stream the 15 channels at 50kS/s that you propose, and I believe you will be very happy with the choice of TDMS as your file format and DIAdem as your reporting engine.  I'll also be happy to help you through whatever obstacles you may run into along the way.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How to call a secure external Web Service using Oracle BPEL and OWSM

    Hi,
    i have to invoke an external secure Web Service using SOA Suite 10.1.3.1, but i don´t know how to do this. Do i use OWSM gateway or Agent? how to configure the gateway or agent to pass the required security to the external secure web service.
    thanks in advance
    Dong

    Are you getting any errors? What type of XAI Class are you using?
    One thing I've noticed is that if you are making changes to the XAI Sender you will have to restart the environment before the changes can take effect.
    Also, if you are using RTHTTPSNDR as XAI Class you may have to include the HTTP Method - Post in the context.
    Hope this helps.
    Regards,
    Philip

  • Syntax for how to call method of one comp in other comp     wd java.

    Let us assume,
    there is method1 in view1 comp1.
    tell me syntax for calling method 1 in view2 comp2
    thanks in advance.
    Edited by: madhu1011 on Nov 9, 2011 11:31 AM

    Hi Madhu,
    This is the situation:
    comp1-> method 1 , view1
    comp2-> view2
    You need to access method1  in view2 of comp2.
    For that, do the following steps:
    1.) First create a method (for eg: method1) in comp1 (under implementation of view1).
            eg: public void method1(){
                    <......some logic...>
    2.)Save the meta data.
    3.) In comp2, you will find an option called used components. In that right click and add the component comp2. (Carefully select comp1 itslef).
    4.)Save the meta data.
    5.) Then go to view2 of comp2 and take implementaion part and right the following logic in wddoinit() (or any other standard or custom method).
    wdThis.wdGetComp2Interface().getMethod("method1"); 
    By this way, we can access the method1 of comp1 in comp2.
    Regards,
    Jithin

  • How to call parent view event or method from popup in java webdynpro

    Hi ,
    I have  view  in my webdynpro component. I created a  button, when i click i am opening  a popup window.
    In side  popup window i am doing some search criteria. I want call a parent view method from popup window and populate search results in parent view table control.I can able to pass the data through context mapping. But i want  a  custom method where i want  to write a code to populate the table control ( i don;t want  to use the wdDoModifyView() method).
    Please help me.
    Thanks
    Aravinda

    Hi,
         The methods in a view are only accessible inside same view. you cannot call it outside the view or
         in any other view although its in same component.
         If you want to have a method in both views, then create the method in component controller and
         from there you can access the method any where in whole component.

  • How to call web services from Acrobat API using VC++

    Hi,
    I have api plugin which installs custom menu and tool bar to adobe acrobat. In this plugin once user installs this plugin, he need to activate this tool by entering key value. this limites to limited number of users (which is decided by client while buying).
    I am using javascript and VC++ with Visual studio 2008.
    So can some one suggest me how can i achive this.
    Thanks
    Shiva

    First, this is the scripting forum.  You want the SDK forum.
    Second, this isn't an Acrobat issue.  It's a C++ programming issue. If you want to connect to a web service you'll need to use the windows or mac socket interface.  If you're doing this using MFC then there is a library for internet interactions. If not, I'm sure there is still a library for it, I know there is a system API, you'll just have to look around.  But the main point is that it's completely outside the Acrobat SDK.
    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    http://www.adobe.com/devnet/acrobat/javascript.html
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)

Maybe you are looking for

  • No First aid available

    Option+Command click does not bring up First Aid going round in circles simply get the error message: " There was an error opening the database for the library "~/Pictures/Aperture Libraries/Aperture Library.aplibrary". " The only option is to quit!

  • Error in Apple Support Communities

    I encountered an error while writing an extensive post and lost all my work. And because I am too busy programming I am not going to redo all my work, the asker is just going to have to suffer. This error occured while I was writing in the HTML windo

  • Unpaid Overtime

    Hello expert, We have overtime in 2005 at 10pm to 1am. It should be 3 hours overtime. But, in processing of time data, system only generates 2 hours overtime (10 to 00 paid, 00 to 01 unpaid). We don't do time evaluation and we can't tick previous day

  • Html bold in jLabel in linux

    Hi, I'm trying to put Html in a Label. However the bold isn't working under linux. In windows it works. But in linux it doesn't. I tried playing around with it. But nothing worked for me. zText1 = "test"; zText2 = "test"; zLabel.setText("<html><font

  • Embedding xsl template

    Hello guys, I wrote a little app that will turn an xml file into one with a different format, using an xsl template. Is it possible to embed this template in the code of the app? I think it would be easier to distribute this way. How can I achieve th