Call java class that exists in separate server

We have a java class on application server that provides some functions for returning important message. We need to call some functions by using stored procedures or functions in DB. Can anyone tell me how to tell the procedure to connect to the application server?
Remarks:
1. The OS of application server is UNIX and OS of DB server is Windows
2. The administrator login/password on both the application server and DB server are known
Thank you for your help
Edited by: user7946502 on 2009/6/19 上午 1:43

Technically this is possible, though I do not have any experience with Axis but I have tried it with JAX-WS.

Similar Messages

  • Calling Java class stored in directory from PL/SQL

    Is it possible to call Java class that is stored in directory from PL/SQL
    or must those Java classes be stored in Database?
    Has anyone any information considering this?
    Cheers,

    user529557,
    You have the following options:
    * Web Services
    * Servlets
    * EJB
    * RMI
    * JMS
    There may be others.
    Good Luck,
    Avi.

  • Call java class by using servlet

    i written simple servlet with doGet(0. I need call java class when i run servlet
    my requirement is when i start the server i will call servlet it will redirect to another page.
    but before that servlet will run java class. which i have written externally.
    i need to run java class by using servlet then it will redirect to another page.
    could you give the proper solution

    You don't call classes - you call methods.
    There's nothing special about servlets except the requirement that they implement HttpServlet. Servlets and other classes they interact with all get compiled into WEB-INF/classes on the server.
    To forward a request to, say, "other.jsp" you do:
    getServletContext().getRequestDispatcher("/other.jsp").forward(request,response);

  • Calling java class from jsp page

    Dear Friends.
    I wrote jsp page and java class.
    Am calling java class from jsp page. after processing result,
    I have to refresh jsp page from java class.
    processing time may take 5 minutes or 1 minute etc. that depends on user.
    Can It be possible ? if possible , How ?

    Ok, I get a very strange error now:
    org.apache.jasper.JasperException: Unable to compile class for JSPerror: An error has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
    What is this??? Anyone?

  • Calling java class from abap function moduile

    Is it possible to call java class from function module.
    i am a java guy. my need is to call a java class from a  function module in the backend. which in turn performs certain functions.
    i would be highly obliged if someone could let me know if this is possible.
    regards
    Srikumar V

    Hi Srikumar ,
    you can call a java webservice in ABAP .
    u can call the webservice and via that u can trigger the java class..
    Regards
    Renu

  • Call Java Class and Methods from ABAP

    Hi
    I install de JCo, But how i can call java class and methods from ABAP?. somebody has an example?
    The tutorial say that's is possible,  but don't explain how do that?
    Thanks.
    Angel G. Hurtado

    If you need only simple java program, you do not need to install JCo. The following codes can call java class.
    DATA: COMMAND TYPE STRING VALUE 'C:\j2sdk1.4.2_08\bin\java',
          DIR TYPE STRING VALUE D:\eclipse\workspace',
          PARAMETER TYPE STRING VALUE 'Helloworld'. "here the name of your java program
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
       EXPORTING
         APPLICATION = COMMAND
         PARAMETER = PARAMETER
         DEFAULT_DIRECTORY = DIR
       MAXIMIZED =
         MINIMIZED = 'X'     "If you need the DOS window to be minimized
      EXCEPTIONS
        CNTL_ERROR = 1
        ERROR_NO_GUI = 2
        BAD_PARAMETER = 3
        FILE_NOT_FOUND = 4
        PATH_NOT_FOUND = 5
        FILE_EXTENSION_UNKNOWN = 6
        ERROR_EXECUTE_FAILED = 7
        OTHERS = 8.
    Tell me if it works.
    Nuno.

  • How to call a class that extends a frame from a panel ?

    How to call a class that extends a frame from a panel ?
    I am trying to create an application say "Videoshow"
    Videoshow has a panel which in turn consists of 2 components : 1]a textarea( to show the contents of a page) and 2] a mediaclip(to show the video).
    Now I have an application "MediaApplication"(to show the videoclip) which extends Frame (Code from Java 2 Unleashed, Chap 21). I want to show this MediaApplication in Component 2 of the above panel. But when I do this, I only see the MediaApplication frame instead of the whole SlideShow.
    I want to do something likethis.
    VideoShow :
    |---------------------------------|-------------------|
    | |
    | (Comp 1) | (Comp 2)
    | TEXTAREA | Video Clip
    | |(MediaApp entends Frame)
    |---------------------------------|-------------------|
    What is the best way to achieve this ? Also which component can I use to show the videoclip ?

    im not familiar with the code you mention from Java 2 Unleashed, but your best bet is to read up on Swing a bit - so you get an idea of how Swing containers and components work - then im sure you'll find a solution to your problems. Then if you encounter any difficulties whilst your attempting to do that, post your code in the Swing forum and im sure someone will help you.

  • BAD CLASS FILE ERROR WHEN TRYING TO CALL JAVA CLASS IN WEB-INF DIRECTORY

    I AM NEW TO THIS FORUM. PLEASE HELP ME IDENTIFY/RESOLVE THIS ERROR - bad class file: /java/tomcat/webapps/ChoiceTel/WEB-INF/classes/XYZ/SMUA.class. OTHER JSP SCRIPTS THAT CALL JAVA CLASSES DO WORK WELL.
    THE FUNNY THING ABOUT COMPILIING THIS JAVA CLASS WAS - I HAD TO A jar xvf OF activation.jar and mail.jar IN THE XYZ DIRECTORY BEFORE SUCCESSFULLY COMPILING SMUA.
    THE CALL BEING MADE FROM THE JSP SCRIPT IS AS FOLLOWS:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <BODY>
    <%@ page import="XYZ.*" %>
    <%!
    %>
    <%
    SMUA sndmail = new SMUA();
    sndmail.postMail ("[email protected]","Test Subject","What Message","[email protected]");
    %>
    </BODY>
    </HTML>

    Dude. Please don't shout. If your keyboard is like mine, it can produce both upper and lower case letters. Please use them appropriately.
    Do you have the activation.jar/mail.jar available in the WEB-INF/lib directory for this application?

  • JavaFX : How to call java function that returns hashtable and manipulate

    I have a requirement to {color:#0000ff}create a java object in JavaFX script code{color}. Then call a java function using the created java object. The java function returns hashtable. Then traverse through each element of hashtable. Finally I need to create a similar structure in JavaFX.

    If you need to use a Java class that uses generics you need to take special steps. Since JavaFX does not support generics you need to create a java wrapper to hide the calls that use generics and call the wrapper class from FX.

  • How to call java class from pl/sql procedure ?

    Hello everyone,
    My query is..
    There is one pl/sql stored procedure which is doing some business logic and storing data in some columns of one table, suppose the table name is 'ABC' .. and the rest of columns of table ABC are getting updated using java class. Now my problem is whenever I insert data in ABC using store proc.. i have to call that java class so that it will update the rest columns ( why java class for updating the columns in ABC is ..because that logic cant be done from pl/sql proc.. it has to be done using java )
    and the other thing is.. oracle is in one machine and java is in another .. :(
    hope ..u can help me out !!
    Thank in advance !!

    but that updation have to be done from java code only.. we are using GIS tools .. have to create some shape files and update the column with that shape file.. so creation of shape file has to be done from java code only..
    so how to call java class file which is on another machine and oracle in another..

  • Calling java classes from plsql procedures

    I'm attempting to call java classes from plsql procedures which will create cmsdk users, folders, groups etc, however when I attempt to load a java class into the oracle schema using the command:
    loadjava -user user/password@database -resolve classname.class
    It generates error messages to the effect that classes (cmsdk classes) required by the class cannot be found. The class is loaded and marked with the status "invalid". Is it therefore necessary for me to load the cmsdk packages into the schema?
    Cheers
    David

    Using CMSDK Java API within the database has never been supported
    (see Problems loading IFS's java class into database
    When we needed to invoke CMSDK code from our PL/SQL code, we used one of two approaches:
    (1) use advanced queues to send requests to an external Java program (the CMSDK code, running outside the database) and receive the results back (asynchronous choice); or
    (2) make an HTTP request to a Java servlet (the CMSDK code, running in some Java web container like iAS) and get the response back in some custom format (XML or something) (synchronous choice).
    It seems to me that the CMSDK Java API was designed to be used only in middle-tier, not in database tier.
    Regards,
    Daniel.

  • B1if Call Java Class

    I am attempting to call a java class using the Call Java Class atom. 
    Java Class Name: full name of the java class to be called (boldjar must be available in the B1i base pathbold)
    Where is the B1i base path?
    I have created a simple java class the implements Callable that simply returns 1.
    The exception I get com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.bizprocessor.BizProcException: BPE027 Could not get an instance for 'Callable'-class
    I have pasted the jar file in just about every path I can think of and still get this exception.
    Does anyone have a simple example of what the class should look like?  The callable interface only has a single function named call which does not take parameters.  How do we create a class that accepts parameters?

    Well I found this under Control Center -> Development -> BPC Reference
    User defined Java-Classes for the Call-Atom via the 'Callable' interface
    com.sap.b1i.bizprocessor.Callable
    This interface must be implemented by classes intended to be called by the B1iBizProcessor via the Call-Atom. Instances of these classes are subject of internal pooling if they do not indicate after a usage that they should be destroyed. In order to be able to create them internally in a generic way, they have to implement a parameterless initializer !!!
    I just searched the entire BizStore for com.sap.b1i.bizprocessor.Callable but was unable to find it. 
    I also searched Google for com.sap.b1i.bizprocessor.Callable and it only come up with my posts.
    I also searched the SAP Partner Portal, and SAP SDN with no avail.
    Is this functionality only for internal SAP use?

  • Problem with cfobject calling java class

    hi there,
    i have a small java class that takes 2 arguments in
    (fileToRead & fileToWrite) and everything runs fine when i run
    the class from the command line...
    C:\>java csvParser fileToRead fileToWrite
    however when i try to instantiate the class via cfobject like
    so :
    <cfobject type="Java" action="create" class="csvParser"
    name="convert">
    <cfset convert.init(#tmpfile#, "text.xml")>
    it continuously throws the following error at me :
    Unable to find a constructor for class csvParser that accepts
    parameters of type ( java.lang.String, java.lang.String ).
    any ideas ast to what i may be missing here...startin to
    drive me batty.

    C:\>java csvParser fileToRead fileToWrite
    Suggests you passed arguments as args[0] and args[1] to the
    method
    public static void main(String[] args)
    <cfobject type="Java" action="create" class="csvParser"
    name="convert">
    <cfset convert.init(#tmpfile#, "text.xml")>
    Suggests the code for the class CSVParser has the following
    constructor definition:
    private String s1, s2;
    CSVParser (String s1, String s2) {
    this.s1=s1;
    this.s2=s2;
    This seems unlikely, in view of
    "everything runs fine when i run the class from the command
    line". One possibility is to convert the
    public static void main method into, for example, the public
    method
    doThemFiles(String s1, String s2), not forgetting to include
    the return-type in its signature. You could then run
    <cfobject type="Java" action="create" class="csvParser"
    name="convert">
    <cfset convert.doThemFiles("#tmpfile#", "text.xml")>

  • How to call java class file from jsp

    hi
    we need to call java classes (which are written separately in .java file )from jsp file. we need it for our project if anyone knows about please reply us.
    bye
    siva sankari

    you can call the methods in a lot of ways. you could use scriptlets with the
    <%@ page import="package.class"%> and then inside instantiate an object
    <%
         MyClass mc = new MyClass(parameters if any);
         mc.theMethodYouWantToCall();
    %>or as Madathil has stated,
    or use the JSP tags
    <jsp:useBean id="anyname" class="classname"/>and then use the getProperty tag
    or even Custom Tags

  • How do I write a Java Class that Loads a RPT and exports to PDF All Automatically?

    <p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="2">I am using Crystal Reports for Eclipse and I am trying to create a java class that will do everything independently.<span>  </span>It will take a .rpt file, load it with data from the database and then export that to a pdf file and put that pdf in a specific location with a specific name.</font></p><font face="Times New Roman" size="2"> </font> <p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="2">I am using the Crystal Reports for Eclipse and the sample jsp project does that but I am looking for a java class example that doesn't require human interaction through the website.<span>  </span>I have read the help file and seen snippet examples but I am not seeing a complete example.<span>  </span>Could someone point me in the proper direction of a good example either in the forum or the help file for eclipse?</font></p>

    <p>Hi,</p><p>    If you wanted to achieve this in a JSP page then I would suggest using the JSP Page Wizard as it allows you to select PDF as an output type. You can run the wizard and choose the PDF output and it will automatically generate the required code for you. </p><p>However, as you want to use a Java class then I would suggest downloading the following package of sample code:</p><p><a href="http://support.businessobjects.com/communityCS/FilesAndUpdates/crxi_r2_jrc_desktop_samples.zip">http://support.businessobjects.com/communityCS/FilesAndUpdates/crxi_r2_jrc_desktop_samples.zip</a> </p><p>This package includes a number of sample Java classes that demonstrate how to use the engine. The one that you will be interested in is titled "<strong>JRCExportReport"</strong> </p><p>To make life easier I would suggest trying the class in a Crystal Reports Web Project as the runtime libraries will automatically be in the classpath. </p><p>Anyway, give this a shot and let me know how you make out. </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) <br /><br /> <a href="http://www.eclipseplugincentral.com/Web_Links-index-req-ratelink-lid-639.html">Rate this plugin @ Eclipse Plugin Central</a>          </p>

Maybe you are looking for

  • Best method to load XML data into Oracle

    Hi, I have to load XML data into Oracle tables. I tried using different options and have run into a dead end in each of those. I do not have knowledge of java and hence have restricted myself to PL/SQL solutions. I tried the following options. 1. Usi

  • Problem with FILE  TO EMAIL Scenario

    Hello ALL, I am working on FILE--->XI--> Email scenario, done with designing and configuration part.I try to post a sample test file, File adapter is not picking up the file from the directory and throwing exception in Adpater Framework Window. I see

  • Final Cut Pro - Can the video move pre subframe?

    I recently have two videos. And I want want to synchronize these two videos. But I found that the video can only be moved pre frame and the sound of these two video cannot match perfectly.  So I detach the audio of the 2nd video and I try to synchron

  • Unwanted caret for br / in JEditorPane

    I have an HTML document that I'm displaying in a JEditorPane object, using myEditorPane.setPage(URL url);Wherever I've forced a line break in the html, using , in the JEditorPane display I see a ">" at the beginning of the next line. For example, the

  • Retrive records using ODATA with SQL functions

    Hi, I want to use SQL functions (for instance replace function) while retrieving records using ODATA endpoint using javascript. Like this: parent.SDK.REST.retrieveMultipleRecords( "$select=AccountId,Name,Telephone1&$filter=" + "replace(Telephone1,'-'