Call a external application without using a webservice

Hi all,
How can we make a call to external application without using webservice from BPEL or OSB.Please share any links to refer.
Thanks,
Kiran

Hi.
Probably the options:
1. Adapters. BPEL PM offers a different set of adapters that allows the process to communicate with external apps
2. PRobably a basic HTTP POST could be an option
3. Writing some code inside a Java Embedded activity
Which application are u trying to communicate with?
thx
best

Similar Messages

  • Run External application without Exiting main application

    Hi,
    I am trying to implement a function that executes the external program from within my java application. I am using windows xp. I had googled for this and found some code but so far I am able to run the application in a condition if my main application exits. Instead I want to run the application without exiting my main application. How can I do that:
    Code I am using is:
    ========================
    try{
    Runtime.getRuntime().exec("external program");
    System.exit(0);
    catch (Exception err){
    err.printStackTrace();
    System.exit(-1);
    =========================
    my problem is I cannot run the external program without the line "System.exit(0)". If I remove that line, the external program only starts after I exit my main java application. Is there a way to run the external application without leaving the main application?
    By the way I am using the latest version of JDK 6 update 2 and Netbeans 5.5.1
    Thanks

    I tried and I tried and I couldn't make the same problem occur unless I specfically had a long task execute BEFORE calling the runtime command. See the code below:
    I tried a bunch of things, including having a GUI run before the Runtime call, after the runtime call. Neither affected the movie from being played.
    I tried with different versions of the runtime command, none of it made a problem.
    I tried running the application with a long task that would keep the main thread busy for a while AFTER I launched mplayer - no problem.
    The only thing that made the app work the way you describe was when I built the long task that keeps the main thread active for a while BEFORE I launched mplayer (which is the state of the code as I pasted it below).
    So my guess is that you have a single threaded application and you add the call to mplayer at the very end of your program's execution - thus it doesn't get called until the last thing. My suggestions:
    1) Move the call to the Start of your code, not the end
    2) Move your other work to a new thread so that it can be kicked off without holding the main thread in check.
    package movies;
    import inheritance.BaseWindow;
    import java.util.*;
    import java.io.*;
    class StreamGobbler extends Thread
        InputStream is;
        String type;
        OutputStream os;
        StreamGobbler(InputStream is, String type)
            this(is, type, null);
        StreamGobbler(InputStream is, String type, OutputStream redirect)
            this.is = is;
            this.type = type;
            this.os = redirect;
        public void run()
            try
                PrintWriter pw = null;
                if (os != null)
                    pw = new PrintWriter(os);
                InputStreamReader isr = new InputStreamReader(is);
                BufferedReader br = new BufferedReader(isr);
                String line=null;
                while ( (line = br.readLine()) != null)
                    if (pw != null)
                        pw.println(line);
                    System.out.println(type + ">" + line);   
                if (pw != null)
                    pw.flush();
            } catch (IOException ioe)
                ioe.printStackTrace(); 
    public class MyMainClass
        public static void main(String args[]) throws InterruptedException
             //This is just a GUI as a test
            BaseWindow bw = new BaseWindow();
            bw.show();
            //Keep App Running for a while
            int count = 0;
            while (count < 200) {
                 Thread.sleep(20);
                 count++;
                 System.err.println(count);
            if (args.length != 1)
                System.out.println("USAGE java movies.MyMainClass \"<movie to play>\"");
                System.exit(1);
            try
                Runtime rt = Runtime.getRuntime();
                //String[] cmds = new String[] { "cmd", "/c", "C:\\Mplayer\\mplayer.exe", args[0]};
                //String[] cmds = new String[] { "C:\\Mplayer\\mplayer.exe", args[0]};
                //Process proc = rt.exec(cmds);
                Process proc = rt.exec("C:\\Mplayer\\mplayer.exe "+args[0]);
                // any error message?
                StreamGobbler errorGobbler = new
                    StreamGobbler(proc.getErrorStream(), "ERROR");           
                // any output?
                StreamGobbler outputGobbler = new
                    StreamGobbler(proc.getInputStream(), "OUTPUT");
                // kick them off
                errorGobbler.start();
                outputGobbler.start();
                //Keep App Running for a while
    //            int count = 0;
    //          while (count < 2000000) {
    //                 Thread.sleep(200);
    //                 count++;
    //                 System.err.println(count);
                // any error???
                int exitVal = proc.waitFor();
                System.out.println("ExitValue: " + exitVal);
            } catch (Throwable t)
                t.printStackTrace();
    }I will restate myself:
    "I was not able to repeat the problem, except as described, as long as I took the hints mentioned in the article I posted into account and actually put them into action."
    Of course, as soon as I ignored those hints, I was able to reproduce the error described above quite easily in all the different tests I made... But I guess the OP implemented those fixes, right? He did say he read the article...
    Message was edited by:
    stevejluke

  • How to create a popup window to load HTML page in AIR application without using any mx or spark?

    How to create a popup window to load HTML page in AIR application without using any mx or spark components?
    I need to load the HTML page in popup in AIR application without using any of the <mx> or <spark> components. I need to open in the application itself not in the browser.(If we use navigateToURL() it will open in th browser)

    Can we achieve this? can somebody help me on this scenario..

  • Clustered application without using EAR in WebLogic 6.0

              Hi,
              Is it possible to set-up a clustered application without using EAR files in WebLogic
              6.0.
              Please point me to instructions for the same.
              Thanks
              B.Srini
              

    Yep. Possible.
              refer bea docs
              "Srinivasan Bhoopathy" <[email protected]> wrote in message
              news:3c5e5815$[email protected]..
              >
              > Hi,
              >
              > Is it possible to set-up a clustered application without using EAR files
              in WebLogic
              > 6.0.
              >
              > Please point me to instructions for the same.
              >
              > Thanks
              > B.Srini
              

  • I cannot hear a call or be heared without using earphones or loud speaker

    I cannot hear a call or be heared without using earphones or loud speaker; IS THERE A SOLUTION?

    ya i just posted a question just like this a little while ago hoping for a solution.

  • Is it possible to develop struts application without using JPF in workshop 8.1?

    Hi,
    Is it possible to develop application based on struts framework without using
    Java Page Flow in workshop 8.1?
    I developed one application without using JPF , but it is showing some Deployment
    errors.
    rgds,
    girish

    Girish--
    Sure, though, I'd still encourage you to take a look at JPF. :)
    If you remove the JPF runtime files from WEB-INF/, WEB-INF/lib, and JPF specific entries in
    web.xml, you can start defining a struts-config.xml file against the Struts 1.1 runtime in the
    webapp, or you can replace that with a different version as you need. You'll also need to define
    the Struts runtime in web.xml including the servlet, taglibraries, etc.
    One note, the JPF flow view and other JPF specific editors don't work over a normal
    struts-config.xml file.
    Hope that helps...
    Eddie
    Girish wrote:
    Hi,
    Is it possible to develop application based on struts framework without using
    Java Page Flow in workshop 8.1?
    I developed one application without using JPF , but it is showing some Deployment
    errors.
    rgds,
    girish

  • Is it possible to make a javafx ui application without using layout managers ?

    I want to make an user interface application without using layout managers. In my previous attempt i made an application in java swing. There i used the setBounds() function. Is there any function like setBounds() in javafx ?

    There really isn't any more to it than that.
    Again, I have no idea why you would do things this way (either in JavaFX or in Swing), but:
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.Label;
    import javafx.scene.control.TextField;
    import javafx.scene.layout.Pane;
    import javafx.stage.Stage;
    public class ManualPositioningExample extends Application {
        @Override
        public void start(Stage primaryStage) {
            final Pane root = new Pane();
            final Button button = new Button("Click me");
            final Label label = new Label("A Label");
            final TextField textField = new TextField();
            root.getChildren().addAll(button, label, textField);
            label.relocate(25, 25);
            textField.relocate(75, 25);
            textField.setPrefSize(100, 20);
            button.relocate(25, 50);
            button.setPrefSize(150, 20);
            Scene scene = new Scene(root, 400, 200);
            primaryStage.setScene(scene);
            primaryStage.show();
        public static void main(String[] args) {
            launch(args);

  • Adding an External Application that uses J2EE Form Based Security

    I'm trying to add an External application that uses the J2EE Form based security. i.e. uses j_username, j_password and posts to j_security_check.
    I don't really see how Oracle SSO will support this. The container needs to take control of a clients request and determines when the "Login" page is presented to establish credentials. Posting directly to j_security_check isn't working for me.
    I'm using Sybase EAServer 4.12 as the external application.
    Is this supported in Oracle SSO?
    Do I need to provide a different mechanism for logging user's in?
    Also, can someone explain what the benefit would be if I configured the EAServer app as a "Partner" app? I would still have to provide an interface for login. The input would be different but the end result would be the same I guess. What advantages does a Partner app have?
    Lastly, is there an NNTP server for these forums?
    Thanks.
    Darrell

    The cure for the symtops described below was to simply add a welcome-file-list
    element with appropriate welcome pages to the web.xml descriptor. It makes sense
    now that I have worked it out.
    Todd
    "Todd Gould" <[email protected]> wrote:
    >
    I have an application comprised of several JSPs that are protected via
    Form based
    security and enforce an SSL connection via the appropriate declarations
    in the
    web.xml. This aspect of the application seems to be working with the
    exception
    of one small quirk.
    If a user presses that back button until such time as the receive the
    container
    provided login page once again, and subsequently provide a valid user
    id and password,
    they are NOT successfully logged in. Rather, they receive the ugly 403
    Forbidden
    error that states that the server understood the request, but is refusing
    to fufill
    it. This only seems to happen given the above course of events involving
    the
    use of a back button in the browser (or selection of an item from the
    history
    list). I suspect that this has something to do with the session id being
    cached
    or something, but I'm not sure? Can anyone offer any assistance on this
    one?
    Also, does anyone know of a way of preventing the user from bookmarking
    this container
    provided login page as this also seems to be causing problems for users.
    If they
    bookmark the first protected page of the application all is fine, but
    if they
    bookmark the login page they receive the 403 error.
    Thanks in advance!

  • Call an External Application from Web UI overview

    Hi Gurus,
    I am stuck with a situation here,
    Scenario is i have to create a button in overview page, such that when we click on it we need to call a external application.
    external application can be anything (URL).
    can anybody give a solution.
    thanx in advance.

    The process for launching the external URLs should be same as Web Dynpro Transactions.  But in this case while defining the URLs in the transaction launcher , you have to select the option for Non BSP URLs & defiine a MAPPED Logsys( In your case the could be any system in which the application exists). Also the URL for  Web Dynpro applicatons is sap/bc/webdynpro/sap/Web_Dynpro_Component_Name and is recognized by the target system. In your case you have to build a URL which should be recognized by your target system.
    This is how I have launched a ABAP webdynpro transaction. I guess if the URL is correct you can launch other external transactions.
    Regards
    Kavindra

  • Can i send a email from application without using exchange server?

    Hello
    I am developing a 3 tier application using EJB, JSP....and i want to incorporate the mail sending facility.
    Can i send a email from the application without using exchange server?
    plzz help!!!!
    Pavan

    You will require some kind of SMTP server to be able to send mail from your app (not necessarily M$ exchange.) Just look for mail servers for the platform of your choice.
    Vijayan

  • How can i reject incoming calls in lock screen , without using ON/OFF key ??? (in iOS 7.0.2)

    how can i reject incoming calls in lock screen , without using ON/OFF key ??? (in iOS 7.0.2)

    You can't. Either tap the Sleep/Wake button or just let the call to continue to ring.

  • Calling a Webdynpro Application in using WDURLGenerator.getApplicationURL

    Hi,
    I have to call a webdynpro application in an external window using the application name. Please note that no iViews are created out of the application which i am going to call.
    I have DC1 and DC2 and from the Comp Controlller of DC1 , i need to invoke the application in DC2.
    String depObjectName =wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
    WDDeployableObjectPart depObjectpart=WDDeployableObject.getDeployableObjectPart(depObjectName,"TestApp",WDDeployableObjectPartType.APPLICATION);
    String url = WDURLGenerator.getApplicationURL(depObjectpart) ;
    window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"Test View");
    window.show();
    Is this the correct API to get getDeployableObjectName which is in the different DC.
    Please let me know the correct API which i can use to get the getDeployableObjectName and the subsequently the Application which is availbale in the different DC.
    Thanks and Regards,
    Sekar

    Hi Chintan Virani,
    Thanks for your reply.
    Is it possible to get to know through the APis that the Webdynpro Application Deployed in the server is started.
    I hope some API's will be available.I need to open this application only when it is started.
    I tried this,
    IWDDeployableObject deplObj = WDDeployableObject.getDeployableObject("TestApp");
    if (  deplObj.getState() == WDDeployableObjectState.STARTED ) {
        // do something
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create deployable object TestApp' since it is not a Web Dynpro object.    null
    Thanks and Regards,
    Sekar

  • External Application without portal ?

    Hi all
    I have several applications built in JSP + BC4J , deployed in Oracle Application Server 10G (9.0.4) , operating system is windows 2000 server.
    Application server middle tier and infrastruture are in the same server.
    I have added all applications to SSO as External Application
    I'm not using Portal, so, how can i make this applications "visible" to end user ?
    Should i built and JSP page wich lists all External Applications, asks for login/password if authentication cookie not exits ??
    is there any other way of doing it without portal ???
    Best Regards
    Rui Madaleno

    Rui,
    actually the External Applications implementation is completely separate from the Portal and does not require it to function. (The external Applications Portlet is a simple interface to expose the list of external applications.
    If you are looking for a simple interface to expose the list, it is much as you describe. Building a simple Partner application which has links referencing the appropriate SSO server URLs. Storing the links in a table and simply querying them allows for a simple interface that can be secured/modified withour haveing to change the page itself.

  • Calling a Business process without using RMI nor WS.

    For efficience reasons we are interested in calling business processes from java classes deployed in the same server that WLI but without using RMI calls.
    In the documentation it's said that you are able to call Business Processes via WebServices, or via the JPD Proxy. This proxy could be used from a java class but it uses RMI.
    <b>There is an intermediate interface that we could use for executing processes without using RMI?.</b> Is this interface java accesible or we have to develop a Wrapper to adapt the call?
    Thank's, David.

    Hi,
    I experienced the same behaviour with my setup here - only he ws-addressing is used. I am using Oracle SOA Suite 10.1.3.1.0.
    After redeploying the process several times, i gave up ...
    I wonder if the correlation property is entirely ignored ?
    Thanks in advance,
    André

  • Download CC 2014 Applications Without Using Creative Cloud?

    I have the new Creative Cloud and associated apps (2014) installed on my MacPro at work, but I want to install the new associated apps on my iMac at home. I asked for a link to download the previous versions files to an external hard drive recently (before this version's launch) and you answered with a link to download the files without using the Creative Cloud application. Will you send me a link to do the same with this new release? Thanks.
    As I said before, it would take DAYS and use up my ENTIRE monthly data plan to download the programs at home.

    Direct downloads do not work on the mac.
    Access Denied
      You don't have permission to access "http://trials3.adobe.com/AdobeProducts/ILST/18/osx10-64/Illustrator_18_LS20.dmg?" on this server.
    Reference #18.25063e17.1403266118.23283599 
    Come on Adobe, get your act together, the cloud manager does not work for mac either on the 2014 versions

Maybe you are looking for

  • Ip4s can not use Bluetooth ?

    The Bluetooth of my ip4s can not active. I can not send pics by Bluetooth with iPad or another device. How can I fix this problem?

  • Partitioning in 10g

    Hi, We have to projects to implement. One is upgradation to 10g from 9i and the other one is partitioning 13 of our major tables. We have already partitioned 4 of them. Will it be safer to complete patitioning before moving over to 10g? What are the

  • I want to switch apple store

    How can I switch stores from UK to Spain

  • Can we run approval on custom dimension

    Can we run approval on a dimension other than Entity, which is default dimension for it. But can we run it on any custom dimension?

  • Execute OS commands

    Isn't possible to execute a Operating System command through PL/SQL code. I know that in forms we can use the command HOST, but in stored procedures it don't work.