2 J2EE RI servers which communicate with each other

Hi all,
I'm wondering whether the following scenario is possible, and if so, of course I would like to now how I have to achieve it.
I want to run two j2ee ri application servers on two different machines. What I want, is that the applications on the two different servers can communicate with each other.
Any help on this will be greatly appreciated.

Greetings,
that does the lookup, so I have the bean clasees in
the classpath of the project (is that what you
ment?).In addition to the bean classes, the client needs the stub files generated by deploytool - the reason for the ClassCastException is due to that the cast actually gets made against the server stub(s) which, in this case, isn't available to the client. The stubs are generated during deployment and have the same name as your interfaces with the suffix '_impl' (implementation). The first dialog of the deployment wizard has the option to "Return client jar" - select it (a checkbox) and add the resulting jar file (has the same name as your .ear file with the ending 'Client.jar'), to your client's CLASSPATH (just mount it as a filesystem in Forte4J ;). This file has the stubs along with the rest of your bean's associated classes.
Can you help? I'm realy stuck.I hope this helps.
Thanks.
Oded "Shushu" HasidiRegards,
Tony "Vee Schade" Cook

Similar Messages

  • Migration between two environments which can't communicate with each other

    My customer is intending to do migration from test environment to production environment using CCM.
    But the two environments are not in the same network.
    The environments' setting is as blew.
    BO TEST Repository can communicate with Web BO Server.
    BO PRODUCTION Repository (Cluster environment) can communicate with Web BO Server.
    BO TEST Repository and BO PRODUCTION Repository (Cluster environment) are in the different network, they can't communicate with each other.
    Setting Target Repository manually in CCM.
    Questions are:
    1. In CCM, as long as both Source Repository and Target Repository can communicate with Web BO Server, the migration will be successful.
       Is that right?
    2. If 1 is not right, is there additional setting should I do?
       For example, If I need to open some firewall port?
    3. Is there other attentions should I notice?
    Thanks

    Questions are:
    1. In CCM, as long as both Source Repository and Target Repository can communicate with Web BO Server, the migration will be successful.
    Is that right?
    Yes that is correct
    2. If 1 is not right, is there additional setting should I do?
    For example, If I need to open some firewall port?
    You have another option which is to use the BIAR files. Export your objects to a BIAR file in source environment, and import them from BIAR into the target environment
    3. Is there other attentions should I notice?
    when using BIAR files as solution, Make sure that you keep them < 1GB size to avoid corruption
    you may have to increase or adjust timeouts on input and output repository servers as well

  • How do I enable two wireless clients to communicate with each other?

    I have a WRT54GL with the latest firmware.  I have two computers which are both connected to the router, with IP addresses assigned via DHCP.  Neither has a firewall running.  I cannot get them to communicate with each other -- even ping doesn't work.  I can ping the router itself using the IP address assigned to it on the WAN side by my ISP.   Both computers have no problem reaching the internet through the router.
    What settings on the router will enable the communication to occur?  I can't find anything in the router's user interface which appears to control this. 
    Thanks.
    Solved!
    Go to Solution.

    Hi annie25,
    I think it would be best to check on netgear or belkin technical forums how to make these two talk. 
    Yesterday is history. Tomorrow is mystery. Today is a gift.

  • How can I have threads communicate with each other?

    I'm working on a project that requires a group of classes communicating with each other. I decided on using a server and carrying out communication that way. However, my app only has communication between the client and server. I need the clients to be able to communicate with each other. Does anyone know how I can do this or point me to a good tutorial?

    Sorry, here's a bone stock example of my server and client:
    <SERVER>
    package testserver;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class TestServer
    static int portOpen;
    public static void main(String[] args)
    portOpen=4000;
    try
    ServerSocket portListener = new ServerSocket(portOpen);
    TestServer userThreads = new TestServer();
    while (1==1)
    Socket userConnection=portListener.accept();
    userThreads.new PortConnection(userConnection);
    catch (Exception e)
    System.out.println("The server encountered a serious error. Server shut down.");
    e.printStackTrace();
    System.exit(0);
    class PortConnection extends Thread
    //Declare variables to handle connections.
    Socket ourConnection;
    BufferedReader serverInput;
    PrintWriter serverOutput;
    PortConnection(Socket userConnection)
    try
    ourConnection=userConnection;
    serverInput=new BufferedReader(new InputStreamReader(userConnection.getInputStream()));
    serverOutput=new PrintWriter(userConnection.getOutputStream(),true);
    start();
    catch (Exception e)
    System.out.println("An error occurred when a user attempted a connection.");
    public void run()
    serverOutput.println("Welcome to the Server.");
    try
    serverOutput.close();
    serverInput.close();
    ourConnection.close();
    catch (Exception e)
    </SERVER>
    <CLIENT>
    package testclient;
    import java.io.*;
    import java.util.*;
    import java.net.*;
    public class TestClient {
    static BufferedReader userInput;
    static Socket quizServer;
    static BufferedReader serverInput;
    static PrintWriter serverOutput;
    static String serverData;
    public static void main(String[] args) {
    userInput = new BufferedReader(new InputStreamReader(System.in));
    try {
    quizServer=new Socket("localhost",4000);
    catch (Exception e) {}
    try
    serverInput=new BufferedReader(new InputStreamReader(quizServer.getInputStream()));
    serverOutput=new PrintWriter(quizServer.getOutputStream(),true);
    catch (Exception e) {}
    try {
    serverData=serverInput.readLine();
    catch (Exception e) {}
    System.out.println(serverData);
    </CLIENT>

  • I have the iPhone and my own Apple ID. I would like the iPad to have my husbands Apple ID so we are able to communicate with each other (he is deaf). How can FaceTime and iMessage be set up to do this?

    I have the iPhone and my own Apple ID. I would like the iPad to have my husbands Apple ID so we are able to communicate with each other (he is deaf). How can FaceTime and iMessage be set up to do this?

    Log into each device with your own Apple ID's in Settings > iCloud.
    Then, so you can share preiously purchased apps, log into both devices using the Apple ID used to make those purchases, but ONLY in Settings > iTunes and Apps Stores.
    Verify that each device uses your own Apple IDs in Settings > Facetime and Settings > Messages.

  • Remote Access VPN users unable to communicate with each other

    Hi,
    We have configured Remote Access VPN on Cisco IOS router. Users are able to access the inside resources but cant communicate to each other. Any suggestions on the issue?
    Regards
    Saif

    Have you excluded the VPN traffic from being NATed when traffic is going between clients?
    Please post a full sanitised configuration of the router so we can check it for configuration issues.
    Please remember to select a correct answer and rate helpful posts

  • Is there a way to have 2 threads communicate w/each other?

    I'm working on a program which requires 2 threads to communicate with each other. I was wondering how I can do this? How can I find out an id to reference a thread?

    I am not sure that there is .. not directly anyway. You can creat an intermediate class and pass copies of its objects to your threads. And then your threads can use it as a means of communication between them. For example:
    class A {
    // you have some private and public methods here.. which you can use to communicate between threads
    class B extends Thread {
    private A aVar;
    public B (A a) {
    aVar = a;
    //you have your run method here..
    class C extends Thread {
    private A aVar;
    public C (A a) {
    aVar = a;
    //you have your run method here..
    class D {
    public static void main(String [] args) {
    A a = new ();
    B b = new B (a);
    C c = new C(a);
    b.start();
    c.start();
    }

  • Getting 4  swf files comunicate with each other on server

    Hallo
    I would like to ask anybody, may be a bit hard question.
    Firstly the example I'm talking about
    issue">http://www.kiamotors.cz/showroom/ceed_test.aspx
    home">issue
    site. See the flash movie on the bottom. That's it. Those are 4
    diferent swfs. The problem is, as you could noticed, load time of
    each other. If you want to ask why the hell you just wount make 1
    falsh video, put that white cross on top of it if u like the effect
    and ur done. But believe me or not I just simply can't. Site's
    useing special CMS where is 4 divs for 4 swfs... Here u can see it
    more clear [L=http://www.kiamotors.cz/[L=home page ... so here is
    my question.....
    Is ther any posibility to make swfs communicate with each
    other on server. Let's say... swf 1 don't start till swf 2,3,4 load
    aswell a.s.o.
    P.S.: sorry for my grammer ...

    You could use ExternalInterface to have javascript act as a
    middleman to communicate things across swf's, but if you don't have
    the ability to change the page code, which seems to be the case,
    then that probably will not owrk as a solution for you.

  • 2 AIR applications directly communicating with each other in real time

    Building a installation that requires 2 different kiosks to communicate with each other. I'd like to use Adobe AIR to create the individual applications.
    My question is
    Is it possible for 2 separate AIR applications to DIRECTLY communicate with each other in real time, without any server to act as mediator?
    Ideally the only data that would be transferred would be json based.

    Not sure whether this helps; http://www.adobe.com/devnet/air/flex/articles/creating_socket_server.html

  • Two PCs connected via TC can't seem to communicate w/ each other

    I have two PCs running XP pro connected to a TC. The TC is also connected to a cable modem. Each PC has successfully obtained an IP address (10.0.1.2, 10.0.1.3). Each can retrieve web pages from the internet. However, they don't seem to be able to communicate with each other. I have re-run my network setup wizard on both PCs and created a home workgroup. When I try use My Network Places ... Home, I only see the local PC. If I ping the other address, the ping times out. I can ping the TC (10.0.1.1) however.
    Any ideas as to why the two computers would not be able to communicate w/ each other but can communicate w/ the internet?

    I just spoke with Apple Care. The support rep did some research and believes the problem is with settings on my computers. This network was working with a different router (and different private network addresses) before I swapped it out for the Time Capsule.
    Anyone have any ideas what might be blocking network replies (or incoming packets) on the various XP computers?

  • Two ear file communicating with each other

    HI,
    I have one doubt,
    I Have two ear files (two webservices actually) deployed succesfully in the same application server (Weblogic7.0). Let us say them a.ear and b.ear
    In a.ear there are class say A.class and B.class. In B.java file there is a staic HashMap which stores some object based on some id. Also in B.java there is static method which takes the id as a parameter and return the corrospojnding object stored in the static hasmap.
    In b.ear file there class say B.class and C.class. Note that this ear file has its own copy of B.class file. In C.java file i create an object (though i dont need create being it a static method) of B.java and calls the static object passing it the id and expecting it that it will return me the object stored in the Hashmap. it returns me null though it has the objects stored for that id.
    Is it because both ear files has their own copy of B.class. but i though that that they are running in the same jvm in application server so it should not be a problem. if this is the reason then my problem will be solved if i put them in same ear file.
    Can anybody put his insights into his experiences and lemme know what is the cause of problem and solution and for my knowledge why it is happening.
    Best Regards,
    Akhil Nagpal

    You're right that the two have different copies of the class. This is because the EJB container uses a different classloader for different applications, to prevent statics clashing with each other and other related security reasons.
    Usually if you want to communicate from one to the other, you would use the EJB mechanism itself. The JNDI names should be global (from simple tests I did in the past, this seems to be the case) so that one application can look up an EJB from the other.

  • How to make 2 clients on same VLAN communicate to each other when tunnel-loop-prevention is enabled?

    Requirement:
    How to make two clients on same VLAN communicate to each other when tunnel-loop-prevention is enabled on tunneled-node configuration at controller?
    Whenever we enable tunnel-loop-prevention on controller while we configure tunneled-node, the communication between two tunneled-node client on same VLAN is blocked or dropped.
    If the tunneled-node clients are of different VLANs then they can communicate between them even when the tunnel-loop-prevention is enabled on the controller.
    Solution:
    To make two tunneled-node client on same VLAN to communicate between them, we need to enable "local-proxy-arp" for the interface VLAN on the controller.
    Once it is enabled now the tunneled-node clients on same VLAN can communicate between each other. 
    Configuration:
    To enable "local-proxy-arp":
    Get to the interface of the VLAN on the controller
    Example :
    (config)#interface vlan 5
    (config)#ip local-proxy-arp
    To enable tunnel loop prevention on controller
    (config)# tunnel-loop-prevention
    Verification
    Show commands:
    To check if tunnel-loop-prevention is enabled or disabled
    #show tunneled-node config
    Tunnelded node Server: Enabled
    Tunnel Loop Prevention: Enabled
    To check if local-proxy-ap is enabled:
    #show interface vlan 5
    Look for in the output "ProxyARP enable"

    streetfi8er wrote:
    Server ready,waiting for client:
    Exception in thread "New THREAD" java.lang.NullPointerException
         at server4$server4Thread.run(server4.java:88)
    Failed to accept client
    when i run the second client programme on different a console in the same system i get the error that:
    Unknown HostOK, I'm no socket programming expert; but I can see a few potential problems with what you've written.
    1. First off, which line is line 88? Line numbers would be useful. Also, indenting your code properly would make it easier to read.
    2. Your 'while(!str.equalsIgnoreCase("close"))' will always fail with a NullPointerException because 'str' is initially set to null.
    3. Your 'while(true)' loop worries me. How does it exit? Relying on an exception is usually very bad practise.
    4. You are not handling SecurityExceptions. While it's unlikely to happen on your machine; it could easily happen on another.
    5. It might be worth indicating the actual exception thrown in your "Failed to accept client" message. accept() can throw three different types of IOException.
    6. All the threads you create will be called "New THREAD", which doesn't provide much value.
    HIH
    Winston

  • Hi, I'd like to set alarms or reminders on my I phone or I pad so that it can update or sync automatically with each other. I don't know if this is possible or how to do it. I hope you can help..

    Hi, I'd like to set alarms or reminders on my I phone or I pad so that it can update or sync automatically with each other. I don't know if this is possible or how to do it. I hope you can help.

    HI, if I did this, then I believe that I cloud would then hold my info which I don't want. Is that the case? The reason is that I'm an old git, therefore used to not giving out info. Would I be right?
    Thank-You so much for taking the time to answer.
    John.

  • I currently use an iPhone, an iPad, and a Mac computer for business.  The three devices have Contacts Managers that sync with each other through both Google and through Mobile Me.  Currently, this has created a mess of duplicate contacts.  Please researc

    I currently use an iPhone, an iPad, and a Mac computer for business.  The three devices have Contacts Managers that sync with each other through both Google and through Mobile Me.  Currently, this has created a mess of duplicate contacts.  Please advise me on the steps necessary for removing these duplicates and establishing a syncing solution that doesn't regenerate the duplicates.  There are several applications available that remove duplicates, but I am not sure which ones work or don't work.  I want information on this, but most importantly I want to understand how to fix this problem permanently.  Also, I read somewhere that Mac's new operating system, Lion, can help deal with duplicates.  I don't have Lion, but I would be willing to get it, if this would fix the problem.

    Had the same problem with 4 devices (two computers, an iPhone and an iPod). The solution is simple: open the Address Book application in your mac, ask it to locate duplicate entries (under one of the top menu items, "edit" I think), and then ask it to consolidate them: it took me all of three seconds after I figured it out: worked like a charm! PS: if you have more than one mac with unconected Address Books, repeating the operation in the second one may be a good idea.
    Message was edited by: mfduran

  • I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    You can't merge accounts or copy content to a different account, so anything that you bought or downloaded via the old account is tied to that account - so any updates that those apps get you will only be able to download via that account. You can change which account is logged in on the iPad via Settings > Store

Maybe you are looking for