Echo to all clients connected to NIO server

I am writing a NIO xml socket server that uses NIO.
My model implemensts a producer / consumer system where client connections are accepted and processed by a specified number of worker threads.
I would like to be able to broadcast a message to all clients that are connected to the server.
Opinions / suggestions I am sure that this is quite a common type of functionality.
Kind Regards

Accendia server is implementing a callback mechanism that allows the server to notify the client.
This is not broadcast, you would have to call each client (www.accendia.com). For real broadcasting use datagram or multicast sockets (depends on different factors) on both client and server in addition to the sockets used as part of the NIO server.

Similar Messages

  • Broadcast to all clients connected to NIO server

    I am writing a NIO xml socket server that uses NIO.
    My model implemensts a producer / consumer system where client connections are accepted and processed by a specified number of worker threads.
    I would like to be able to broadcast a message to all clients that are connected to the server.
    Opinions / suggestions I am sure that this is quite a common type of functionality.
    Kind Regards

    Accendia server allows the server side to invoke callback objects on the client. You can't do real broadcasting, though, you would have to iterate through all client connections. See if it helps:
    http://www.accendia.com
    If you need real broadcasting you can use datagram or multicast sockets on both the server and client side.

  • (Cisco Historical Reporting / HRC ) All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054

    Hi All,
    I am getting an error message "All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054"  when trying to log into HRC (This user has the reporting capabilities) . I checked the log files this is what i found out 
    The log file stated that there were ongoing connections of HRC with the CCX  (I am sure there isn't any active login to HRC)
    || When you tried to login the following error was being displayed because the maximum number of connections were reached for the server .  We can see that a total number of 5 connections have been configured . ||
    1: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Current number of connections (5) from historical Clients/Scheduler to 'CRA_DATABASE' database exceeded the maximum number of possible connections (5).Check with your administrator about changing this limit on server (wfengine.properties), however this might impact server performance.
    || Below we can see all 5 connections being used up . ||
    2: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:[DB Connections From Clients (count=5)]|[(#1) 'username'='uccxhrc','hostname'='3SK5FS1.ucsfmedicalcenter.org']|[(#2) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#3) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#4) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#5) 'username'='uccxhrc','hostname'='47BMMM1.ucsfmedicalcenter.org']
    || Once the maximum number of connection was reached it threw an error . ||
    3: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Number of max connection to 'CRA_DATABASE' database was reached! Connection could not be established.
    4: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Database connection to 'CRA_DATABASE' failed due to (All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054.)
    Current exact UCCX Version 9.0.2.11001-24
    Current CUCM Version 8.6.2.23900-10
    Business impact  Not Critical
    Exact error message  All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054
    What is the OS version of the PC you are running  and is it physical machine or virtual machine that is running the HRC client ..
    OS Version Windows 7 Home Premium  64 bit and it’s a physical machine.
    . The Max DB Connections for Report Client Sessions is set to 5 for each servers (There are two servers). The no of HR Sessions is set to 10.
    I wanted to know if there is a way to find the HRC sessions active now and terminate the one or more or all of that sessions from the server end ? 

    We have had this "PRX5" problem with Exchange 2013 since the RTM version.  We recently applied CU3, and it did not correct the problem.  We have seen this problem on every Exchange 2013 we manage.  They are all installations where all roles
    are installed on the same Windows server, and in our case, they are all Windows virtual machines using Windows 2012 Hyper-V.
    We have tried all the "this fixed it for me" solutions regarding DNS, network cards, host file entries and so forth.  None of those "solutions" made any difference whatsoever.  The occurrence of the temporary error PRX5 seems totally random. 
    About 2 out of 20 incoming mail test by Microsoft Connectivity Analyzer fail with this PRX5 error.
    Most people don't ever notice the issue because remote mail servers retry the connection later.  However, telephone voice mail systems that forward voice message files to email, or other such applications such as your scanner, often don't retry and
    simply fail.  Our phone system actually disables all further attempts to send voice mail to a particular user if the PRX5 error is returned when the email is sent by the phone system.
    Is Microsoft totally oblivious to this problem?
    PRX5 is a serious issue that needs an Exchange team resolution, or at least an acknowledgement that the problem actually does exist and has negative consequences for proper mail flow.
    JSB

  • List all clients connected in a FlexSession

    Is possible list all clients connected in a FlexSession?
    Does anyone have a link or example to share?
    Sorry for bad English....
    I´m using FlexBuilder 4.6 and Java

    Seems like a good homework assignment.
    Thanks for sharing.
    Did you have a question about this?
    How much have you done so far?
    Dave Patterson

  • How to reduce configuration cache file Quota size located in ( C:\Windows\ccmcache ) for all client from SCCM 2012 server

    How to reduce configuration cache file Quota size located in ( C:\Windows\ccmcache ) for all client from SCCM 2012 server
    Thanks in Advance
    NTRao

    Hi,
    There are numerous ways to change the cache size.
    You could deploy a vbscript to a collection of the devices.
    On Error Resume Next
    Dim UIResManager
    Dim Cache
    Dim CacheSize
    CacheSize=20000
    Set UIResManager = createobject("UIResource.UIResourceMgr")
    Set Cache=UIResManager.GetCacheInfo()
    Cache.TotalSize=CacheSize
    Or you could use a configuration item.
    http://blog.coretech.dk/heh/configuration-items-and-baselines-using-scripts-powershell-example/
    You can also use the right click tools by Now Micro on a collection, if all the servers are on this would be the easiest / quickest way.
    http://www.nowmicro.com/recast/right-click-tools/
    http://www.david-obrien.net/2013/02/how-to-configure-the-configmgr-client/
    select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier, SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.OperatingSystemNameandVersion like '%6.2%'
    https://msdn.microsoft.com/en-us/library/windows/desktop/ms724832%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

  • How to make the client connect to the server at the command prompt?

    I found this code on IBM's website, it was a training session on servers and clients using java.
    The code compiles fine and the server seems to start up properly when I use java Server 5000. I think whats happening is the server is running and listening for a connection on port 5000.
    When I try to run the client I get the following error.
    Exception in thread "main" java.lang.NoSuchMethodError: main
    I see a start() method but no main. As far as I know, applications should all have main, it seems as if the person who wrote this kinda confused applets with application. Not that I would really know what happened.
    If you have time, could you tell me if there's an easy fix for this? I would love to have this client/server working if it isn't too much trouble. As I have looked all over the net for a free client/server applet that will actually let me see the java code and none of the free ones do allow getting to their source.
    Most of them allow you to customize them somewhat but also have built in advertising that can't be removed.
    This is the closest I have come to finding one that lets me look under the hood. But alas it doesn't work out of the box and I don't know what to do to fix it.
    Heres the code: Server:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class Server
      // The ServerSocket we'll use for accepting new connections
      private ServerSocket ss;
      // A mapping from sockets to DataOutputStreams.  This will
      // help us avoid having to create a DataOutputStream each time
      // we want to write to a stream.
      private Hashtable outputStreams = new Hashtable();
      // Constructor and while-accept loop all in one.
      public Server( int port ) throws IOException {
        // All we have to do is listen
        listen( port );
      private void listen( int port ) throws IOException {
        // Create the ServerSocket
        ss = new ServerSocket( port );
        // Tell the world we're ready to go
        System.out.println( "Listening on "+ss );
        // Keep accepting connections forever
        while (true) {
          // Grab the next incoming connection
          Socket s = ss.accept();
          // Tell the world we've got it
          System.out.println( "Connection from "+s );
          // Create a DataOutputStream for writing data to the
          // other side
          DataOutputStream dout = new DataOutputStream( s.getOutputStream() );
          // Save this stream so we don't need to make it again
          outputStreams.put( s, dout );
          // Create a new thread for this connection, and then forget
          // about it
          new ServerThread( this, s );
      // Get an enumeration of all the OutputStreams, one for each client
      // connected to us
      Enumeration getOutputStreams() {
        return outputStreams.elements();
      // Send a message to all clients (utility routine)
      void sendToAll( String message ) {
        // We synchronize on this because another thread might be
        // calling removeConnection() and this would screw us up
        // as we tried to walk through the list
        synchronized( outputStreams ) {
          // For each client ...
          for (Enumeration e = getOutputStreams(); e.hasMoreElements(); ) {
            // ... get the output stream ...
            DataOutputStream dout = (DataOutputStream)e.nextElement();
            // ... and send the message
            try {
              dout.writeUTF( message );
            } catch( IOException ie ) { System.out.println( ie ); }
      // Remove a socket, and it's corresponding output stream, from our
      // list.  This is usually called by a connection thread that has
      // discovered that the connectin to the client is dead.
      void removeConnection( Socket s ) {
        // Synchronize so we don't mess up sendToAll() while it walks
        // down the list of all output streamsa
        synchronized( outputStreams ) {
          // Tell the world
          System.out.println( "Removing connection to "+s );
          // Remove it from our hashtable/list
          outputStreams.remove( s );
          // Make sure it's closed
          try {
            s.close();
          } catch( IOException ie ) {
            System.out.println( "Error closing "+s );
            ie.printStackTrace();
      // Main routine
      // Usage: java Server <port>
      static public void main( String args[] ) throws Exception {
        // Get the port # from the command line
        int port = Integer.parseInt( args[0] );
        // Create a Server object, which will automatically begin
        // accepting connections.
        new Server( port );
    }CLIENT:
    import java.io.*;
    import java.net.*;
    public class ServerThread extends Thread
      // The Server that spawned us
      private Server server;
      // The Socket connected to our client
      private Socket socket;
      // Constructor.
      public ServerThread( Server server, Socket socket ) {
        // Save the parameters
        this.server = server;
        this.socket = socket;
        // Start up the thread
        start();
      // This runs in a separate thread when start() is called in the
      // constructor.
      public void run() {
        try {
          // Create a DataInputStream for communication; the client
          // is using a DataOutputStream to write to us
          DataInputStream din = new DataInputStream( socket.getInputStream() );
          // Over and over, forever ...
          while (true) {
            // ... read the next message ...
            String message = din.readUTF();
            // ... tell the world ...
            System.out.println( "Sending "+message );
            // ... and have the server send it to all clients
            server.sendToAll( message );
        } catch( EOFException ie ) {
          // This doesn't need an error message
        } catch( IOException ie ) {
          // This does; tell the world!
          ie.printStackTrace();
        } finally {
          // The connection is closed for one reason or another,
          // so have the server dealing with it
          server.removeConnection( socket );
    }Thanks for your time.

    CLIENT:
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    public class Client extends Panel implements Runnable
      // Components for the visual display of the chat windows
      private TextField tf = new TextField();
      private TextArea ta = new TextArea();
      // The socket connecting us to the server
      private Socket socket;
      // The streams we communicate to the server; these come
      // from the socket
      private DataOutputStream dout;
      private DataInputStream din;
      // Constructor
      public Client( String host, int port ) {
        // Set up the screen
        setLayout( new BorderLayout() );
        add( "North", tf );
        add( "Center", ta );
        // We want to receive messages when someone types a line
        // and hits return, using an anonymous class as
        // a callback
        tf.addActionListener( new ActionListener() {
          public void actionPerformed( ActionEvent e ) {
            processMessage( e.getActionCommand() );
        // Connect to the server
        try {
          // Initiate the connection
          socket = new Socket( host, port );
          // We got a connection!  Tell the world
          System.out.println( "connected to "+socket );
          // Let's grab the streams and create DataInput/Output streams
          // from them
          din = new DataInputStream( socket.getInputStream() );
          dout = new DataOutputStream( socket.getOutputStream() );
          // Start a background thread for receiving messages
          new Thread( this ).start();
        } catch( IOException ie ) { System.out.println( ie ); }
      // Gets called when the user types something
      private void processMessage( String message ) {
        try {
          // Send it to the server
          dout.writeUTF( message );
          // Clear out text input field
          tf.setText( "" );
        } catch( IOException ie ) { System.out.println( ie ); }
      // Background thread runs this: show messages from other window
      public void run() {
        try {
          // Receive messages one-by-one, forever
          while (true) {
            // Get the next message
            String message = din.readUTF();
            // Print it to our text window
            ta.append( message+"\n" );
        } catch( IOException ie ) { System.out.println( ie ); }
    import java.applet.*;
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    public class ClientApplet extends Applet
      public void init() {
        String host = getParameter( "192.168.1.47" );
        int port = Integer.parseInt( getParameter( "5000" ) );
        setLayout( new BorderLayout() );
        add( "Center", new Client( host, port ) );
    }Sorry about that. Now when I run an html file with this applet I just get the x in the corner.
    Thanks for looking.

  • How to Non-ACC Client connect Sun App Server 8 with SSL

    I have create a Rich Client(Non-ACC) that connect to Sun App Server 8 with IIOP(8001) and is working fine. However, when I try to connect to same server with using SSL (8002) and throw exception during lookup a Bean as below.
    Please help!!
    Server Configuration
    ================
    IIOP Port(s): 8001, 8002, 8003
    All listener ports are enabled
    Client Coding
    ===========
    env.put(javax.naming.Context.PROVIDER_URL, "iiop://"+url);
    env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.sun.appserv.naming.S1ASCtxFactory");
    System.setProperty("javax.net.ssl.keyStoreType", "jks");
    System.setProperty("javax.net.ssl.keyStore", "D:\\Sun\\AppServer\\domains\\adsr\\config\\keystore.jks");
    System.setProperty("javax.net.ssl.keyStorePassword", "password");
    System.setProperty("javax.net.ssl.trustStore", "D:\\Sun\\AppServer\\domains\\adsr\\config\\cacerts.jks");
    System.setProperty("javax.net.ssl.trustStorePassword", "password");
    System.setProperty("com.sun.CORBA.connection.ORBSocketFactory", "com.sun.enterprise.iiop.IIOPSSLSocketFactory");
    ic = new InitialContext(env);
    Object objref = ic.lookup("ejb20/statelessSession/EntControllerHome");
    Exception
    ========
    [java] Mar 18, 2005 4:43:59 PM com.sun.corba.ee.spi.logging.LogWrapperBasedoLog
    [java] INFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/4645"
    [java] Mar 18, 2005 4:44:00 PM com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl readFully
    [java] WARNING: "IOP00410215: (COMM_FAILURE) Read of full message failed :
    bytes requested = 12 bytes read = 7 max wait time = 300 total time spent waiting = 364"
    [java] org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 215 completed: No
    [java] at com.sun.corba.ee.impl.logging.ORBUtilSystemException.transportReadTimeoutExceeded(ORBUtilSystemException.java:2629)
    [java] at com.sun.corba.ee.impl.logging.ORBUtilSystemException.transportReadTimeoutExceeded(ORBUtilSystemException.java:2655)
    [java] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.readFully(SocketOrChannelConnectionImpl.java:676)
    [java] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.read(SocketOrChannelConnectionImpl.java:545)
    [java] at com.sun.corba.ee.impl.protocol.giopmsgheaders.MessageBase.readGIOPHeader(MessageBase.java:119)
    [java] at com.sun.corba.ee.impl.transport.CorbaContactInfoBase.createMessageMediator(CorbaContactInfoBase.java:153)
    [java] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.readBits(SocketOrChannelConnectionImpl.java:325)
    [java] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.handleEvent(SocketOrChannelConnectionImpl.java:1175)
    [java] at com.sun.corba.ee.impl.transport.SelectorImpl.run(SelectorImpl.java:275)
    [java] javax.naming.CommunicationException: Can't find SerialContextProvider [Root exception is org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 208 c
    ompleted: Maybe]
    [java] at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:133)
    [java] at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:290)
    [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
    [java] at com.shkco.jaf.test.JAFLogonTest.connect(JAFLogonTest.java:110)
    [java] at com.shkco.jaf.test.JAFLogonTest.setUp(JAFLogonTest.java:134)
    [java] at junit.framework.TestCase.runBare(TestCase.java:125)
    [java] at junit.framework.TestResult$1.protect(TestResult.java:106)
    [java] at junit.framework.TestResult.runProtected(TestResult.java:124)

    I don't think tomcat supports the ejb-ref portion of web.xml. If you're using ejbs your best bet is to use a web container within a J2EE implementation.
    --ken                                                                                                                                                                                                                                                                                                                                           

  • Lion clients connectivity to lion server 10.7.4

    i have been having issues connecting Lion clients running 10.7.4 to the mac mini running lion server 10.7.4
    The issue started after i did a clean install of lion server. I configured everything correctly by downloading server admin tools, turning on the open directory, and creating a master open directory for the server. i then created both a test account and a generic account to see if the accounts will work when a client trys to connect. The lion clients had no issue connecting to the server but when the Mac would restart, a red dot would come on the side saying all network accounts are unavailable. I am not sure what is happening and yes i have checked the DNS portion and everything is in working order.

    Can you boot into the Recovery HD?  If so, run both
    Disk Repair and Repair permissions on the OSX volume.
    Also, if you have a bootable clone of your previous install,
    try booting into it and see if the problem persists.
    If you have a Time Machine backup, try to restore to
    a point before the upgrade.

  • Finding the clients connected to a server

    Hai Friends,
    I am doing a project in grid computing. I have developed a socket program for the client and server side using java and multithreading.
    I want to know the number of clirnts connected at a particular period of time and also the IP addresses of the client.
    Can anyone please suggest us the code for doing that.

    Create an object that describes each client. Something like:
    public class Client
        private Socket socket;
        private WhatEver whatEverDataYouNeed;
        ...whatever methods you need...
    }When a client connects create one of those objects and store it in a suitable data structure, e.g. LinkedList. When a client disconnects remove from list.
    There should be a method in Socket that gives you the IP address, see the javadoc for Socket.

  • Can 11g client connect to 10g server?

    I am very new to Oracle, so hope this isn't too basic of a question. I thought I saw something through my searches where the clients were backward compatible to older versions of the server. Will this work, 11g client connecting to a 10g server?
    I have a custom windows app that uses the Oracle client to pull data from an Oracle server at another location and pushed the data into a MS-SQLExpress database for a local cache to be used during th day. I do not have the source for this custom app or the time to re-create this custom app. We just installed a new Windows 2008 R2 (64bit) server and I just need to get the client back on the new server so the custom app will work again. The old server was running 8.1.7 client, but going to 64bit OS I want to use a more current client to avoid issues with 32bit/64bit compatibility problems.
    I am downloading the 11g 64bit client now, but want to make sure I'm not wasting my time and need to get a different client. Please advise.
    Thanks!

    In general, yes, you can use a later version of the client to connect to an earlier version of the database and vice versa. But that only generally works for a few major releases. Unfortunately "10g" and "11g" are somewhat ambiguous-- both could be referring to one of two major releases.
    Metalink 207303.1 is the client/server interoperability matrix. If by 11g you mean 11.2 and by 10g you mean 10.1, the 11.2 client will not work with a 10.1 database. If the client is 11.2 and the database is 10.2, it should be at least 10.2.0.2. If the client is 11.1, the database should be 10.1.0.5 or 10.2.0.2 or higher.
    Justin

  • Email client connects to BT server but does not do...

    Windows 8.1 and latest version of Thunderbird. When I run Thunderbird it connects to the server, logs on, and begins to check for new messages. At this point it stops - none of the new messages are downloaded to my laptop. However, messages in my outbox get sent (and arrive at their destination). This is happening with both main and sub account emails. My wfe has a Samsung Galaxy phone and has the same problem with her emails, so I think it isn't related to Thunderbird - the problem must be with the BT servers? Does anyone agree?
    Solved!
    Go to Solution.

    MartinRowe57 wrote:
    Problem solved on all machines. Despite not having received any emails for 18 hours, just after posting my initial message all emails started coming through to all accounts and sub accounts on all machines. I assume BT fixed the problem on their servers.
    It took a very long time to open BT Mail this morning, after logging in - a matter of several minutes. Perhaps there was a server problem.
    However Microsoft Outlook 2013, set as a pop3 account, responded as normal.
    (I do an occasional login to BT Mail to check the spam folder, as pop3 doesn't see the BT Mail spam folder).

  • How to track IP's of clients connecting to DB server through Apps Server

    My Application server address is like http://192.220.0.75:7779/forms90/f90servlet form=TEST.fmx&userid=@abc
    I can connect to Apps server from any computer using explorer with this address .
    for auditing when I connect to db server through Apps server then my audit table detect only server IP- 192.220.0.75 each time but when I connect by oracle DS or toad then my audit table detect each computers defferent IP address.
    how can I detect different users and IP addresses connecting to database server using apps server instead of apps server IP?

    You can try to use WebCache event_log, this one will show your clients IP or you can uncomment UseWebCacheIP ON in httpd.conf file, so you ensure that the access_log show the ip of the user and not of the server.
    Greetings.

  • What can't client connect to RMI server on same machine?

    I'm trying to get a client to connect to an RMI server that resides on the same machine, but it's not working. When run, I get the following exception:
    java.rmi.ConnectException: Connection refused to host: 121.0.0.55; nested exception is:
    java.net.ConnectException: Connection refused
    java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
    at java.net.Socket.<init>(Socket.java:273)
    at java.net.Socket.<init>(Socket.java:100)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:25)
    The machine in question is a Solaris 8 system running Java 1.3. I've checked all the networking permissions, and they seem to be ok. Any ideas as to what might be causing this?

    Thanks for the reply! Dumb question: How do I start the registry? I see debugging code that indicates that the server is [probably] being started.
    Usually this means that the registry isn't running or
    the server isn't running.

  • Oracle 9 client connecting to 10g server

    Hello,
    Is it possible to connect an Oracle 9i client to an Oracle 10g server? Is there any known issues/problems with that?
    Because I'm facing the issue that with the same application connecting to different oaracle versions, when I connect to the 10g I get some connection errors, I'm wondering if going back to client 9i and connect to a 10g server would be a good test.
    Thanks in advance,
    Lucas.

    If Oracle knows little about connection pools it is true. If by changing the Oracle version some issues arise I wouldn't immediately discard the interoperability version issue.
    In this case the OP faces probably a big issue. The application has to be upgraded and all the compatibility matrix revisited. The main problem when working with unsuported versions is that in case it has to do with a bug from 9i Oracle has limited support by means of the Extended Support option.
    Does it have to actually do with interoperability, bugs or application configuration is something that cannot be accurately established after the partial information provided by the OP.
    ~ Madrid
    http://hrivera99.blogspot.com

  • Client connection to a Server behind a router

    Hello everyone,
    I'm building a client / server application where the server will be my machine that is in residential gateway behind a router. the client will be out of the U.S. completely. On the client side the connection method (connectTo(InetAddress ip)) must know the server IP address in order to connect to it. I've tried configuring port-forwarding on my router to have it forward any connection under port 5555 to my local IP and passing my public IP on the client side to that connection method. Disappointingly, that didn't work. Here is my Code for the server:
    import java.io.*;
    import java.net.*;
    * Server class, to accept concurrent client
    * requests,through accepting socket connection
    * and establishing a new thread to provide the
    * desired service
    * @author True
    * @see source.ServiceProvider
    public class Server {
         * Creates a new instance of source.Server
        public Server(){
            try{
                ServerSocket ss = new ServerSocket(5555);
                while(true){
                    Socket sock = ss.accept();
                    ServiceProvider sp = new ServiceProvider(sock);
                     sp.start();
            catch(IOException x ){
                // handles exception here
         * Main method creates a new instance of Server
         * @param args String [] of parameters at the excusion time
        public static void main(String args[]){
            new Server();
    }And here is my code for the client:
    // irrelevant code here...
    private void connectTo(InetAddress ip){
             try{
                 Socket sock = new Socket(ip, 5555 );
    //           Building Streams
                 OutputStream os = sock.getOutputStream();
                 ObjectOutputStream oos = new ObjectOutputStream(os);
                 InputStream is = sock.getInputStream();
                 ObjectInputStream ois = new ObjectInputStream(is);
                 // more irrelevant code here...
             catch(IOException x){
                 // handle exception here
             catch(ClassNotFoundException x){
                 // handle exception here
    }Any ideas or comments are welcome and highly appreciated.

    true_lover wrote:
    All configuration seem fine. port forwarding is straight forward on the router page. I checked all numbers & values and all seemed fine.Well obviously it's not. Otherwise you wouldn't be getting a connection refused.
    The only other item worth checking is if your ISP is blocking the port. Which may well be happening.
    The other poster was correct, once you have the exception figured out (aka what it is) and it's connection refused this is not actually a Java related problem any more and you should take that question to a general networking forum.
    Edited by: cotton.m on 27-Nov-2008 7:46 PM

Maybe you are looking for

  • Copy/Paste Style not working consistently in iOS Pages

    I cannot figure out what is going on with iOS Pages Copy/Paste Styles. Sometimes it works, but often it doesn't. I copy a style, and then select the text I want to paste the style to, and the 'paste style" option doesn't appear. It's as if no style w

  • Prepayment - payroll run link

    How to link the prepayment to the payroll run?  Meaning I run the payroll run for adhoc payments multiple times in a month, and for each payroll run, I need to run the prepayment and send the payment file to the bank each time, I got all the info nee

  • How to get current function name?

    Hello, everyone! I want to get the current function name for debug purpose. I simply want to dump out current class name, function name (and better line number) of current executing statement. For example, I can embed my debugger inside my source cod

  • External .swf into a flash presentation

    Hey guys and girls! I got a question here. I made a small flash intro 2 weeks ago and saved it into a .swf. Now I am doing a flash presentation with many slides for a client and I want to put the intro into the first slide. I am doing a symbol/movie

  • OAS listener

    I have OAS 4.0.6 on NT. Does anyone know what type of entry I need to make in TNSNAMES.ORA to allow the reports server to start ? I am getting the "expected" error REP-0186, but am not sure exactly what it means. Port Number maybe ? Isn't that meant