How to run application on two machine?

hi
how can i run coherence test program on two machine,
and what configuration need on two machine, so that i can see the sharing of cache.
thanks
praven jain

Here are some "getting started" links that may help:
http://wiki.tangosol.com/display/COH33UG/Installing+Oracle+Coherence
http://wiki.tangosol.com/display/COH33UG/Creating+and+Using+Coherence+Caches
http://www.javalobby.org/java/forums/t78008.html
Coherence includes a default configuration out-of-the-box that will connect any machines using that same configuration (e.g. if you launch the cache client or server scripts in the /bin folder they will detect each other automatically via multicast).
Jon Purdy
Oracle

Similar Messages

  • How to run JMS in multiple machines?

    hello all,
    i am new to jms, so please let me know how to run jms in multiple machines.
    i mean, iin one machine publisher and the queue/topic are running, in other machine listener/clent. so client and the publisher must be running in an application servers. so it means only two app servers can send and receive messages?
    then what is the advantage of JMS?
    I think the sender will be sending messages and the listener can get them at later time, is my understanding is correct?
    Please let me know how it works in multiple machines? and how shold i start now?
    please give me the details....
    thanks in advance.
    charan

    Hi Charan!
    If I understand your questions right, yes, you can use JMS on several physical machines. They connect using JNDI.
    However, you cannot communicate asynchronously through JMS alone. The benefit of JMS is that you have a common interface to use when talking to a messaging provider, like WS MQ, Sonic MQ, etc. Most vendors support JMS, and those who do are called JMS providers. They are required to implement either the Queue functionality or Topic functionality (or both). When using a JMS provider, you really see the benefit of JMS. How else would you secure that your system is loosly coupled? Also, by using JMS and Message Driven Beans you get the benefits of container managed transactions, object pooling, etc.
    If you do not have a JMS provider, you still have the benefit of a loosly coupled system by using JMS to integrate your applications, but in a large system, you should consider a tool for asynchronous messaging(again WS MQ, Sonic MQ, etc).
    I would recomend you start by reading the JMS section of the J2EE tutorial provided by sun.
    -K-

  • How to run forms6i on Unix Machine

    Hi all,
    I have just migrated a form4.5 to form6i. We have character mode application.
    Can anyone give me some idea how to run form6i on unix machine.
    Is it the same way we run form4.5(f45gen xyz.fmb $Path) or bit different
    Thanks
    regds
    Lasily Thomas

    We run some Forms6i character-mode forms on Linux (using "f60run") and just started having some problems after we upgraded our database from 8i to 9i, and especially after applying the latest patch to 9.2.0.4. We get lots of ORA-03113 errors now. We also have problems with at least some calls to server-side (user-written, not built-in) stored functions (not procedures). The Forms compiler crashes on these unless we re-write those function calls to call new wrapper procedures that we wrote (that in turn call the existing functions).

  • How to run application on comp. with only jre installed?

    Hi guys! I've written an application and somebody wants to use it. I have an applet too but it does not have full functionality and slower.
    I am running applications from my desktop using shortcut on javaw.exe file located in jdk/bin folder. No problem with it.
    But if person does not want to instsall jdk? I know that jre has javaw.exe in its bin but it does not work that way.
    My question is: how to run application for domestic use without all this web start hassle and with only jre installed? Is it possible? If yes, how to do this?
    Regards

    Download the JRE redistributable from Sun. It is self installing and will allow the user to run your app using a regular shortcut to javaw.exe.

  • How to run applications with options in IDEs like Netbeans

    Hi, I'm new to the Netbeans IDE and I'm wondering how to run applications with options.
    Normally I'd enter the following in the command line:
    java -Djavax.net.ssl.keyStore=mykeystore -Djavax.net.ssl.keyStorePassword="..." TLSServer
    java  -Djavax.net.ssl.trustStore=mytruststore -Djavax.net.ssl.trustStorePassword="..." TLSClient localhostProblem is, I've no idea how to do the same thing in IDE's like Netbeans and I can't any settings to add options like "-Djavax.net.ssl.keyStore=mykeystore" before running the application. Any help will be appreciated.
    Message was edited by:
    Wolfgard

    Right-click the project, click properties, clicl run, and add parameters to VM Options.

  • How to move application from one machine to another..??

    Hi All,
    I have developed a application which I want to move it to a server, but when I use export i am getting XYZ.sql. And i tried to import it on server but I am getting some Schema errors.
    Please can anybody help me to move my application to other machine with DATABASE structure and Schema.
    Is there anyway to covert my application into a installable, as we install Sample Applications which brings Database tables and schema on to our system when we install it.
    Thanks Lot
    Yogesh

    Hi,
    I'm not sure if your situation is the same as mine but here is how I move my application between computers.
    Comp1: @WORK
    Comp2: @HOME
    1. Export the database on comp1:
    At command prompt type: exp system/password file=db.dmp full=Y
    2. Export the application on comp1:
    From inside ApEx go into your application, select Import/Export and export the following:
    - Application (i use file format DOS, owner override is the application owner and Run and Build Application)
    - CSS (export all css files)
    - Images (export the image files)
    3. Create a user in comp2 to receive the application:
    Log into ApEx as SYSTEM and create a user with full privileges (I use the same username on comp1 and comp2)
    Note: If the user already exists in comp2 I will delete (including all applications) and re-create (basically to start fresh)
    4. Import the database on comp2:
    At command prompt type: imp system/password file=db.dmp fromuser=MYUSER touser=MYUSER
    Note: MYUSER is the user you have created in step3, therefore only database objects from the export file for that user will be imported.
    (Now all my tables, packages, procedures, triggers etc are in the database).
    5. Import the application on comp2:
    Log into ApEx as MYUSER. Go into applications and select Import/Export and import the 3 files that were exported earlier
    At this point everything for me is working.
    BTW - I'm using the same version of XE on both machines.
    Hope this helps.
    Richard.

  • How to run command on all machine in AD?

    Hi,
    I need to run few commands on different OU's in my Active directory environment, and want to make sure commands did run successfully on all machines. Please guide me for the same.

    Hello,
    Either use a Start-Up script or use Enter-PSSession at Powershell or use
    PSExec. Below links might be helpful. You need WinRM up and running on your clients.
    Use PowerShell to Run WMI Commands on Remote Computers
    PsExec v2.11
    Regards.
    Mahdi Tehrani   |  
      |  
    www.mahditehrani.ir
    Please click on Propose As Answer or
    to mark this post as
    and helpful for other people.
    This posting is provided AS-IS with no warranties, and confers no rights.
    How to query members of 'Local Administrators' group in all computers?

  • How to run applications in visual j++ 6.0

    Hi,
    I am putting my code below. I would like to get some help on how to run an application in visual j++. I could build and run this, but the problem is that i am not able to view the result. Whereas the same program when run on the command prompt with jdk shows me the result.
    Please somebody help me in viewing the console or some other window that shows me the result.
    Thank you.
    Jagadish.
    import java.util.*;
    import java.io.*;
    class abc{
    static int count=0;
    public static void main(String args[]) throws Exception
         float agentPosition[] = new float[3];
         for(int k=0; k<3;k++)
    agentPosition=reader();
    for(int j=0;j<3;j++)
    System.out.println(agentPosition[j]);
         }//main
    static float[] reader()
    float[] p1 = new float[3];
         try
         FileReader fr = new FileReader("data.dat");
         BufferedReader br = new BufferedReader(fr);
         String s;
    int count1=0;
    count++;     
         System.out.println();
         System.out.println(count1);
         System.out.println(count);
         try{  
         while((s=br.readLine())!=null)
    count1++;
              StringTokenizer st = new StringTokenizer(s);
              if(count1==count)
              int i=0;
              while(st.hasMoreTokens())
              //p1[i++]=Float.parseFloat(st.nextToken());
                   String s1=st.nextToken();
                   Float fl = new Float(s1);
                   p1[i++]=fl.floatValue();
              }//if
              }//end of stringTokenizer while.
         fr.close();                
         }//try
         catch(IOException f)
              System.out.println("file cannot be opened");
         }//try
         catch(FileNotFoundException e)
         System.out.println("file doesn't exist");
    return p1;
    }//reader
    }//abc

    I agree with PersianDude. VJ++ is an old IDE, no longer supported by M$, uses a very old version of Java, and, for the most part uses platform-dependent code (guess which platform) for a language whose main goal and claim-to-fame is platform-INDEPENDENCE.
    I won't even use Borland's JBuilder anymore. The version that I had cannot support 1.4, there is no upgrade version in the new release (they have a cobbled, cheapo version for $60 that isn't worth even that), and the newest version for creating commercial applications is (ba-ching) $1000. They're outta their cotton-pickin' minds. For that money, it'd better write the apps for me and send me the checks.
    Sun ONE (formerly known as 'Forte for Java') is inexpensive (free for the community version) and works terrifically. It has a steep learning curve, but worth the cost (free for the dommunity version).
    JCreator, which I haven't tried, is considered by many to be the best IDE out there. If I decide to spend money for an IDE, it will more than likely be this one.
    If you're going to program in Java (and not some bastard, unsupported version by M$), use a real Java IDE.
    Robert Templeton

  • How to run qemu Linux virtual machines properly on android tabs.

    My tab specification's are 1.2 GHz quad core processor and 1 GB ram, 16 GB internal ROM.
    I want to run RHEL 5.0 X86 CLI I mean without any gui on my tab and so I followed the steps below
    At first on windows I have installed qemu manager and after that I have created a virtual machine RHEL with processor option as Pentium 3 and ram option with 256 MB. The installation was successful and I am able to boot properly into it.
    After that I have transferred the installation image to my tab. In order to run the virtual machine I have installed limbo qemu manager. I have selected the transferred image and specified the same options as above.
    When I run the above virtual machine I am unable to boot into my system properly and I getting the following errors
    kernel panic not syncing: kernel compiled for Pentium+ requires TSC feature.
    general protection fault : fffa [#1]
    Kindly suggest how to successfully run the above virtual machine on my tab.
    Regards,
    Rupesh.
    Regards,
    Rupesh.

    You don't say what tablet you have, but all of Lenovo's Android tablets that I know of have ARM processors, not X86 processors, so what you're doing isn't going to work.

  • How to run application

    Hi! I've programmed for years JSP, Servlets and Applets, but never a desktop application, so... my problem is that I don't have any idea on how to run it. I mean, of course I know how to run some application in my own desktop (java applicationname) but my doubt is, what I need to install in the client desktop or how must I do my package in order to run without the need for installing the SDK. Because, as I known, the "java.exe" comes with SDK, and of course, I don't think that I need to install de entire SDK in all my clients desktops in order to run my application.
    Any help will be very appreciated!

    JRE (= Java Runtime Environment) suffices to run an application.

  • Help me ,how to run application in jDevloper

    Dear Furum
    i am using free version of jDevloper for last 3 months. And i found some error while compile jClient/Swing (.jpr)
    using bc4j(orcle).
    And there is no error show in log window and application
    hang for long time.
    But my application is running without using bc4j component.
    so what this version expire?
    javed

    Thanks! Forum
    My applicaton name testJA.jpr with jFrame name(FormMypackage1Module.java).
    while running application i fund following line in log window,and after just hang.
    reply me immeditly.
    C:\jDevHome\jdk\bin\javaw.exe -ojvm -classpath C:\jDevHome\jdev\mywork\TestWS\testJA\classes;C:\jDevHome\jdev\mywork\TestWS\testBc4j\classes;C:\jDevHome\BC4J\jlib\bc4jui.jar;C:\jDevHome\jlib\bigraphbean.jar;C:\jDevHome\jlib\LW_PfjBean.jar;C:\jDevHome\BC4J\lib\bc4jimdomains.jar;C:\jDevHome\BC4J\jlib\bc4jimjui.jar;C:\jDevHome\ord\jlib\ordim.jar;C:\jDevHome\ord\jlib\ordhttp.jar;C:\jDevHome\ord\jlib\jmf.jar;C:\jDevHome\lib\xmlparserv2.jar;C:\jDevHome\lib\xmlcomp.jar;C:\jDevHome\jdev\lib\jdev-rt.jar;C:\jDevHome\sqlj\lib\runtime12ee.jar;C:\jDevHome\BC4J\lib\bc4jmt.jar;C:\jDevHome\BC4J\lib\collections.jar;C:\jDevHome\BC4J\lib\bc4jct.jar;C:\jDevHome\lib\xmlparserv2.jar;C:\jDevHome\jlib\jdev-cm.jar;C:\jDevHome\j2ee\home\lib\jndi.jar;C:\jDevHome\jlib\ojmisc.jar;C:\jDevHome\jdbc\lib\classes12.jar;C:\jDevHome\jdbc\lib\nls_charset12.jar;C:\jDevHome\BC4J\lib\bc4jimdomains.jar;C:\jDevHome\ord\jlib\ordim.jar;C:\jDevHome\ord\jlib\ordhttp.jar;C:\jDevHome\jlib\jdev-cm.jar;C:\jDevHome\BC4J\lib\bc4jdomorcl.jar;C:\jDevHome\BC4J\jlib\bc4jdatum.jar -Dhttp.proxyHost=200.0.0.1 -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=w2k|live mypackage2.FormMypackage1Module

  • Checking for running applications on remote machines

    I am trying to check for application running on remote machine - it could be LV or some other application.
    I have Server and Client applications (developed in LV) running as .exe on separate computers. Only LV-Runtime is installed. They exchange data via Datasockets. The problem I have is that if Client is launched before the server the (Client) takes ownership of certain sockets which causes Server to fail on startup. All the remote Clients have to be shotdown before Server can be started again properly.
    I was wondering if anyone has run into a similar problem.

    Hi Slawek,
    I would suggest using Remote Front Panels in LabVIEW. Remote front panels allow you to view and control a VI front panel remotely, either from within LabVIEW or from within a web browser, by connecting to the LabVIEW built-in web server. There is a tutorial Developer Zone: Remote Panels in LabVIEW -- Distributed Application Development that will provide you with more information.
    Also, there are example programs in LabVIEW that walk you through how to programmatically connect to a remote front panel. Go to LabVIEW >> Help >> Find Examples >> Networking >> General >> RemotePanelMethods-Client/Server.vi.
    Hope
    this helps and good luck!
    Kileen C.
    Applications Engineer
    National Instruments

  • How to install applications to remote machines in silent mode?

    Hi All,
    I have the following question and I hope to find a creative solution.
    My application’s architecture is a client server one.
    I would like the server to remotely connect to its clients machines and silently install a client java application for 2 purposes:
    1.     Install new clients on computers that weren’t part of the deployment yet. When the server connects to a new clients he needs send the installation file and execute it
    2.     Updated existed clients (replace jars, configuration files, etc)
    My main goal is to do everything in silent mode (without requiring the users to connect the clients and actively install clients application).
    Can any of you think of a Java solution for this? I think the first purpose if the harder one so in case I ask my users to install the clients for the first time, how do I silently upgrade their applications when needed?
    Tnx,
    Uri

    sabre150 wrote:
    Scheiner wrote:
    My concern with Webstart is that it open windows and require the user to do some steps. Like press one button to agree to an update!
    Yes, but when you have 1000 clients it is a lot of work.
    I would like to have the upgrade process to be done silently. It is this 'silent' requirement that is suspect. Anything silently installing something is dangerous. Are you one of these people who has Windows automatic updates turned on?
    Personally, I am not. but it is good to have the option.
    >>
    Can webstart run in silent mode? I'm pretty sure it can but I can't be certain and I don't know how to do it since I won't ever use silent upgrades. Read the Webstart documentation.
    I can have the server making the client application invoking the URL for the new files (so the user will not have to connect to every client machine and invoke the URL), but how do I do the rest in silent mode?
    btw- I can use PsExec to run the installation on new clients (windows only). My main issue now is how to upgrade silently. If you have other ideas than webstart I will be happy to hear.

  • How to run application client of an EJB application?

    Hi,
    My EJB application is deployed on websphere. I have written a small java client program to interact with an EJB which is working fine if I compile and run it in websphere studio environment.
    However I am getting runtime exception when I tried to run it at command line.
    RemoteConn.java
    import java.util.Hashtable;
    import com.deque.HelloJavaHome;
    import com.deque.HelloJava;
    import javax.naming.InitialContext;
    import javax.naming.Context;
    import javax.ejb.EJBHome;
    import javax.ejb.EJBObject;
    public class RemoteConn {
    public static void main(String[] ar) throws Exception{
    String name="Paruchuri!!";
    String greeting = "";
    try{
    Hashtable env = new Hashtable();
    //env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.ws.naming.util.WsnInitCtxFactory");
    env.put(Context.PROVIDER_URL, "iiop://localhost:2809");
    InitialContext initContext = new InitialContext(env);
    Object obj = initContext.lookup("ejb/HelloJavaHome");
    HelloJavaHome home = (HelloJavaHome) javax.rmi.PortableRemoteObject.narrow(obj, HelloJavaHome.class);
    HelloJava remote = home.create();
    greeting = remote.getGreeting(name);
    catch(Exception e){
    e.printStackTrace();
    System.out.println("Greeting::"+ greeting);
    I have set the application ejb client jar in the class path of client program.
    The exception I am getting at runtime is
    Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.CORBA.iiop.GlobalORBFactory
    at com.ibm.ejs.oa.EJSORBImpl.class$(EJSORBImpl.java:44)
    at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:195)
    at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:93)
    at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:65)
    at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:385)
    at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:284)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:369)
    at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:112)
    at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:422)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:143)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at RemoteConn.main(RemoteConn.java:38)
    Initially I thought I shuold set some jar file of websphere in the classpath of client. But I did not find such a jar containing the above class in websphere studio.
    Basically the error is generated at the below statement at runtime.
    Object obj = initContext.lookup("ejb/HelloJavaHome");
    The only difference I discovered was that the client application has a descriptor file (application-client.xml ) available to it when it ran in websphere studio,. I guess the same META-INF should be provided to client when it runs at command line.
    Right now I am not using any client descriptor file to run the client program. If the above error is due to not supplying META-INF to the client application, how should I make this folder available to client at runtime?
    I greatly appreciate if I could get help ASAP.
    Thanks

    Hey got what is going on. In order to invoke EJB, deployed on WebSpehre App Server, from application client we need to install either WebSphere Application Pluggable Client or WebSphere Thin client on the workstation. Pluggable client is a wrapper to SUN JRE where as Thin Client uses IBM JRE.

  • How to run client from other machine in ejb

    Please help me this problem .
    When i run on local . Every thing is ok .
    But when i run from different machine , it not work .
    Although , i hava changed jnp://localhost:1099 to jnp:/xxx.xxx.xxx:1099 , xxx... this is my ipaddress .
    I am using : net bean 6.9 , j2ee 1.4 , jboss application server 4.2.3GA
    Thanks all

    Thanks jverd and gimbal2 helped me .
    I hava just write the small programme "Hello word "
    This is my code .
    I create EJB module : invokes : hello.java , helloRemote.java , helloRemoteHome.java .
    hello.java*
    package demo;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    +public class hello implements SessionBean {+
    private SessionContext context;
    +public void setSessionContext(SessionContext aContext) {+
    context = aContext;
    +}+
    +public void ejbActivate() {+
    +}+
    +public void ejbPassivate() {+
    +}+
    +public void ejbRemove() {+
    +}+
    +public void ejbCreate() {+
    +}+
    +public String getMessage() {+
    return "hello word";
    +}+
    +}+
    helloRemote.java*
    package demo;
    import java.rmi.RemoteException;
    import javax.ejb.EJBObject;
    +public interface helloRemote extends EJBObject {+
    String getMessage() throws RemoteException;
    +}+
    helloRemoteHome.java*
    package demo;
    import java.rmi.RemoteException;
    import javax.ejb.CreateException;
    import javax.ejb.EJBHome;
    +public interface helloRemoteHome extends EJBHome {+
    demo.helloRemote create()  throws CreateException, RemoteException;
    +}+
    ejb-jar.xml*
    +<?xml version="1.0" encoding="UTF-8"?>+
    +<ejb-jar version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">+
    +<display-name>helloword</display-name>+
    +<enterprise-beans>+
    +<session>+
    +<display-name>helloSB</display-name>+
    +<ejb-name>hello</ejb-name>+
    +<home>demo.helloRemoteHome</home>+
    +<remote>demo.helloRemote</remote>+
    +<ejb-class>demo.hello</ejb-class>+
    +<session-type>Stateless</session-type>+
    +<transaction-type>Container</transaction-type>+
    +</session>+
    +</enterprise-beans>+
    +<assembly-descriptor>+
    +<container-transaction>+
    +<method>+
    +<ejb-name>hello</ejb-name>+
    +<method-name>*</method-name>+
    +</method>+
    +<trans-attribute>Required</trans-attribute>+
    +</container-transaction>+
    +</assembly-descriptor>+
    +</ejb-jar>+
    And now , from diffrent machine . I created the web application . I have added "hello.jar" into web application .
    After , i create one servlet to call getMessage method .
    This is the code :
    test.java*
    package demo;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    +public class test extends HttpServlet {+
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    +throws ServletException, IOException {+
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    +try {+
    System.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
    System.setProperty(Context.PROVIDER_URL,"localhost:1099");//i hava changed localhost to my ipaddress . xxx.xxx.xxx:1099
    InitialContext cxt=new InitialContext();
    Object obj=cxt.lookup("hello");
    helloRemoteHome home=(helloRemoteHome)obj;
    helloRemote helloObj=home.create();
    out.println("<html>");
    out.println("<head>");
    out.println("<title>Servlet test</title>");
    out.println("</head>");
    out.println("<body>");
    out.println("Servlet test at " helloObj.getMessage());+
    out.println("</body>");
    out.println("</html>");
    +}+
    catch(Exception ex)
    +{+
    +}+
    +finally  {+
    out.close();
    +}+
    +}+
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    +throws ServletException, IOException {+
    processRequest(request, response);
    +}+
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    +throws ServletException, IOException {+
    processRequest(request, response);
    +}+
    +public String getServletInfo() {+
    return "Short description";
    +}// </editor-fold>+
    +}+
    The result when i run on local : hello word
    But when i run the client from different machine , the result is : nothing appear .

Maybe you are looking for