Interface with Mainframe and VB


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: Interface with Mainframe and VB

  1. #1
    kOKETSO Guest

    Interface with Mainframe and VB


    I have an VB application which downloads files from
    a mainframe and loads it into and an SQL databse. This downloads
    procedure has to be started up through a dialog box manually.

    I need to write a Java App which will trigger the VB downloder automatically
    at certain times. Either by executing a .BAT file or executing the VB app
    directly.

    Does anyone know how to do make a call to an App outside of Java.

    Koketso Mabusela
    Analyst Programmer
    Nedcor
    KoketsoM@Nedcor.com


  2. #2
    Paul Clapham Guest

    Re: Interface with Mainframe and VB

    You use one of the Runtime.getRuntime().exec() methods.

    PC2

    "kOKETSO " <KoketsoM@Nedcor.com> wrote in message
    news:3d469647$1@10.1.10.29...
    >
    > I have an VB application which downloads files from
    > a mainframe and loads it into and an SQL databse. This downloads
    > procedure has to be started up through a dialog box manually.
    >
    > I need to write a Java App which will trigger the VB downloder

    automatically
    > at certain times. Either by executing a .BAT file or executing the VB app
    > directly.
    >
    > Does anyone know how to do make a call to an App outside of Java.
    >
    > Koketso Mabusela
    > Analyst Programmer
    > Nedcor
    > KoketsoM@Nedcor.com
    >




  3. #3
    MarkN Guest

    Re: Interface with Mainframe and VB


    Since Paul answered the question I guess it it my turn to pose the question
    - Why do you need a Java app to do this???

    A better way to handle this whole process is to use a tool like MQ Series.



  4. #4
    Paul Clapham Guest

    Re: Interface with Mainframe and VB

    Or since we're opening up alternatives, to run the VB program at certain
    times doesn't need a Java app either, just a scheduler that you probably
    already have on your system.

    PC2

    "MarkN" <java.@127.0.0.1> wrote in message news:3d47dd88$1@10.1.10.29...
    >
    > Since Paul answered the question I guess it it my turn to pose the

    question
    > - Why do you need a Java app to do this???
    >
    > A better way to handle this whole process is to use a tool like MQ Series.
    >
    >




  5. #5
    java Guest

    Re: Interface with Mainframe and VB


    i think you should use
    Runtime.getRuntime().exec()
    or use JNI for call native interface
    but you using VB COM Object you can use COM Bridge of IBM which it use for
    java proxy connect with COM technology
    good luck sir
    Mr. Nicky
    (Sun Certified Java Programmer)
    nick_atl2000@hotmail.com
    "kOKETSO " <KoketsoM@Nedcor.com> wrote in message
    news:3d469647$1@10.1.10.29...
    >
    > I have an VB application which downloads files from
    > a mainframe and loads it into and an SQL databse. This downloads
    > procedure has to be started up through a dialog box manually.
    >
    > I need to write a Java App which will trigger the VB downloder

    automatically
    > at certain times. Either by executing a .BAT file or executing the VB app
    > directly.
    >
    > Does anyone know how to do make a call to an App outside of Java.
    >
    > Koketso Mabusela
    > Analyst Programmer
    > Nedcor
    > KoketsoM@Nedcor.com
    >




  6. #6
    Ahmad Q. K. Guest

    Re: Interface with Mainframe and VB


    "kOKETSO " <KoketsoM@Nedcor.com> wrote:
    >Dear kOKETSO;


    Its too easy:
    you can (execute) the application by using the exec(..) method of the Runtime
    class, for more info see the API for Runtime and Process classes.
    Also, to call the application at a specific times, you can use the timer
    in the swing package.

    I hope you find this useful

    Note: If you have any question then send me

    Salaaaaaaaaam

    BR
    Ahmad Q. K.


    >I have an VB application which downloads files from
    >a mainframe and loads it into and an SQL databse. This downloads
    >procedure has to be started up through a dialog box manually.
    >
    >I need to write a Java App which will trigger the VB downloder automatically
    >at certain times. Either by executing a .BAT file or executing the VB app
    >directly.
    >
    >Does anyone know how to do make a call to an App outside of Java.
    >
    >Koketso Mabusela
    >Analyst Programmer
    >Nedcor
    >KoketsoM@Nedcor.com
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center