Call remote applications

I am new to Java.
I need to write a java application on windows, which calls to execute a native program(fortran program) on a remote unix(SUN), and returns the execution result back locally.
rmi is the tool? please give me some direction.
thanks.

you need 2 java processes running
one on the client system and one on the sun box
both java programs will need to be remotable if you're doing 2-way communication
other than that, i'd get a book/tutorial on RMI
if you're new to java, there's going to be a learning curve here
if you're new to programming, you're in trouble :-)

Similar Messages

  • How to programmatically call remote application module - JDev 10.1.3.3.0

    Hi,
    I've an ADF web application (10.1.3.3.0) deployed onto an OAS server. I'd like to be able to access view objects via the application module of this web app from a simple java class on another server.
    I've created a simple class to query a local application module (included in the same project as the simple class). This works fine but I'm not sure how to change this to access an application module when it's remote on another server. Can anyone assist?
    Here is my sample code for querying a local application module/view object:
        public static void main(String[] args) {
            ApplicationModule applicationModule =
                Configuration.createRootApplicationModule("com.almac.model.common",
                                                          "AppModuleLocal");
            try {
                ViewObject eventList = applicationModule.findViewObject("SipEventsView1");
                eventList.executeQuery();
                while (eventList.hasNext()) {
                    Row event = eventList.next();
                    System.out.println("Event Name: " + event.getAttribute("EveName"));
            } catch (JboException e) {
                System.out.println(e.getMessage());
            } finally {
                Configuration.releaseRootApplicationModule(applicationModule, true);
        }Thanks,
    Paul.

    You can expose an AM as an EJB or Web service to expose them for remote access:
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b25947/web_services.htm#CJAEEICB

  • How  to communicate with a remote application that uses http post to request connection

    Ok, I will try to make this simple as to avoid any
    confusion.
    I am trying to receive connection requests from remote applications installed on user pc's.
    The application uses POST method to send the request to connect to my database, and if required update some tables.
    The application is not a webpage. I have no access to the internal workings of the application nor do I have any specific information about how it sends its POST. I am sure of the following:
    The app will POST to my .cfm page
    "IsConnectionAllowed" = "yes"
    This is asking my cfm page if its ok to connect. I would need to use a <cfif> to verify the the first part of the POST is in fact
    "IsConnectionAllowed" = "yes"
    If this returns true, (the app also uses to POST to pass "username" and "password") my .cfm page will then perform a query and check the username and password against the database. If a matching record is found, the application expects my page to reply with
    "#Answer# OK- connected;"
    Once the answer is given the application will then respond with data to insert or update my tables.
    Now, I know how to do the queries and update tables etc, but I have never received data from an application before.
    I tried using the <cfform> tag with a mehod of GET, and then trying to send my reply with <cfoutput>, but that didn't work. The application doesn't give any feedback or error messages. It either connects or not.
    I also tried the <cfhttp> tag, but that didnt work either. I am not very experinced with coldfusion. I used it years ago and am just getting back into it.
    I am sure this is a pretty easy thing to do, but my methods arent working.
    Using the above information, can somone please show me how I would accomplish this communication? I can then use the same method to retrieve the data for my table updates and queries.
    Here is a sample of what I have already tried:
    <cfform method="get">
    <cfif>
    "IsConnectionAllowed" = "yes"
    <!-- I need to query a username or password. But for testing I will just give the OK to connect -->
    <cfoutput>#Answer# Ok - connected;</cfoutput>
    <cfelse>
    <!-- When I query username and password, if the query returns no records I deny the connection -->
    <cfoutput>#Answer# Not connected;</cfoutput>
    </cfif>
    </cfform>
    BTW, I have examples of this being done using .php and .asp. I need to do this using .cfm. I can post the either the .php or.asp code if it will be helpful in converting the function into a .cfm page.

    Thanks Fernis.
    That code allowed me to connect!
    I have an error on the remote application, but I think thats due to the fact that I commented out the database connection and query strings. As I am mostly concerned with connection at this point, I just wanted to test that my cfm page will recognise the POST request and send the right answer, In this case
    ##Answer## Ok - connected;
    That worked perfectly and the application received the ok to connect.
    I can now use your code as a base to carry on with my database connection and update query.
    I can't thank you enough. I wouldnt have figured that out in a million years of trial and error.
    I knew it was simple though. I was over thinking it.
    I do have one last question though... In the code you presented you have
    <cfif structKeyExists(Form,"isConnectionAllowed") AND form.isConnectionAllowed EQ "yes">
    Can you you explain this    structKeyExists(Form,"isConnectionAllowed")
    I have never seen this before. Why the Form followed by a comma? I am guessing you are asking if there is an element in the POST called "isConnectionAllowed". Is that correct?  If so, do I not need to do that for each POST'ed element such as username, password, and each of the other fields that will be updated in the session?

  • How to get, from a remote application, list of groups & users?

    I need to get list of groups, and users in a group,
    and profile of a user of weblogic
    from a remote application.
    Do I need to use classes from com.bea.p13n.security.management.authentication? How?

    2 ways.. u might be able to set up trust between the domains or something and then call the UserManager and GroupManager EJBs.
    Or if u are using RDBMS authentication, you can just go against the database and write u'r own queries.
    Kunal

  • Where can we define that a FM is called remotely

    Hi experts,
    Some function modules are implemented, and it seems to me that they are called remotely, from another non-SAP système, to create purchase orders, my question is, where can i find the settings that show when one module function is called? Should it be an RFC connexion?
    Thanks in advance.
    Soufiane.

    You want to know if the FMs are being called remotely by a external system?
    First thing is know if the FMs are remote enabled. You can check this in the FM attributes in SE37.
    The only way I know would be turning the DIA traces to 2 and waiting to see if some external application is calling these FMs...

  • Cluster Remote Application Module

    Is it possible to deploy remote application module in clustering environment (for JClient client application)?
    I try to deploy in two standalone OC4J, but it always failed while migrating ejb session bean to another instance. I put replication="EndOfCall" in orion-ejb-jar.xml, but "VMTermination" get the same error while OC4J is terminated. The error (in client) as follows:
    java.lang.RuntimeException: IOException encountered in end of call migration of StatefulSessionBean
    No errors found in server side, although I run OC4J with -Dcluster.debug=true and -verbosity 10.
    Please anybody help me....I've promised to my user that our application has no single point of failure. With this unresolved issue in ADF-JClient, I think I need to rewrite my application....and starting from zero :(
    thanks://yudi

    Repost 1

  • Calling Remote C program from Report2.5

    Any one got an oppurtunity to use user_exits to call remote C or
    Pro*C Program from Report2.5 development either widows NT or
    unix environment.
    Please give me some examples how to use it.
    Thanks
    null

    Hi Aparna,
    In order to zoom in on the root cause of your problem, it would be helpful to have more information on your application. Have you tried calling your C DLL from any other programming languages? What exactly are the inputs and outputs (along with datatypes) of your DLL? Does LabVIEW give any error message when it "hangs"? I am sure that we can work together to resolve this issue.
    Regards,
    Casey Weltzin
    Applications Engineer
    National Instruments

  • Wrap remote application

    Hi community,
    We need to develop an ADF application (A) that wraps other remote application (B) ... please help me with ideas about of how architect and implement A !!!
    B is a web application built with JSP, exists in a remote data center. We can't control B.. it's a black box for us, B don´t offer all services that we need but we depend of B for a long time
    We are thinking implement A with screens that emulate the screens of B, but calling B after each action (button pressed) in the emulated screen in A via POST/GET to trigger its logic... and parsing the HTML response of B..... more extra functionality that we need!
    Please give comments and recommendations about what risks exist with this architecture... What scenarios with the communication via POST/GET with B made imposible to implement A..
    Thanks in advance!!
    Jac

    I've got the same problem with remote app (except I'm using a 1st gen iphone w/ 2.0.2) I was hoping 2.0.2 would fix things --it didn't. Also, my itunes library is not just on an external drive, but on a NAS. I've tried every setting, reboot, firewall, diff. computer, etc. combo mentioned in these forums and the remote app still can't find the library. I enter the code, it tries to verify or whatever, then times out. What gets me is that itunes knows exactly when I stop looking for the library with the remote app because it instantly disappears from the devices list in itunes. They're talking, just not communicating.
    I can't tell if it's a Bonjour thing or a port thing or what. But I really want this to work --dangit!

  • Local function calling remote function - error

    Dear All
    i have following remote function wich return some value from both methods ie.
    1) select func1(variable, varialbe) from dual@remoteDB; working
    2) select func1(variable, varialbe) from dual; -- by making a synonym at local
    Now i create a local function funclocal calling remote functino i.e. func1 in this example as:
    CREATE OR REPLACE FUNCTION funclocal(locc varchar2, artnoo number)
    RETURN NUMBER IS
    query_str VARCHAR2(1000);
    STKQTYY NUMBER;
    artno number(10);
    loc varchar2(80);
    BEGIN
    artno := artnoo;
    loc := locc;
    query_str := 'select func1(loc, artno) from dual ';
    EXECUTE IMMEDIATE query_str
    INTO STKQTYY;
    RETURN STKQTYY;
    END;
    compiled successfully.
    But when i run as:
    SQL> select funclocal('abc', 469183) from dual;
    select funclocal('@st3', 469183) from dual
    ERROR at line 1:
    ORA-00904: "ARTNO": invalid identifier
    ORA-06512: at "funclocal", line 11
    Please guide me.
    Regards
    Saeed

    EXECUTE IMMEDIATE query_strAs Andreas states: Why are you using dynamic sql?
    From what I see all you need is sth like
    create or replace function funclocal (locc varchar2, artnoo number)
       return number
    is
    begin
       return func1 (locc, artnoo);
    end funclocal ;
    /even the whole concept of a »local« function seems suspicious. Why do you need that one?

  • How do I call an Application Module method from a EntityImpl class?

    Guys and Gals,
    Using Studio Edition Version 11.1.1.3.0.
    I've got a price update form, that when submitted, takes the part numbers and prices in the form and updates the corresponding Parts' price in the Parts table. Anytime this Parts view object's ReplacementPrice attribute is changed, an application module method needs to be called which updates a whole slew of related view objects. I know you can modify view objects via associations (How do I call an Application Module method from a ViewObjectImpl class? but that's not what I'm trying to do. These AppModuleImpl methods are the hub for all price updates, as many different operations may affect related pricing (base price lists, price buckets, etc) and hence, call the updatePartPricing(key) method.
    For some reason, the below code does not call / run / activate the application module's method. The AppModuleDataControl exists and recordPartHistory(key) is registered and public. At runtime, the am.<method> code is simply ignored, and as a weird side-effect, I cannot navigate out of my current page flow.
      public void setReplacementPrice(Number value)
        setAttributeInternal(REPLACEMENTPRICE, value);
        AppModuleImpl am = (AppModuleImpl)this.getDBTransaction().findApplicationModule("AppModuleDataControl");
        Key key = new Key(new Object[]
            { getPartNumber() });
        am.recordPartHistory(key);  // AppModuleImpl method which records pricing history
        am.updatePartPricing(key); // AppModuleImpl method which updates a whole slew of related pricing tables
      }Any ideas?

    Thanks Timo.
    Turns out the code provided was correct, but the AppModuleImpl method being called was not. A dependent ViewObject wasn't returning the row I was expecting. I then tried to perform some operations on that row, which in turn ... just stopped everything, but didn't give me an error.
    It was the lack of the error that threw me off. I had never messed with calling an AppModuleImpl method from the EntityImpl so I assumed that's what was messing up.
    You are correct. It is available from the ViewRow, but I thought it better to put it in the EntityImpl. This method will be called every time the replacement cost is modified. If I didn't put it in the EntityImpl, I'd have to remember to call it every time a replacement cost changed.

  • I cannot get the remote application to control iTunes On a Windows Seven Dell Notebook computer

    Hey I need some help.
    I cannot get Apple's Remote application to take control of iTunes on a Dell laptop computer.
    It says to go to the Edit menu in iTunes On your computer, click on preferences &amp; then click on devices &amp; make sure there is a tick in the box that says look for a remote, but when you go to this Menu, There is nothing that says look for a Remote.  I cannot get my iPad third generation 64GB 3G+WiFi, iPhone five, or iPod touch fifth generation To control iTunes on a Apple TV Second generation Using Apple's remote application. I have checked everything to make sure the software is up-to-date.  I can get it to control  Apple TV fine, but it will not Take control of iTunes.
    I have gone through the Pairing process but it still Will not work.  I've installed iTunes twice &amp; checked the Firewall to confirm it is not blocking bonjour OR any other Apple software.   I have even tried completely disabling the firewall. It was perfectly fine last week,  then my friend got his house broken into &amp; he asked me to go onto iCloud.com to try &amp; locate his iPad,  ever since then, it has completely stopped working.  If anybody can help, it will be gladly appreciated.
    Thanks.
    bb

    cancersurvivorpdx wrote:
    ... it is missing as a hard disk drive on my Computers Desktop. ...
    That's because it is not a hard drive as such.
    cancersurvivorpdx wrote:
    ... It does show in the latest Itunes App and as a camera device ...
    That is correct.
    The Sync process is via iTunes...
    See here  >  http://support.apple.com/kb/HT1386
    From Here  >  http://www.apple.com/support/iphone/syncing/

  • Calling BSP application from CRM PCUI framework

    Hi All,
    We are using the CRM PCUI for channel partner management. Since CRM PCUI framework has some limitations as to how the data is formatted in the layout such as no multiple value selection ( since it is a generic framework using the blueprint tables we have to use the predefined layout settings) we want to call a standalone BSP application to maintain some of the data such as marketing attributes. We want to do this by providing a link to the standalone BSP application where the data can be maintained. Since we will be calling this application in the create mode of a new BP, is it possible to integrate the whole application as one logical unit ? I mean we want to commit the marketing attributes within the same 'save' methods of the pcui framework. Is this possible to do ? Any ideas or input is greatly appreciated.
    Thanks.

    Hi,
    we've already done a rework of the marketing attributes screen by using the technique I've described in my Weblog <a href="/people/gregor.wolf3/blog/2005/05/27/use-crm-pcui-html-viewer-to-call-a-custom-url">Use CRM PCUI HTML viewer to call a custom URL</a>. But it has one drawback: You can't use the Save button of the PC-UI applicaiton. You have to provide your own. But the usability enhanchement is rearly great.
    Regards
    Gregor

  • Calling error/application logs in CRM inbound proxy

    Hi All,
    In inbound proxy of CRM, I have to call Error/Application logs (for eg:SLG1) whenever an integration process throws some error. Has anyone worked on this kind of scenario to call different application logs in CRM or R3 side inbound proxy.
    If so, please give some ideas on this.
    Thanks
    Deno

    Hi Deno,
    did you have a look at my blog in which I describe it ?
    /people/michal.krawczyk2/blog/2006/09/20/xi-abap-mapping-logs--more-standard-better-visibility
    Regards,
    michal

  • Gatewayed Remote Application not displaying in ALI 6.5

    I have successfully created a Remote Web Service to display a remote application logon page. However, when I log in to the app, nothing is displayed in the portlet. I receive no errors both on the page and in ALI logging. What is going on? As far as I can tell the app is not redirecting to another server.

    Nevermind ... it was a problem in my CLASSPATH environment variable. It works now, though I haven't been able to run the fortune application either. I'll keep trying.

  • How to call the Application configuration in run time.

    hi guru,
    i have created two  Application configuraton   and it working fine.
    my question how to call the application configuration in run time.
    Example :
    Based on the user i want to change the Application Configuration.like Super user and Normal user.
    Advance thank's
    Regard's
    Vivekanathan.S

    Hi,
    Please try out this way-
    Have a look at this table -
    WDY_CONF_APPLU - (Customizing Data for Web Dynpro Applications).
    after you are done with the configuration--
    Ge the config id for the given application from this table. And depending on the user get an entry from this table and display accordingly.
    Please refer to these links -
    different default layouts for different CONFIG_IDs
    Get WDCONFIGURATIONID
    Regards
    Lekha

Maybe you are looking for

  • I haven't been able to put any data on my iPad in months!

    I'm set up for auto pay. Tried manually putting data on just will not go through 

  • An unexpected processing error occurred. Please contact Microsoft

    Before I get flamed like I did on StackOverflow, can I please make the point that there does NOT seem to be a clear route for getting official support for the Live SDK from Microsoft? I'm just trying to get someone from Microsoft to explain to me eit

  • DVD to DV

    Since using MPEG Streamclip yielded dropped frames every 1.5 seconds while using a QUAD 2.5G PowerMac, I thought I'd better ask you folks directly for a solution to a problem that Apple's tech support doesn't have an answer for: My Church has three c

  • Pairing Bravia KDL-50W829B with Wireless headphones (Sony BTN200)

    Hi, Own the KDLW829 set and recently purchased a set of Sony wireless headphones. I am not sure if the bluetooth option is designed to work for headphones - I have tried pairing but haven't been successful and a google search did throw up the likelih

  • Samsung HLN4365WX Audio out

    I would like to hook up external speakers/soundbar to subj TV, the instruction manual is very vague, rear jack Vidio/Audio Monitor Output says "Sends a vidio signal from the TV to an external source, such as a VCR" , RCA  jacks 1. vidio out 2. Right