ALE-Interface and batch file

Hi,
So far we have transferred Data from one system to main system through ALE-Interface and Batch file. Now we are thinking to harmonize and optimize this process and run all data transfers though ALE-Interface and eliminate Batch File process.
Can anybody tell me, why the ALE-Interface is better than Batch file for data transfers?
Thanks

Batch file is carried out at offline and at certain time intervals
where as ALE is online transfer and while triggering a particular tcode it can be made to trigger
This is why ALE is best
cheers
S.Janagar

Similar Messages

  • Please help how to run System commands and batch files thru java program

    Sir,
    I want execute OS commands like dir,cls..etc and batch files,.exe filesthru java program.
    I have tried it sofar thru Runtime.getRuntime().exec("execute.bat");
    but it is not working.anybody knows about how to run the system commands thru java please give me the code.
    thank you,
    regards,
    j.mouli

    I've seen other posts with this questions, and answers. Unfortunately I didn't pay much attention. But the basic idea is to exec command.com and pass the specifc batch or command as an argument.

  • MySQLDump and Batch Files

    Hello all,
    I've been using the mysql connector package to populate and retrieve data from a mysql database. Two questions. First, I have recently become very fond of the mysqldump feature attached with the mysql package. Is there a way to call somthing like that from my connector module? ... or any other mysql "-esque" commands for that matter? (ie show tables, show create table someTable) ...
    I know that the first command I issue is actually a "USE myDatabaseName" to point the connector module at the correct databse. If the USE command is a mysql command, then I'm lead to believe that commands like SHOW will also be legit. However, what would the return structure be? ... would that also be some kind of ResultSet?
    Anyway the other question would be about the execution of batch files like the ones a mysqldump command would generate. I know that I am able to open the dumped text file and populate and run the commands via the methods:
    addBatch(String sql)throws SQLException // to populate
    executeBatch() // to run.. but is there a method that already does that?
    Thanks in advance
    -Curt

    Hi,
    Try Runtime.getRuntime().exec("batchfile.bat");
    Check out Class Runtime for more info.
    -adam

  • Java and batch files

    i want to launch my application by a batch file, whit this script:
    @echo off
    "C:\j2sdk1.4.2_08\bin\java.exe" -cp "C:\Documents and Settings\Intrepido\Desktop\my tesina" BSServer 2103
    pause
    my application as first operation, read from a txt file some row just to configure himself.
    if i launch my application from DOS, writing the path manually, my application does function correctly, instead, launching it from batch file, the first row read return a null value; (i use the RandomAccessFile class and the readLine() method to access file...)
    moreover, since my application is a JFrame class, i've associate some icon to the buttons of the window. starting the application manually from DOS the icons are benn loaded, instead, launching the application from the batch file, the icons are not loaded...
    Help me please...
    and sorry for my bad english...

    i want to launch my application by a batch file, whit
    this script:
    @echo off
    "C:\j2sdk1.4.2_08\bin\java.exe" -cp "C:\Documents and
    Settings\Intrepido\Desktop\my tesina" BSServer 2103
    pause
    my application as first operation, read from a txt
    file some row just to configure himself.
    if i launch my application from DOS, writing the path
    manually, my application does function correctly,
    instead, launching it from batch file, the first row
    read return a null value; (i use the RandomAccessFile
    class and the readLine() method to access file...)
    moreover, since my application is a JFrame class,
    i've associate some icon to the buttons of the
    window. starting the application manually from DOS
    the icons are benn loaded, instead, launching the
    application from the batch file, the icons are not
    loaded...
    Help me please...
    and sorry for my bad english...Since it is a java forum, I suppose that your app is a java app, isn�t it?
    First, define the MANIFEST.MF of your application, that must call the class that contains the famous public static void main(String[] args) method. If you haven�t made this method yet, make it. This method must initialize your app. If you don�t know how to create or how to configure the MANIFEST.MF file, read the articles below:
    http://java.sun.com/developer/Books/javaprogramming/JAR/basics/manifest.html
    http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html
    Don�t forget to configure the reference of some jar files required by your app in the MANIFEST.MF if it is necessary.
    Second, create the batch file. The content of this file is simple. It has has to be like below:
    java -jar MyJarFile.jar
    Where MyJarFile.jar is your jar file. Then, put this batch file in the same directory of the jar file and double click it. Finish! Your app will be executed as you want.
    Of course, first of all, you have to configure the java environment variables in order to this app works well (JAVA_HOME, PATH, CLASSPATH, etc).
    It is just one manner to do what you want. There are other ways to do it, of course.

  • Use CSV and batch file for net user command

    Hello Guys,
    I am trying to load domain user id's from a csv file and parse them through the net user /domain command.  I would appreciate it if someone could help me open the csv file and store each line as a variable so that it could be parsed.
    Thanks in advance.

    My apologies, I didn't notice that you specifically mentioned batch files in your question title.
    I don't have much to offer, as my batch skills are extremely rusty.
    I would personally be doing all of this via PowerShell, as the AD cmdlets can return any bit of information about your users that you'd like.
    Don't retire TechNet! -
    (Don't give up yet - 12,420+ strong and growing)

  • Orbd and batch file

    What am I doing wrong? If I start the orbd by opening a cmd prompt on win2k, and typing orbd -ORBInitialPort 1050 -serverPollingTime 200
    Then, I start servertool and register....everything works fine.
    If I take orbd -ORBInitialPort 1050 -serverPollingTime 200 and put it into a batch file....
    start orbd -ORBInitialPort 1050 -serverPollingTime 200
    register in servertool....
    run the client and it cannot connect to the orb, a null value is returned instead?
    Any help is very much appreciated.

    I tried this for my batch file...still doesn't work
    REM - Start the ORB daemon
    start %JAVA_HOME%\bin\orbd -ORBInitialPort 1050 -serverPollingTime 200
    @echo Wait 10-15 seconds for the orbd to start
    @pause
    REM - Register the persistent server with orbd using servertool
    %JAVA_HOME%\bin\java com.sun.corba.se.internal.Activation.ServerTool -ORBInitialPort 1050 -cmd register -server MyServer -applicationName s1 -classpath c:\myserver\myfiles;

  • OWF and batch files

    Hi!
    I have a question to Oracle Workflow.
    Particularly with regard to the Activity USER_DEFINED.
    Is there a way out of a batch file to get a access to the contents of "Process Editor => Activities => USER_DEFINED => Script => value".
    When I debug I saw the variable "argv.stdin". So that ought to be possible?
    Thanks!

    Hi,
    If you meant , a way to list the values specified for SCRIPT attribute the you can use OMB+ scripts to crawl through your process flows and list the values for this attribute.
    Regards
    Mahesh

  • Fscommand and Batch Files

    Hello, been wrestling with this one for a bit. I am trying to
    figure out what code to use that would let me push a button ( on
    release ) in my standalone projector , and have a batch file
    execute.. is this possible ?

    yes it is posible
    create your .bat file,
    put in the "fscommand" folder relative to your projector file
    for your button
    on(release){
    fscommand("exec", "filename.bat");
    }

  • CF PROBE and batch files

    I've setup a CF Probe on my Development Server to ensure my
    CF Production server is up and running (services = Apache and CF
    Application Server). It checks the PROD login page and if it times
    out in 30 sec the probe fails. I understand I can execute a file
    (batch file with net start and net stop) but the problem is I need
    to have the probe somehow point to the .bat file on the PROD server
    and not on the local machine. How can I remotely access this batch
    file and execute it? I don't know how to point to the file on the
    other server... can anyone help?

    I've setup a CF Probe on my Development Server to ensure my
    CF Production server is up and running (services = Apache and CF
    Application Server). It checks the PROD login page and if it times
    out in 30 sec the probe fails. I understand I can execute a file
    (batch file with net start and net stop) but the problem is I need
    to have the probe somehow point to the .bat file on the PROD server
    and not on the local machine. How can I remotely access this batch
    file and execute it? I don't know how to point to the file on the
    other server... can anyone help?

  • Runtime.exec() and batch files

    I am having a problem on Windows 2000 while trying to execute a batch file with the Runtime.exec() method. Basically, the exit value returned from the call to Runtime.exec(), returned specifically by the waitFor() method in the Process class, is always zero, even if the batch file fails miserably. After looking into batch files further, it seems to me that the only way to get the exit value of the commands run in the batch file back to the Runtime.exec() call is to put "EXIT %ERRORLEVEL%" in the batch file. What this actually does is exit the command(cmd) shell that the batch file was running in with the exit code of the last command run. This is all great when calling the batch file with a Runtime.exec() call, but when you run it in a cmd window, the window closes when the batch file completes, because the call to EXIT exits the entire shell. I guess i'm just wondering, am i correct in assuming the exit value returned to the java process is going to be the exit value of the shell in which the batch file is running? I need to have the exit value actually indicate whether the batch file ran successfully or not, and if i have to put in the EXIT %ERRORLEVE% (which exits the cmd shell with the exit value of the last command run), then i'll do that, but if someone knows a better way of doing this, i am all ears. Thanks in advance

    To run any command from java code, the method is
    Runtime.getRuntime().exec( myCommandString )
    Where, myCommandString is something like "/full/pathname/command".
    If the pathname contains spaces (specifically in Windows), e.g. "c:\program files\windows\notepad", then enclose it in quotes within the quoted string. Or pre-tokenize them into elements of an array and call exec(String[] cmd) instead of exec(String cmd).
    From JDK1.3 there are two new overloaded Runtime.exec() methods. These allow you to specify starting directory for the child process.
    Note, there is a gotcha associated with reading output from commands. When the runtime exec's the process, it passes to it 3 streams, for stdin, stdout, and stderr; the out and err are buffered but the buffer size isn't very big. When your process runs, it reads (if needed) from in, and writes to out and err.
    If it doesn't write more than the buffer-size, it can run to completion.
    But if it tries to write more data to one or the other stream than the buffer can hold, the write blocks, and your process hangs, waiting for you to empty the buffer so it can write some more.
    So after the exec call, get the streams, and read from them in a loop until they both hit end-of-stream (don't block on either one, just read whatever is available from each, each loop iteration).
    Then when the streams have ended, call the process.waitFor() method to let it finish dying.
    Now, here is a code snippet how you achieve this.
    String strCommand = "cmd.exe /c " + strCommand;
    // For Solaris / unix it will be
    // String strCommand = "/usr/cobra/sol/runInstaller.sh";
    boolean bWait = true;
    //execute the command
    try
         Runtime r = Runtime.getRuntime();
         Process pr = r.exec(strCommand);
         Process pr = r.exec(callAndArgs);
         BufferedInputStream bis =new BufferedInputStream(pr.getInputStream ());
         int c=0;
         /** Outlet for IO for the process **/
         while (c!=-1)
              c=bis.read();
         /**Now wait for the process to get finished **/
         if(bWait == true)
              pr.waitFor();
              pr.destroy();
    catch(Exception e)
         System.out.println("Could not execute process " + strCommand);
         return(false);

  • Error Executing Interface using batch file

    Hi All,
    I am currently using a batch file to execute particular interface from remote location.
    The steps I used before executing are
    1. I have created the scenario for the interface.
    2. I have used this in the batch file to run the interface.
    3. I have mapped the network drive to get the startscen.bat file.
    The error which was generated was (Z - mapped server name)
    Z:\ODI\oracledi\agent\bin>startscen.bat Sample_interface 001 Sample_context -NAME=Sample_AGENT
    OracleDI: Starting scenario SAMPLE_INTERFACE 001 in context SAMPLE_CONTEXT .
    2011-10-11 10:06:45.404 ERROR ODI-1132 Agent SAMPLE_AGENT encountered an warning: O
    DI-1419: Warning connecting to Agent SAMPLE_AGENT: JDBC connection error occurs whi
    le connecting to the work repository WORKREP.
    ODI-1419: Warning connecting to Agent SAMPLE_AGENT: JDBC connection error occurs wh
    ile connecting to the work repository WORKREP.
    Caused By: oracle.odi.core.config.WorkRepositoryResourceFailureException: org.sp
    ringframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connecti
    on; nested exception is java.sql.SQLException: Exception occurred while getting
    connection: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection f
    rom Datasource
    at oracle.odi.core.repository.Repository.getWorkRepository(Repository.ja
    va:150)
    at oracle.odi.core.OdiInstance.createWorkRepository(OdiInstance.java:512
    at oracle.odi.core.OdiInstance.<init>(OdiInstance.java:565)
    at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:529)
    at oracle.odi.StartScen.main(StartScen.java:163)
    Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not
    get JDBC Connection; nested exception is java.sql.SQLException: Exception occurr
    ed while getting connection: oracle.ucp.UniversalConnectionPoolException: Cannot
    get Connection from Datasource
    at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(Dat
    aSourceUtils.java:82)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:
    524)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:58
    8)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:61
    3)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:64
    5)
    at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:111)
    at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:121)
    at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:136)
    at oracle.odi.core.repository.support.RepositoryUtils$RepositoryInfoSour
    ce.loadRepositoryInfo(RepositoryUtils.java:179)
    at oracle.odi.core.repository.support.RepositoryUtils.loadWorkRepository
    Info(RepositoryUtils.java:379)
    at oracle.odi.core.repository.Repository.getWorkRepository(Repository.ja
    va:148)
    ... 4 more
    Caused by: java.sql.SQLException: Exception occurred while getting connection: o
    racle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasourc
    e
    at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.doGetConnect
    ion(LoginTimeoutDatasourceAdapter.java:133)
    at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.getConnectio
    n(LoginTimeoutDatasourceAdapter.java:62)
    at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(D
    ataSourceUtils.java:113)
    at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(Dat
    aSourceUtils.java:79)
    ... 14 more
    Caused by: java.sql.SQLException: Exception occurred while getting connection: o
    racle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasourc
    e
    at oracle.ucp.util.UCPErrorHandler.newSQLException(UCPErrorHandler.java:
    541)
    at oracle.ucp.jdbc.PoolDataSourceImpl.throwSQLException(PoolDataSourceIm
    pl.java:587)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.j
    ava:668)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.j
    ava:613)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.j
    ava:607)
    at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter$ConnectionPr
    ocessor.run(LoginTimeoutDatasourceAdapter.java:217)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44
    1)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
    utor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
    .java:908)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection fr
    om Datasource
    at oracle.ucp.util.UCPErrorHandler.newUniversalConnectionPoolException(U
    CPErrorHandler.java:421)
    at oracle.ucp.util.UCPErrorHandler.newUniversalConnectionPoolException(U
    CPErrorHandler.java:389)
    at oracle.ucp.jdbc.DriverConnectionFactoryAdapter.createConnection(Drive
    rConnectionFactoryAdapter.java:133)
    at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPool
    Internal.createOnePooledConnectionInternal(UniversalConnectionPoolImpl.java:1570
    at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPool
    Internal.access$600(UniversalConnectionPoolImpl.java:1378)
    at oracle.ucp.common.UniversalConnectionPoolImpl.createOnePooledConnecti
    on(UniversalConnectionPoolImpl.java:445)
    at oracle.ucp.common.UniversalConnectionPoolImpl.borrowConnectionWithout
    CountingRequests(UniversalConnectionPoolImpl.java:302)
    at oracle.ucp.common.UniversalConnectionPoolImpl.borrowConnection(Univer
    salConnectionPoolImpl.java:129)
    at oracle.ucp.jdbc.JDBCConnectionPool.borrowConnection(JDBCConnectionPoo
    l.java:119)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.j
    ava:655)
    ... 9 more
    Caused by: java.sql.SQLException: ORA-01017: invalid username/password; logon de
    nied
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.ja
    va:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:1
    33)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :206)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:406)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)
    at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthentica
    te.java:799)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:368)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    508)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
    n.java:33)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)
    at oracle.ucp.jdbc.DriverConnectionFactoryAdapter.createConnection(Drive
    rConnectionFactoryAdapter.java:129)
    ... 16 more
    Thank you,
    Regards
    Rav

    Hi All,
    Please update if any encountered a similar error.
    Thank you,
    Regards
    Rav

  • Java and Batch File Issue - need urgent help

    I have a java program which calls a batch file. This batch file calls another java program. I want an option so that I can close this java program from main program.
    If i try process.destroy then it will call batch file and not java program.
    I can't go away with batch file.
    I will appreciate if someone can help me.

    khannap wrote:
    Hi, Thanks for the help but this doesn't seem solving my problem completely. I will appreciate if you can help more.
    I will explain you the scenario -
    1. There is java program provided as an external program to me.Only changes things slightly.
    2. This java program is called using batch file. When batch file is started this java program starts and listens on a socket for incoming data.I would want to wrap the launch of this java program in another JVM so we can use process.destroy().
    3. I am writing a program to check performance of the above java program. I want to call this java program from my program in a loop having some varying config data. When I run the loop first time I create a batch file at run time which executes the batch file provided by vendor. This batch file starts the socket. Once my message list is over then my loop goes to executing the batch file again with different config parameters. But this time I run into issue because my previous java program is not killed after message sending was over.Would it be acceptable to mung the 3rd party batch file to insert a wrapper JVM?
    Even if i use threads I don't think I can get rid of batch file.I did not suggest getting rid of batch files.
    So, I need to find a way so that when any iteration of loop is over then this socket program is killed. These 3rd party java programs - do they not have a "terminate" command you can put at the end of your message list?
    Even if i closed the socket from my client program that doesn't help because server is still listening and waiting for new client.
    I need to kill server which was started by batch file.On Linux it would be fairly simple to modify your batch file to determine what the process id is and send the process a signal to terminate it.
    Not sure what you can do on Windows.

  • System Administration and Batch File

    Hi all,
    I linked a batch file to be opened in my pdf file, but every time I open this through the link a message comes up saying "disallowed by your system administrator".
    Can anyone show me how to allow the batch file to be opened
    Thanks

    This is a Security feature. In order to change what can be opened as an attachment, you need to edit the registry.  The ETK Preference Reference has the information to edit the registry that you will need.
    Attachments

  • Javaw and batch files

    Right, so I want my Java application to run without those pesky DOS windows, first things first, we make a little .bat file and then we use javaw.exe instead of java.exe right?
    Fine so far... but wait! A weird DOS box flickers up briefly and then dissappears before the app loads. Humph, how very unprofessional.
    "Ah but wait!" I hear you cry... "Can't you just make a shortcut to the javaw.exe and slap your classpath on the end as an argument, cos we all know that no .bat means no DOS window!". Well what can I say?! Sounds like the perfect solution.... except for the fact that when you make a new shortcut you are limited to a rather small number of characters, plenty enough for most uses, but not for mine. My classpath is a beast and gets truncated by the short text field.
    Sooooo... how can I get my app to run from a shortcut/batch/executable WITHOUT the silly DOS window nonsense and [i[REGARDLESS[/i] of the length of the command line to be executed. Or am I asking a bit much?
    Anyone?

    Make a desktop shortcut in a different way - set the "Start in" parameter, the classpath isn't then needed.
    See my reply # 6 to this thread for a detail explanation
    http://forum.java.sun.com/thread.jsp?forum=31&thread=548762
    Works fine, without a DOS window popping up.

  • Location of stubs, skeletons, remote interface ,client and server files

    I have a question to the subject mentioned above :
    In a training example for RMI I red the following :
    .... stubs, remote interface and client files into
    client location
    ... skeletons, remote interfaces, server files and stubs
    into server location ....
    I understand that with the exception that the stubs must also be located at server side. My understanding is
    that it is enough if those reside only at client side. Is that
    right or wrong ?
    Thanks for your comment.
    Regards,
    Oskar

    The stubs must be available (in the classpath) on the server side. This is because when a remote server object is exported, the RMI runtime creates an instance of the stub (instead of the server) and sends it whenever a reference to the server is encountered. In order to create (and then serialize) the stub, its class file must be available on the server.

Maybe you are looking for

  • OSB 11g: Can I create an Alert Destination to call another webservice?

    Hi All, We would like to send Alert message via SMS to speified person. As we have already a web service to send SMS, can we just create an Alert Destination to call this web service to do that? Thanks for your help! Edited by: FrankieHuang on May 2,

  • URGENT: How do i get Source information?

    Hi All, My Planning application getting source information from EBS to FDM then Planning. EBS-----------(Using ERPIntegration)------------FDM---------------Hyperion Planning. We have various branches to load data from EBS. then where do i get which s

  • How to use webServiceSettingBean

    Has anyone used webServiceSettingBen ? I have created a new variable "webServicesSettingBean" of type webServiceSettingBean, and trying to initialize it using the set value service. The mapping is provided below. /process_data/webServicesSettingBean/

  • Is there a script to open an attachment within a PDF in a separate window?

    I have a PDF with a button to open an attachment. I know that in my preferences I can set it always open in a separate window, but not all users know to do this. Is there a script to make this happen? I have a script to open links in a separate windo

  • Modify the Chart Display colors

    Hi, Is there a way to change the coloring of charts in VC? I tried to edit the GML file and change the "series" attribute of the chart element. I need to display the line in red color. I am using a combo chart of column+lines. When I edited the code,