Communication between jvms running on the same host

Hi,
which alternatives do i have? I can just think of client-server communication

Using Datasocket would be one easy way of handling this. If you want to, you could also go a bit lower and use the TCP functions (that's what DS uses) to do this yourself (assign each program a port to listen at and communicate between those programs). Search the example finder for "TCP" to see some examples. You will then just need to come up with a way to determine which program is the one using equipment. You could probably run another program which would decide (any of the programs can check if it's running when it starts and if not run it).
The program would always listen on a specific port and another program would only have access to the device if it managed to open a connection to the listener and get the answer that it is allowed.
Try to take over the world!

Similar Messages

  • Can there be more than one JVM Running on the same machine

    Can there be more than one JVM Running on the same machine.

    Even JVM's of different versions (or vendors) can run on the same box at the same time.

  • When communicating between PDB's in the same CDB, are dblinks faster

    Is it faster to communicate between PDB's in the same CDB using dblinks or will it still continue to do a loop back within the network in order to communicate with the PDB? If anyone has any insight please let me know. Thanks all

    12cdb wrote:
    No, I did not mean that.
    Let me rephrase - Both PDBs are under same Instance (CDB) so the communication over db link between those 2 PDBs will be faster.
    Hope that is clear now.
    Pradeep
    In theory, theory and practice are identical. In practice, theory and practice are unrelated.
    Can you prove above is really true?

  • Communication between two network with the same IP segment

    Good Moorning:
    How can establish communication between the production environment and test environment with the same IP segment using switch Cisco Nexus 5548?

    Carlos
    The short answer is you can't as far as i know. You need to do NAT to able to do this and i don't think the Nexus switches support NAT.
    You need a device that can NAT both address ranges. If prod is always the one that initiates the connection then you need static NAT translations for the test machines and you can dynamicaly NAT prod addresses as they go into the test env.
    But if both prod and test can initiate connections then you need to have static NAT translations for both sides.
    We used a pix firewall for this when we connected our prod and test environments. A firewall is a good choice because you can make the test enviornment the outside interface where all traffic is denied by default. You do not want test affecting prod.
    Jon

  • Communication between two JApplets on the same web page

    Hi Freinds
    I have a JSP page containing two applets as follows :-
    <jsp:plugin type="applet" code="TreePageJavaClass.class" codebase="/MYOA" width="200" height="300" name="Applet1">
    </jsp:plugin>
    <jsp:plugin type="applet" code="TreePageJavaClass2.class" codebase="/MYOA" name="Applet2" width="200" height="300">
    </jsp:plugin>
    First applet extends JApplet class and has a tree constructed using swing.
    Second applet extends Applet class.
    Now I want to call a method in second applet on selecting a particular tree node on first applet. I can call method on second applet from first applet when both extends Applet class (not JApplet)
    So please tell me what's the problem here and how it can be solved.
    Thanks

    First Applet :-
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import java.applet.*;
    public class TreePageJavaClass extends JApplet {
    JTree tree;
    JTextField jtf;
    Container contentPane;
    public void init() {
    contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());
    DefaultMutableTreeNode top = new DefaultMutableTreeNode("MakeYourOwnAds");
    DefaultMutableTreeNode a = new DefaultMutableTreeNode("User1");
    top.add(a);
    DefaultMutableTreeNode a1 = new DefaultMutableTreeNode(getParameter("param1"));
    a.add(a1);
    DefaultMutableTreeNode a2 = new DefaultMutableTreeNode(getParameter("param2"));
    a.add(a2);
    DefaultMutableTreeNode a3 = new DefaultMutableTreeNode(getParameter("param3"));
    a.add(a3);
    DefaultMutableTreeNode a4 = new DefaultMutableTreeNode(getParameter("param4"));
    a.add(a4);
    tree = new JTree(top);
    int v = ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
    int h =ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
    JScrollPane jsp = new JScrollPane(tree, v, h);
    contentPane.add(jsp, BorderLayout.CENTER);
    jtf = new JTextField("", 20);
    contentPane.add(jtf, BorderLayout.SOUTH);
    // Anonymous inner class to handle mouse clicks
    tree.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent me) {doMouseClicked(me);
    void doMouseClicked(MouseEvent me)
    TreePath tp = tree.getPathForLocation(me.getX(), me.getY());
    TreePageJavaClass2 app = (TreePageJavaClass2)getAppletContext().getApplet("Applet2");
    if(tp != null)
         if (tp.toString().equals("[MakeYourOwnAds, User1, Ajay]"))
         jtf.setText(tp.toString());
              if (app == null)
              app.setData("null");
              else
                   app.setData("Ajay");
         else
              jtf.setText(tp.toString());
    else
    jtf.setText("");
    Second Applet :-
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    public class TreePageJavaClass2 extends Applet
    private Label msg;
    public void init()
    setLayout(new BorderLayout());
    setBackground(Color.LIGHT_GRAY);
    msg = new Label("Applet2 is running...", Label.CENTER);
    add(BorderLayout.CENTER, msg);
    public void setData(String message)
    msg.setText("Selected Node is " + message);
    Hope you guys will help me.
    Thanks

  • Communication between JVMs..

    Goodmornig to everybody!
    My name is Giorgio and i'm a Java programmer. I have this problem: i have a java application already running on my OS; some time later i have to invoke a method of the java application by another minijavaapplication running in another JVM, but on the same host.
    Is it possible? which technology have i to study???
    thanks in advance
    Giorgio

    Goodmornig to everybody!
    My name is Giorgio and i'm a Java programmer. I have
    this problem: i have a java application already
    running on my OS; some time later i have to invoke a
    method of the java application by another
    minijavaapplication running in another JVM, but on
    the same host.
    Is it possible? which technology have i to study???
    thanks in advanceCan you modify the first application?
    If yes then you need to provide output. Either via sockets or a file.
    The second app uses this.
    If no then it is much more difficult. You must use whatever the first app does put out. And, unless it provides the above solution already (socket/file) with everything you need then it is going to be very difficult to get what you want using just java. Might not be possible at all.

  • Terminating ssl on a bigip, disco and oid running on the same machine

    hi,
    please could someone point me in the right direction.
    I have a working discoverer server 10.1.2 running on a host on 7777
    I have a working 10.1.2 SSO and OIM 10.1.2 server running on the same host on port 7779
    Everything works fine with OID authentication being forwarded to AD servers.
    I'd like to put a bigip in front of the SSO server and terminate the SSL on the bigip, because this seemed to be simplest.......
    The bigip docs say delete the SSO Server from the partner apps (this isn't possible from the SSO web interface, I can only view it).
    I need to get discoverer to connect to the https://[bigip] for SSO authentication.
    I know I need to use ssoreg.sh to do this, the combination of commands eg which homes to use I am having difficulty getting right.
    Thanks in advance,
    Robbo

    And also, how I can interchange message between independent applications (or services) on the same computer?The same way you would interchange messages between them if they were running on different computers.
    You already seem to understand the concept of clients and servers passing messages between each other. There is nothing to prevent a "server" from being a client of another server. And there is nothing to prevent a client from running on the same computer as a server.

  • Securing applications communications running in the same server

    Hi everybody,
    I want to share critical information between two applications (medical information about patients) using JMS queues, moreover due to this criticity i was planning to secure this communication using SSL. The problem is that one of the client applications, because of his architecture, have problems when accessing the JMS queues.
    But I have to say that both applications will run in the same server (physical machine), knowing that, what kind of security problems could we encounter if, finnally we don't cypher the communication?
    I guess that the danger is lower than if the two applications would run in different machines, wouldn't it?
    Thanks!!!

    hi,
    add crossContext="true" in server.xml under tomcatx.x\conf\ in your <Context tag

  • Run two java apps in separate jvm's on the same machine?

    At the command line, when you type:
    java MyClass
    and then type:
    java MyClass
    are the two programs (assuming neither terminated prior to the other's execution) is it running in a separate Java Virtual Machine or the same one?
    And if they're running in the same JVM, is there a way to run the second program in a separate JVM for testing purposes even though they're on the same computer? (btw I'm running windows XP).

    thanks all...just a quick follow up question. Are two
    separate jvm's on the same computer a good
    representation of two jvms running on separate
    computers?Don't know what you mean by "a good representation."
    They're two separate processes. For basic testing, not worrying about performance, etc., and if your code doesn't do anything special to treat two VMs on the same box differently than two VMs on separate boxes, it's probably a reasonable approximation.

  • Do the Cache, CacheStore, and CacheLoader all need to run in the same JVM?

    do the Cache, CacheStore, and CacheLoader all need to run in the same JVM?
    Any help is appreciated.
    Thanks.

    they can be in differnt DP with no problem.
    Now question:
    1-MOH multicast/Unicast? (Multicast MOH ONLY support G711, so that could explain changing the DP fixnig the problem)
    [You can create a DP/region for MOH if multicast to talk G711 to everybody and the problem will get fix]
    Please Kudos/rate if this help!

  • How to set Different applications running on the same computer to use different Gateways?

    Dear All,
    I would like to have different applications running on the same computer to use different Gateways (both gateways are in the same subnet).
    Is it possible in Windows7 with / without a third-party utility?
    Current scenario & requirements:
    I have two internet connections. Both are in the same subnet (192.168.1.0/24) and connected to the same LAN switch
    Gateway for the first connection is 192.168.1.1
    Gateway for the second connection is 192.168.1.2
    I need to set my chrome browser & google talk to use the gateway 192.168.1.1
    I need to set my IE & skype to use the gateway 192.168.1.2
    Is it possible? Answers are appreciated!!
    Regards,
    Anees

    Hi,
    I agree with Bill. Gateway is essentially an IP address for one network to other networks. For example, you have two networks: network A and network B, to make the two networks communicate with each other, you must go through Gateway. That is, as long
    as you set Gateway, then you can make the two networks communicate with each other. The ip address for Gateway is the ip of device with routing enabled. One host machine can own multiple gateways. 
    Andy Altmann
    TechNet Community Support

  • Two processes running at the same time in Lookout

    I have installed Lookout 5.0 with 200 I/O Points onto our server computer. The application of motion control is next to the 200 I/O points through OPC PMAC server/client. Now I would like to have a second process in the same server for trouble shooting and testing without stopping the motion control process. However, this second testing process could have also many I/O points through Serial and USB ports. I assume that the total amount of I/O points of both processes will be greater than 200.I prefer to have independent processes for control and testing because access levels. Can I have these two processes running at the same time when needed?

    Hi,
    From your description you are using a third party OPC server for the motion application. You could have a second Lookout process communicating with the same OPC server with no problems, as long as you do not exceed the number of I/O points your license supports.
    Also, the process you are using for testing obviously could not overwrite datamembers (or registers if you will) that would interfere in the overall application, in other words you can test your application as long as you keep the coherency of the test.
    So the answer would be, yes it is possible, however you are still limited to the number of I/O's your license supports... You may even consider upgrade the number of I/O's you have in your license.
    Best Regards
    Andre Oliveira

  • Activating MS Office 2013 ProPlus via KMS running on the same server

    Given: Microsoft Windows Server 2008 R2 Enterprise 64-bit, all the latest security updates applied.
    KMS service set up and running, all the recommended updates applied (to handle possible activation issues for Windows 8 etc)
    Microsoft Office 2013 Standard deployed on the server mentioned above and on workstations on intranet, volume licensing in effect (proper KMS key for activation of Microsoft Ofice 2013 has been entered).
    Problem: I can't activate MS Office 2013 installation running on the same server where KMS service is being run.
    There are no entries in KMS event log related to this failure.
    Everything was restarted, reinstalled etc several times already (including installing 32-bit and 64-bit versions of the Office).
    Output of slmgr.vbs /dlv 2E28138A-847F-42BC-9752-61B03FFF33CD:
    Windows Script Host
    Software licensing service version: 6.1.7601.17946
    Name: Office 15, KMSHostVL edition
    Description: Office 15, VOLUME_KMS channel
    Activation ID: 2e28138a-847f-42bc-9752-61b03fff33cd
    Application ID: 0ff1ce15-a989-xxxx-xxxx-xxxxxxxxxxxx
    Extended PID: 55041-00206-234-486666-03-xxxx-xxxx.xxxx-xxxxxxx
    Installation ID: 01683679734050124078134659xxxxxxxxxxxxxxxxxxxxxxxxxxx
    Processor Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88342
    Machine Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88343
    Use License URL: http://go.microsoft.com/fwlink/?LinkID=88345
    Product Key Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88344
    Partial Product Key: xxxxx
    License Status: Licensed
    Remaining Windows rearm count: 4
    Trusted time: 2/05/2015 10:00:12 AM
    Key Management Service is enabled on this machine
    Current count: 0
    Listening on Port: 1688
    DNS publishing enabled
    KMS priority: Normal
    Key Management Service cumulative requests received from clients
    Total requests received: 0
    Failed requests received: 0
    Requests with License Status Unlicensed: 0
    Requests with License Status Licensed: 0
    Requests with License Status Initial grace period: 0
    Requests with License Status License expired or Hardware out of tolerance: 0
    Requests with License Status Non-genuine grace period: 0
    Requests with License Status Notification: 0
    OK
    Output of cscript ospp.vbs /dstatus
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.
    ---Processing--------------------------
    SKU ID: b13afb38-cd79-4ae5-xxxx-xxxxxxxxxxxx
    LICENSE NAME: Office 15, OfficeStandardVL_KMS_Client edition
    LICENSE DESCRIPTION: Office 15, VOLUME_KMSCLIENT channel
    LICENSE STATUS: ---OOB_GRACE---
    ERROR CODE: 0x4004f00c
    ERROR DESCRIPTION: Run the following: cscript ospp.vbs /ddescr:0x4004f00c
    Last 5 characters of installed product key: GVGXT
    DNS auto-discovery: KMS name not available
    Activation Interval: 120 minutes
    Renewal Interval: 10080 minutes
    KMS host caching: Enabled
    ---Exiting-----------------------------

    Given: Microsoft Windows Server 2008 R2 Enterprise 64-bit, all the latest security updates applied.
    KMS service set up and running, all the recommended updates applied (to handle possible activation issues for Windows 8 etc)
    Microsoft Office 2013 Standard deployed on the server mentioned above and on workstations on intranet, volume licensing in effect (proper KMS key for activation of Microsoft Ofice 2013 has been entered).
    Problem: I can't activate MS Office 2013 installation running on the same server where KMS service is being run.
    There are no entries in KMS event log related to this failure.
    Everything was restarted, reinstalled etc several times already (including installing 32-bit and 64-bit versions of the Office).
    Output of slmgr.vbs /dlv 2E28138A-847F-42BC-9752-61B03FFF33CD:
    Windows Script Host
    Software licensing service version: 6.1.7601.17946
    Name: Office 15, KMSHostVL edition
    Description: Office 15, VOLUME_KMS channel
    Activation ID: 2e28138a-847f-42bc-9752-61b03fff33cd
    Application ID: 0ff1ce15-a989-xxxx-xxxx-xxxxxxxxxxxx
    Extended PID: 55041-00206-234-486666-03-xxxx-xxxx.xxxx-xxxxxxx
    Installation ID: 01683679734050124078134659xxxxxxxxxxxxxxxxxxxxxxxxxxx
    Processor Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88342
    Machine Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88343
    Use License URL: http://go.microsoft.com/fwlink/?LinkID=88345
    Product Key Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88344
    Partial Product Key: xxxxx
    License Status: Licensed
    Remaining Windows rearm count: 4
    Trusted time: 2/05/2015 10:00:12 AM
    Key Management Service is enabled on this machine
    Current count: 0
    Listening on Port: 1688
    DNS publishing enabled
    KMS priority: Normal
    Key Management Service cumulative requests received from clients
    Total requests received: 0
    Failed requests received: 0
    Requests with License Status Unlicensed: 0
    Requests with License Status Licensed: 0
    Requests with License Status Initial grace period: 0
    Requests with License Status License expired or Hardware out of tolerance: 0
    Requests with License Status Non-genuine grace period: 0
    Requests with License Status Notification: 0
    OK
    Output of cscript ospp.vbs /dstatus
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.
    ---Processing--------------------------
    SKU ID: b13afb38-cd79-4ae5-xxxx-xxxxxxxxxxxx
    LICENSE NAME: Office 15, OfficeStandardVL_KMS_Client edition
    LICENSE DESCRIPTION: Office 15, VOLUME_KMSCLIENT channel
    LICENSE STATUS: ---OOB_GRACE---
    ERROR CODE: 0x4004f00c
    ERROR DESCRIPTION: Run the following: cscript ospp.vbs /ddescr:0x4004f00c
    Last 5 characters of installed product key: GVGXT
    DNS auto-discovery: KMS name not available
    Activation Interval: 120 minutes
    Renewal Interval: 10080 minutes
    KMS host caching: Enabled
    ---Exiting-----------------------------

  • Share a library between two users on the same mac?

    It is possible to share a library between two users on the same mac?

    It's doable. As it's been pointed out Aperture has no provisions for file locking so you can't have two users accessing the library at the same time. This includes having one user having the library open only for browsing. Aperture doesn't have a +Read Only+ mode, when it opens the library, even if you make no changes to any images, the library will be written to.
    This also means you can't have one user open the library and then stop using Aperture but still have the library open and then have another copy of Aperture open on the library.
    Of course if you have two copies of Aperture running even they are on different libraries you'll be in violation of the license and you'll have bigger problems to worry about then a toasted library.

  • TS2972 is it possible to use home sharing between two users on the same computer?

    My wife and I have itunes accounts and want to be able to share music we have each bought on our accounts. We have tried setting up the home sharing on our PC but it doesn't show up on the screen. Can anyone please help?

    "Is it possible to use home sharing between two users on the same computer?"
    No. Home sharing is used to connect two running instances of iTunes across a network. When you switch users on the computer all applications running on the other profile are suspended.
    You can however share your respective media folders so that they are visible in either profile and then copy over any content that you want, or you could create a single joint library which you use when either user is logged in.
    tt2

Maybe you are looking for