Rmi cobol and java

Friends is it possible to have interaction between java and Cobol.
I mean I want to use JSP as front end and the entered data(by some user) should be passed as parameter to a COBOL program.Then the data is processed and the o/p from COBOL program should be passed to JSP .
thanks.

Easy - as long as you can find a remote object protocol that is supported by java AND cobol. CORBA should do the trick - is there are cobol CORBA? I doubt cobol supports java rmi - though it may support IIOP, which would also be effective.

Similar Messages

  • COBOL and Java

    Hello to everybody.
    My problem consist in calling a compiled COBOL module from a Java servlet/program. In Windows I know I usually use the NetExpress library for doing it, but now I have to move in a UNIX environment... Does someone know how to do it inside a LINUX/UNIX environment ?
    Thank you very much in advance for your help

    And you are going to move the cobol code to the unix box and recompile right? That is the only way the cobol will run on unix.
    Java does not talk to cobol.
    Java does however do JNI. That allows java to call a C method. C code can do many things. Like talk to interfaces which talk to cobol. I have no idea how to do that.
    You might also check the vendor of the cobol that you are running. They might have a java interface. (It will still be JNI but at least you won't have to write it.)
    Alternatively if the cobol will remain on the windows box then that is an entirely different story.

  • RMI,Servlets and Java Web Start

    I am a new developer working on a java application. My java GUI will access one server where a user will have an account. This server will store data, execute programs and access other servers for information. I have completed the GUI and I am beginning to build the client-server communication with RMI. There appear to be several tools for doing client-server communication, and while I have read much, I don't understand which is the best to explore. For applets I have read that a good method to use is servlets with RMI. But is this also true for a stand-alone application? If not, what is the best/preferred method? What if I choose to use Java Web Start (which I have not read up on, yet) will the best method of client-server communication change?
    Thanks in advance, shawn

    It depends on your budget too. To me the optimim way to communicate is to use SERVLET/JSP combination for client/server communication.

  • Java SE5 and Java EE5 difference

    What is the difference between Java SE5 and Java EE5? Also difference btwn SDK and JDK? I am confused about these basic concepts.
    Thanks
    Geet

    Java Platform, Enterprise Edition is a related specification which includes all of the classes in Java SE, plus a number which are more useful to programs which run on servers as opposed to workstations.
    Java EE includes several API specifications, such as JDBC, RMI, e-mail, JMS, web services, XML, etc, and defines how to coordinate them. Java EE also features some specifications unique to Java EE for components. These include Enterprise JavaBeans, servlets, portlets (following the Java Portlet specification), JavaServer Pages and several web service technologies.

  • Can I put both RMI server and client in a same program

    hi everybody...
    I wanna know that can I use RMI server and client in a same program....My idea is like that I wanna use the same program for client and server....When I open my program, I can accept connection from other program and if I want to connect to others, I can also connect it. I expect you to understand my question. Here are the sample code for my program...
    package Chat.Rmi;
    import java.lang.*;
    import java.util.*;
    import java.rmi.*;
    import javax.swing.*;
    import java.net.*;
    import java.rmi.server.*;
    import java.rmi.registry.*;
    public class netKitManager implements netKitInterface{
        public netKitManager(){
            try{
            reg = LocateRegistry.createRegistry(4242);
            reg.rebind("NetKitServer",this);
            }catch(RemoteException re){
        public void DirectConnect(String ip){
            try{
            netUser = (netKitInterface) Naming.lookup("rmi://"+ip+":4242/NetKitServer");
            JOptionPane.showMessageDialog(null,"Connection succeded!");
            }catch(NotBoundException nbe){
                JOptionPane.showMessageDialog(null,"There is no server at specified IP address!");
            }catch(MalformedURLException mue){
                JOptionPane.showMessageDialog(null,"IP adress may be wrong!");
            }catch(RemoteException re){
                JOptionPane.showMessageDialog(null,"Remote exception occured!");
        public void SendMessage(String msg){
            try{
            netUser.SetMessage(msg);
            }catch(RemoteException re){
        public void SetMessage(String msg) throws RemoteException{
            chatKit.SetMessage(msg);
        private netKitInterface netUser;
        private Hashtable netUserList;
        private Registry reg;
    }

    Yes it can be done. I have done it.

  • RMI Server and RMI Client Problem

    First, Hi!
    I have create my RMI Server and a RMI Servlet client.
    I can run the server and servlet first time and it works fine.
    Then, I stop rmiregistry and server.
    Then, I start rmiregistry and server for a second time but my RMI Servlet client gets a
    java.rmi.ConnectException: Connection refused to host: xxx.xxx.xxx.xxx; nested exception is: java.net.ConnectException: Connection refused
    If I copy the class again where the servlets resides, it works again. But I have to keep doing that. I have to keep copying the class file to the servlet directory every 2nd time I try to run it for it to work.
    Anyone know what am I doing wrong?

    First, Hi!
    I have create my RMI Server and a RMI Servlet client.
    I can run the server and servlet first time and it
    works fine.
    Then, I stop rmiregistry and server.
    Then, I start rmiregistry and server for a second time
    but my RMI Servlet client gets a
    java.rmi.ConnectException: Connection refused to host:
    xxx.xxx.xxx.xxx; nested exception is:
    java.net.ConnectException: Connection refused
    If I copy the class again where the servlets resides,which class file ? u mean RMIServer's class files ??
    I have faced the same problem too. In my case if i just restart my Tomcat webserver the error goes and the servlet is very well able to connect back to the RMI Server
    it works again. But I have to keep doing that. I have
    to keep copying the class file to the servlet
    directory every 2nd time I try to run it for it to
    work.
    Anyone know what am I doing wrong?

  • What is Client-Side API for RMI on the Java Card Platform

    What is Client-Side API for RMI on the Java Card Platform ?
    And what is host software ?

    Your post is weird: you seem not to agree with yourself O_o
    OF COURSE sim cards have CPUs, otherwise how would you run an OS or a java vm on them?
    to drive the wifi there will be a proprietary api, just like mifare access on normal cards.
    the OS should manage the wiki stack in C/asm and expose javacard entry points. only "should" because this is only a press release.

  • RMI, SSL, and compression

    Hi,
    I am trying to find an example of how to create a custom socket factory for RMI that does SSL and compression. Doing either separately is easy, but it seems that using SSL precludes the use of a custom socket as one would want for compression. Any suggestions or pointers would be appreciated.
    Regards,
    Neal

    Thank you for the help. Sadly, I am still unable to wrap my brain around this one. I am hoping a concrete example will help out:
    public class SecureServerSocketFactory implements java.rmi.server.RMIServerSocketFactory, java.io.Serializable
        /** Creates new SSLServerSocketFactory */
        public SecureServerSocketFactory()
         * Create a server socket on the specified port (port 0 indicates
         * an anonymous port).
         * @param  port the port number
         * @return the server socket on the specified port
         * @exception IOException if an I/O error occurs during server socket
         * creation
        public java.net.ServerSocket createServerSocket( int port )
            throws java.io.IOException
             SSLSocketFactory sssf = null;
            ServerSocketFactory ssf = null;
            ClassLoader cl = this.getClass().getClassLoader();
             try
                // set up key manager to do server authentication
                SSLContext ctx;
                KeyManagerFactory kmf;
                TrustManagerFactory tmf;
                KeyStore ks;
                char[] passphrase = "xxxxxxxxxxxxxx".toCharArray();
                ctx = SSLContext.getInstance( "TLS" );
                kmf = KeyManagerFactory.getInstance( "SunX509" );
                tmf = TrustManagerFactory.getInstance( "SunX509" );
                ks = KeyStore.getInstance( "JKS" );
                ks.load( new FileInputStream( SimpleLocator.getInstanceValue( "ServerKeystore") ), passphrase );
                kmf.init( ks, passphrase );
                tmf.init( ks );
                ctx.init( kmf.getKeyManagers(), tmf.getTrustManagers(), null );
                // this is w/o compression
                //ssf = ctx.getSocketFactory();
            catch( Exception e ) { e.printStackTrace(); }
            // need to put ejp's idea to practice here...
            // create a LZMACompressedSocket
            // put it into server mode?
            // wrap in SSL?
            return socket;
        }Any help you can provide would be appreciated.
    On a related note, I do agree that compressing at this level likely will not help, but I want to try all solutions.
    Thanks again for your help.

  • Difference between RMI-IIOP and CORBA-IIOP

    Hello,
    What is the difference between RMI-IIOP and CORBA-IIOP?
    Thanks
    Larry

    Lawrence Manickam <[email protected]> writes:
    What is the difference between RMI-IIOP and CORBA-IIOP? RMI-IIOP is the protocol represented by the mapping of Java RMI
    artifacts to IDL, i.e. you start with Java and use the RMI programming
    model. CORBA / IIOP is really just the protocol used for IDL sourced
    objects, i.e. you start with IDL and use the CORBA programming model.
    andy

  • Communication between c++ and java

    Hi all,
    I am developing a client-server system using C++ and Java.
    C++ programs is used for client part while Java program (servlet) is used in server side.
    I want to ask:
    How can I make communication between them?
    Thanks

    Servlets talk with a Web server and a Web Browser. Unless the C++ app is a Java Servlets client or server then you cannot communicate directly through HTTP and JSP with the C++ app.
    Look at RMI, and CORBA. CORBA is a non-Sun made protocol and RMI is a Sun-made protocol. For best results read the information about each method - RMI and CORBA (which go hand-in-hand).

  • Problem of running rmi applet and client for Javacard 3.0.2 Connected

    Need help for running rmi application for Java Card 3.0.2 connected version. I am trying to move a working rmi applet & client from 3.0.2 Classic version to Connected version. Then I found that they are so different and I have no idea how to run my application :(
    Here are what I have done:
    - I have modified the Classic HelloWorld applet to an rmi applet. It is OK when I build and run the application in netbeans. The Applet can be selected successfully.
    My problems are:
    - How to connect a rmi client to the rmi applet? Here are what I have done:
    + Run rmi applet in netbeans
    + Run 'rmic' command to generate stub
    + Run rmiregistry outside of netbeans
    + Build and run rmi client application outside of netbeans by typing "ant all"
    However, the rmi client was not able to connect to the applet:
    [java] java.net.ConnectException: Connection refused: connect
    Would this be a problem of netbeans? Could someone tell me how to run rmi applet/client within or outside netbeans. Thanks a lot!

    Well finally I figured out that CREF-emulators (from JCDK 2.2.1, 2.2.2, 3.0.1 classic) do not support cryptographic extensions at all.
    BUT JCWDE(from JCDK 2.2.1, 2.2.2) - support, but this kind of simulator quite hard to use, because it does not have state between launches.
    About CJCRE(from JCDK 3.0.1 connected) - still don't know, seems not support cryptographic extensions.

  • Whats is difference between Java JRE  and  Java SDK

    Hi,
    what is the difference between Java JRE and Java SDK...
    i think both of them have the same set of files to be installed...
    I am not able to understand where they differ

    The JRE (Java runtime Environment) contains just the stuff necessary to run Java and the SDK (System Development Kit) contains the extra stuff necessary (and also helpful) to develop in Java.

  • What is difference between C# Gzip and Java swing GZIPOutputStream?

    Hi All,
    I have a Java swing tool where i can compress file inputs and we have C# tool.
    I am using GZIPOutputStream to compress the stream .
    I found the difference between C# and Java Gzip compression while a compressing a file (temp.gif ) -
    After Compression of temp.gif file in C# - compressed file size increased
    while in java i found a 2% percentage of compression of data.
    Could you please tell me , can i achieve same output in Java as compared to C# using GZIPOutputStream ?
    Thank a lot in advance.

    797957 wrote:
    Does java provides a better compression than C#?no idea, i don't do c# programming. and, your question is most likely really: "does java default to a higher compression level than c#".
    Btw what is faster compression vs. better compression?meaning, does the code spend more time/effort trying to compress the data (slower but better compression) or less time/effort trying to compress the data (faster but worse compression). most compression algorithms allow you to control this tradeoff depending on whether you care more about cpu time or disk/memory space.

  • What is the diffrence between package javax.sql and java.sql

    Is javax designed for J2EE?
    And when to use package javax?

    Hi,
    What is the diffrence between package javax.sql and java.sql?The JDBC 2.0 & above API is comprised of two packages:
    1.The java.sql package and
    2.The javax.sql package.
    java.sql provides features mostly related to client
    side database functionalities where as the javax.sql
    package, which adds server-side capabilities.
    You automatically get both packages when you download the JavaTM 2 Platform, Standard Edition, Version 1.4 (J2SETM) or the JavaTM 2, Platform Enterprise Edition, Version 1.3 (J2EETM).
    For further information on this please visit our website at http://java.sun.com/j2se/1.3/docs/guide/jdbc/index.html
    Hope this helps.
    Good Luck.
    Gayam.Srinivasa Reddy
    Developer Technical Support
    Sun Micro Systems
    http://www.sun.com/developers/support/

  • What is the diffrence between My Runnable Interface and Java Runnable

    Hi folks
    all we know that interfaces in java just a decleration for methods and variables.
    so my Question is why when i create an interface its name is "Runnable" and i declared a method called "run" inside it.then when i implements this interface with any class don't do the thread operation but when i implement the java.lang.Runnable the thread is going fine.
    so what is the diffrence between My Runnable Interface and Java Runnable?
    thnx

    Hi folks
    all we know that interfaces in java just a decleration
    for methods and variables.
    so my Question is why when i create an interface its
    name is "Runnable" and i declared a method called
    "run" inside it.then when i implements this interface
    with any class don't do the thread operation but when
    i implement the java.lang.Runnable the thread is going
    fine.
    so what is the diffrence between My Runnable Interface
    and Java Runnable?
    thnxClasses and interfaces are not identified by just their "name", like Runnable. The actual "name" the compiler uses is java.lang.Runnable. So even if you duplicate the Runnable interface in your own package, it's not the same as far as the compiler is concerned, because it's in a different package.
    Try importing both java.util.* and java.awt.* (which both have a class or interface named List), and then try to compile List myList = new ArrayList();

Maybe you are looking for

  • Problem with delete command through JDBC

    hi all, I have the following code in a Java program try DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver()); conn = DriverManager.getConnection( "jdbc:oracle:thin:@localhost:1521:orcl", "airport", "airport"); catch (SQLException ex)

  • Problems with PiPL compilation

    Hello All, I am in the middle of porting over a suite of existent CS5 plugins from Windows to Mac and am running into some compilation problems during the phase of building the .r file of a filter project. As such, and to be explicit, I am running in

  • Array init in formula node

    I would like to cut and past in a list of comma seperated numbers and initialize an array of float32.  Something like this would work in C. float32 data[5] = {0,1,2,3,4}; Labview does not like this syntax when using a formula node.  I have to do the

  • Calling an PC-Application from the CUSTOM.PLL

    We are moving from Oracle Financials 10.7 (Smart Client) to Oracle Financials 11.3 In Oracle Financials 10.7 we call a PC-Application from within the CUSTOM.PLL Can anyone tell me if this is still possible in 11.3 when the forms are running on a form

  • [solved] makepkg -o and GIT-package

    makepkg -o / --nobuild This command downloads and extracts files only. But in case of a PKGBUILD which clones the src from a GIT-repository the behavior is different (it downloads nothing). Do you think I should write a bugreport? Or is there another