Measuring performance tcp udp connection using java

ho
find t answers for these questions ..
1. Is it possible to set some upper cut off for the data rate or transmission rate in TCP or UDP ?
2. IF true, get t source code for t same ?
3. is it possible to measure t data rate of a TCP or UDP connection ?
4. get t compl source code for broadcasting using java ?
sry im learning to use java sry if my questions are rookie and absurd . .
pl bear wit me . .
thank u in advance . .
bye bye

hi ebj and kayaman ,
thanks for the reply for my first question . .
"No, but you can limit the receive window which can have a similar effect."
my second question was ...
can help me out by giving the java code for the first question`s solution ?
and my third question ...
Is it possible to measure the throughput / transmission rate in which the udp or tcp transfer is taking place ??
i think i ve made myself clear to you guys ..

Similar Messages

  • Maximum number of tcp/udp connections

    I've got a WRT54G and recently I contacted linksys suport due to some problems I was having with
    BitTorrent clients(very common issue it seems). I have a home lan with 3 computers,
    and if 2 or more of them are on at the same time(even when only 1 is using bittorrent), the connection keeps going
    down.
    Linksys support told me a lot of routers face this problem since bittorrent works by opening lots of simultaneous
    tcp/udp connetions, and one thing I should do is try to limit these connections to a number the router can handle.
    Even though I might experience some poor speeds limiting connections, it seems it's all I have left. So, not a
    problem at all, except one question which brings us to the purpose of this message:
    Approximately HOW MANY TCP/UDP CONNECTIONS can WRT54g handle at the SAME TIME?
    Since I'm to share among 3 users, all of which are torrent freaks, I'm gonna have one heck of a hard time tryin' to
    guess the maximum number of connections each should have, specially when they're all on at the same time.
    Support said they don't have that information. So does anyone out there have a good guess?
    And also, does anyone know of any Linksys router (for home use) that is able to work with torrents without any
    problem at all?

    The wrt54g(s) upto v4 and the wrt54gL use a Linux 2.4.20 kernel.
    This Linux-kernel set a max of 1024 connections and a hastable of max 128 buckets, the gs models with 32 Mbyte have 2048/256.
    I see three problems:
    1. The following patch is not applied to the kernel: Netfilter / connection Tracking Remote DoS, CVE: CAN-2003-0187
    2. The hashsize is wrongly set, de default kernel 2.4.20 values are wrong, and may NOT be an even number (128), it should be a prime number.
    3. The ratio between hashsize and max amount of connections should be set to 1 and not 8, this to increase performance.
    Some improvement is made by Linksys in firmware version 4.21.1 and 4.30.9 (are neerly the same) .
    I hope this information helps,
    greetings,
    jchuit
    http://tarifa.sourceforge.net/

  • Sending udp packets using java and receiving it using c

    hi,
    Is it possible to send udp packets using java and receive the same using c??????? if yes.... plz help immediately.

    The biggest issue is data format. The JVM is big endian, with 16-bit characters. The machine running 'C' could be almost anything. A (signed!) byte array is probably the easiest unit of exchange.
    The Java program has its own techniques for storing/retrieving data to/from the byte array - and the C program has its own techniques. ASCII Strings are often the easiest to exchange - just convert the java String objects to byte array and send them.
    apaliwal1 has already given the UDP calls to send/receive the data.

  • Crystal Reports data connection using Java beans

    Hi
    My name is Bach Ong, i'm currently perform re-configuring Crystal reports 2008 to connect via
    Java bean to Jboss server, this uses look up service on JBoss server. The connection is using Connect
    look up using the properties:
    java.naming.provider.url=jnp://emgsydapp121:10499
    java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
    java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
    for file CRConfig.xml i put as follows:
    <JDBCURL></JDBCURL>
    <JDBCClassName></JDBCClassName>
    <JDBCUserName></JDBCUserName>
    <JNDIURL>jnp://emgsydapp121:10499</JNDIURL>
    <JNDIConnectionFactory>org.jnp.interfaces.NamingContextFactor
    y</JNDIConnectionFactory>
    <JNDIInitContext>/</JNDIInitContext>
    <JNDIUserName></JNDIUserName>
    Can you advise us if this step is correct, and is there any
    documentation that can guide us to right direction.
    for Java testing in Eclipse using remote call class it is working suing the following code:
            Properties p = new Properties();
            p.put(Context.INITIAL_CONTEXT_FACTORY,
            "org.jnp.interfaces.NamingContextFactory");
            p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
            p.put(Context.PROVIDER_URL, "jnp://emgsydapp121:10499");
             InitialContext ctx = new InitialContext(p);
      Date asAtDate = CrystalUtils.convertToDate("2014-01-01", CrystalUtils.relativeToToday(0), false);
         String asxCode = "BHP";
         ClosingPricesReportRequest criteria = new ClosingPricesReportRequest(asAtDate, asxCode);
         InitialContext context = new InitialContext(p);
         ClosingPricesReportService ejb = (ClosingPricesReportService) context.lookup(ClosingPricesReportService.REMOTE_JNDI);
         ClosingPricesReport report = ejb.createMTMClosingPriceReport(criteria);
         System.out.println(report.getClosingPrices()[0].getClosingPrice());
         testval = report.getClosingPrices()[0].getClosingPrice().toString();
         System.out.println(testval);
    when i run the tes code the results as follow:
    10:49:45,244 DEBUG [SecurityAssociation ] Using ThreadLocal: false
    10:49:45,338 DEBUG [MicroSocketClientInvoker ] SocketClientInvoker[709446e4, socket://emgsydapp121:10473] constructed
    10:49:45,338 DEBUG [MicroRemoteClientInvoker ] SocketClientInvoker[709446e4, socket://emgsydapp121:10473] connecting
    10:49:45,338 DEBUG [MicroSocketClientInvoker ] Creating semaphore with size 50
    10:49:45,338 DEBUG [MicroRemoteClientInvoker ] SocketClientInvoker[709446e4, socket://emgsydapp121:10473] connected
    10:49:45,369 DEBUG [ClientSocketWrapper ] reset timeout: 0
    10:49:45,650 DEBUG [InvokerRegistry ] removed SocketClientInvoker[709446e4, socket://emgsydapp121:10473] from registry
    10:49:45,650 DEBUG [MicroSocketClientInvoker ] SocketClientInvoker[709446e4, socket://emgsydapp121:10473] disconnecting ...
    10:49:45,650 DEBUG [SocketWrapper ] ClientSocketWrapper[Socket[addr=/10.137.2.40,port=10473,localport=64150].2cba5bdb] closing
    37.99000000000000198951966012828052043914794921875
    37.99000000000000198951966012828052043914794921875
    Can anyone assist me in convert the above settings to get access by Crystal reports.
    My attemp current are below:
    public class CFDClosingPricesRpt extends CrystalReport {    
        //Constructor
        public CFDClosingPricesRpt(){
            super(ClosingPriceBean.INSTANCE);
         * Returns the ResultSet for this report to Crystal.
         * @param asxCode
         * @param asAtDateString
         * @return
    public ResultSet getNewReport(String asxCode, String asAtDateString) {                     
         try {
             Properties p = new Properties();
             p.put(Context.INITIAL_CONTEXT_FACTORY,
             "org.jnp.interfaces.NamingContextFactory");
             p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
             p.put(Context.PROVIDER_URL, "jnp://emgsydapp121:10499");
             //InitialContext ctx = new InitialContext(p);
             clearCachedReportBeans();     
       Date asAtDate = CrystalUtils.convertToDate("2013-01-01", CrystalUtils.relativeToToday(0), false);
          asxCode = "BHP";
          ClosingPricesReportRequest criteria = new ClosingPricesReportRequest(asAtDate, asxCode);
          //ClosingPricesReportService ejb = (ClosingPricesReportService) ctx.lookup(ClosingPricesReportService.REMOTE_JNDI);
          ClosingPricesReportService ejb = (ClosingPricesReportService) ServiceLocator.getInstance().getService(ClosingPricesReportService.REMOTE_JNDI);           
          ClosingPricesReport report = ejb.createClosingPriceReport(criteria);
          // assemble Crystal-friendly DTO
          Collection closingPrices = Arrays.asList(report.getClosingPrices());
          for (Iterator iter = closingPrices.iterator(); iter.hasNext();) {
                    MBLXClosingPrice cp = (MBLXClosingPrice) iter.next();               
                    if (cp==null) continue;               
                    addReportBean(new ClosingPriceBean( report.getSuppliedDate(),
                                cp.getClosingPrice(),
                                cp.getAsxCode()));
      } catch (Throwable x) {     
          saveErrorMessage(x);
      return getAsResultSet();             
    Thanks
    Bach Ong

    Hi Don Thanks for the reply.
    I've was able to connect via Java beans and JNDI. But this one is going the JNDI of JBoss sever, which the JNDI already configure and working for Crystal reports v10.
    Bach

  • AIR application and database connectivity (using JAVA)

    Hi
    I am creating AIR application and I want to connect with the database using java database connectivity (JDBC).
    Can any body give me the some suggestion on how to how to do that.
    Please give me any reference for creating AIR application for database connectivity with mysql/access.
    Thanks
    Sameer

    lots of serching on the google and found that For AIR applications either you use Webservices(JAVA/PHP/.Net) or you can use SQLLite.
    Not found any method for direct connectivity with the database using JDBC.
    If any one found direct connecivity withe database using JAVA then please reply.
    Thanks

  • Unable to establish SSL connection using Java PKCS11

    I am currently trying to establish SSL connectivity using eToken via PKCS11.
    The PKCS11 provider is setup and I can read the 3 stored certificates as a key Store Object.
    But I am getting the following exception while trying to establish SSL connectivity.
    I am using JDK 6.0(java version "1.6.0_31-rev).
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.security.InvalidKeyException: Unsupported key type: SunPKCS11-aladdin-0 RSA private key, 2048 bits (id 147980297, token object, sensitive, unextractable)
    at sun.security.mscapi.RSACipher.engineGetKeySize(RSA Cipher.java:384)
    at javax.crypto.Cipher.b(DashoA13*..)
    at javax.crypto.Cipher.a(DashoA13*..)
    Code:
    KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");
    KeyStore keyStore = getClientKeyStore(); //read Smart Card Token to get the Certificate
    kmf.init(keyStore, "mycardPin".toCharArray()); //#### hard coded the i/p parms
    TrustManagerFactory tmf = TrustManagerFactory.getInstance("SunX509");
    KeyStore trustStore = KeyStore.getInstance("JKS");
    trustStore.load(new FileInputStream("C:\\Users\\usr1\\Desktop\\Certifi cates\\mycertca.jks"), "mycardPin".toCharArray());
    tmf.init(trustStore);
    SSLContext sslContext = SSLContext.getInstance("TLS");
    sslContext.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);
    factory = sslContext.getSocketFactory();
    sslClient = (SSLSocket) factory.createSocket(host, port);
    sslClient.startHandshake(); //<--- code is breaking here with the above exception
    I am struggling like anything for the last 4 days to get rid of this issue. Please let me know is there any work-around to fix this issue.
    I really appreciate your help.

    Hi,
    have You found the solution. I have similar problem but now it is not repeatable. I'm not sure what was the reason (this InvalidKeyException apeared only once). I'm using JDK7 (java version 1.7.0_09-b05).
    Caused by: java.security.InvalidKeyException: Unsupported key type: SunPKCS11-GemSafe RSA private key, 1024 bits (id 2, token object, sensitive, unextractable)
         at sun.security.mscapi.RSACipher.engineGetKeySize(RSACipher.java:404)
         at javax.crypto.Cipher.passCryptoPermCheck(Cipher.java:1052)
         at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1010)
         at javax.crypto.Cipher.init(Cipher.java:1209)
         at java.security.Signature$CipherAdapter.engineInitSign(Unknown Source)
         at java.security.Signature$Delegate.init(Unknown Source)
         at java.security.Signature$Delegate.chooseProvider(Unknown Source)
         at java.security.Signature$Delegate.engineInitSign(Unknown Source)
         at java.security.Signature.initSign(Unknown Source)
         at sun.security.ssl.RSASignature.engineInitSign(Unknown Source)
         at java.security.Signature$Delegate.engineInitSign(Unknown Source)
         at java.security.Signature.initSign(Unknown Source)
         at sun.security.ssl.HandshakeMessage$CertificateVerify.<init>(Unknown Source)
         ... 53 more

  • CORBA Connection using Java ORB

    Has anyone had any experience connecting to a CORBA object published in an Oracle 8.1.5 database using a different ORB than the visigenic ORB?
    I've been able to connect using the visigenic (Oracle-flavor) ORB from my workstation when I compiled and executed with JDK 1.1.8.
    But the project I'm working on requires Java 2. The CORBA classes in Java2 prevent me from using the available visigenic classes so I am attempting to use the Java2 ORB.
    Does anyone know the steps necessary to accomplish this?
    Thanks,
    Jonathan Keller
    Web Application Developer
    U.C. Davis

    Thanks Sandeep,
    Though I don't know which APIs to use here, but i have seen MDM 7.1 does support SSO, and it has some connection constructor that needs just the user name and not the password for creating user session, if such is the case, i think it would be convenient to get the logged in user id from user session and then use it to create the user context.
    Regards,
    Nitin
    Edited by: Nitin Mahajan on Jan 3, 2009 7:10 AM

  • DialUp Connection using Java

    Dear friends
    I am facing problem,How to get DailUpConnection in Java .Is there any APIs which provide the DialUpConnection.
    Please mention the API's or Sample code .
    thanks

    As the previous reply states, my computer has been configured to automatically connect using dial up services, whenever windows determines a connection is needed.
    I was wrong to say that Java does this. However, I just thought it might be easier for you to configure you internet connection to automatically connect when needed.
    When I run the following program an automatic connection is made. If I am not configured for automatic dial up, then a dialog box is displayed asking me to connect:
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.HttpURLConnection;
    public class URLTester
         private final static String PROTOCOL = "http://";
         public static void main(String args[])
              if ( args.length != 1 )
                   System.out.println("Usage: java URLTester <url>");
                   System.exit(-1);
              String urlString = args[0];
              try
                   // Create URL object from the URL string
                   URL url = new URL(PROTOCOL + urlString);
                   // The connection object has information that my be
                   // retrieved without parsing the data returned
                   HttpURLConnection conn = (HttpURLConnection)url.openConnection();
                   conn.connect();
                   // Get an input stream from the URLConnection object
                   // Note: if you dont need connection information you can get an
                   // input stream from the URL object ( url.openStream() )
                   InputStreamReader isr = new InputStreamReader( conn.getInputStream() );
                   BufferedReader in = new BufferedReader( isr );
                   String line;
                   while ( (line = in.readLine() ) != null )
                        System.out.println( line );
                   in.close();
              catch(IOException e)
                   System.out.println( e );
    }

  • Ftp connection using java

    Hi All,
    I need to upload a file through ftp connection uisng java calss. any one know please reply me
    Thanks
    K.Kalikumar

    Hi Kali,
    I have worked on similar issues sending you the code.. hope it should work. I had written a TelnetInterface class where I did all operation inside the constructor.
    import javax.servlet.http.HttpSession;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.io.InputStream;
    import java.io.PrintStream;
    import org.apache.commons.net.telnet.TelnetClient;
    public class TelnetInterface {
         private TelnetClient telnet = new TelnetClient();
         private InputStream in;
         private PrintStream out;
         private String prompt = ">";
         private boolean isConnected ;
    public TelnetInterface(){
         public TelnetInterface(HttpServletRequest request) {
                   HttpSession session = request.getSession();
                   PropertyReader propReader = (PropertyReader)session.getAttribute("propReader");
                   String host=null,user=null,password=null,port=null;
                   int unixPort= 0;
    //                Get Unix credentials
                   if(propReader != null){
                        host=(String)propReader.getProperty("UNIX_HOST");
                        user=(String)propReader.getProperty("UNIX_UNAME");
                        password=(String)propReader.getProperty("UNIX_PWD");
                        port=(String)propReader.getProperty("UNIX_PORT");
                        unixPort = Integer.parseInt(port) ;
    //                    Connect to the specified server
                   System.out.println("Inside telnet Interface");
                   try{
                        telnet.connect(host, unixPort);
                        isConnected = true;
                        in = telnet.getInputStream();
                        out = new PrintStream(telnet.getOutputStream());
    //                    Log the user on
                        readUntil("login: ");
                        write(user);
                        System.out.println("user:"+ user);
                        readUntil("Password: ");
                        write(password);
                        System.out.println("password:"+ password);
                        sendCommand("su - loginuser");
                        su(" password");
                   }catch (IOException e) {
                        e.printStackTrace();
                        isConnected = false;     
                   }catch (Exception e){
                        e.printStackTrace();
         }

  • QOS Network Planning - TCP/UDP Ports used in CWMS 2.5 MDC deployment

    Does anyone know if there is documentation that describes the WAN traffic in CWMS 2.5 MDC?  I'm looking for the TCP/UDP ports that must be prioritized on the WAN to properly class our traffic between the two data centers.  I can't find any such document.  
    Thanks,
    Matt 

    HI Matt,
    All the network requirements are listed in the CWMS 2.5 Planning Guide in Networking Checklist: http://www.cisco.com/c/en/us/td/docs/collaboration/CWMS/2_5/Planning_Guide/Planning_Guide/Planning_Guide_chapter_0100.html
    I hope this is what you are looking for.
    -Dejan

  • How to measure performance of supplier when using scheduling agreement ?

    Hello all,
    My client has an absolute need to be able to measure the performance of its suppliers based on delivery dates and delivered quantities. That is to say he needs to be able to compare what dates and quantities were asked to what has been really delivered.
    Most of the procurement processes used are based on scheduling agreements : schedule lines are generated by MRP and forecast is sent to supplier while firm requirements are sent through JIT calls.
    It seems that when doing GR in MIGO, it is done against the outline agreement number, and not against the call. Therefore, we have no way to compare dates and quantity with what was expected (in the JIT call).
    Do you know if SAP proposes a standard solution to this, and what could be a solution to this issue ?
    Thanks for your help
    E. Vallez

    Hi,
    My client faced the same problem and we ended up developing an own analysis in LIS. Since the GR is not linked to specific schedule line (SAP does some kind of apportioning, but it doesn't have to correlate to the correct match), one needs to do assumptions. Our assumption was the closest schedule line, i.e. each GR is related to the schedule line with the closest date. Then all GR the same day are totaled together before the quantity reliability is calculated, since the very same shipment can be reported through several GR transactions in SAP (one per pallet).
    If anybody has info about what SAP has to offer in this question (or is developing), please tell us!
    BR
    Raf

  • AS/400 connectivity using java by jt400 api

    I am making a project on Java Swing. I am having an AS/400 machine i am saving the spool files on AS/400 Machine as .txt and accessing it from a remote Windows Machine. I have made an UI to connect it to the AS/400 machine using JT400 API's. I am having 300 spool files(.txt) in the library on AS/400 machine. I m accessing this library to get the list of spool files basically .txt files. Now I am using JT400 OpenAsynchronously method but the program gets hanged over there and displays on 25 files. I don't know what to do please help
    Akhil
    Code:--------------------------------------------------
    public Vector listSpooledFiles()
    Vector rowData = new Vector();
    // this.printQue = printQue;
    try
    String strSpooledFileName;
    boolean fCompleted = false;
    int listed = 0, size;
    System.out.println(" inside method....1");
    //System.out.println("Now receiving all spool files synchrously");
    SpooledFileList splfList = new SpooledFileList(as400);
    splfList.setUserFilter(userId);
    //if((printQue.equalsIgnoreCase("*ALL"))||(printQue.equals("")))
    //if((printQue.equalsIgnoreCase("*ALL")))
    splfList.setQueueFilter("/QSYS.LIB/%ALL%.LIB/%ALL%.OUTQ");
    // else
    //splfList.setQueueFilter("/QSYS.LIB/%LIBL%.LIB/"+printQue+".OUTQ");
    //splfList.setQueueFilter("/QSYS.LIB/%LIBL%.LIB");
    // wait for the list to complete
    //splfList.waitForListToComplete();
    // add the listener.
    System.out.println(" inside method....2");
    splfList.addPrintObjectListListener(this);
    System.out.println(" inside method....3");
    // open the list, openAsynchronously returns immediately
    splfList.openAsynchronously();
    System.out.println(" inside method....4");
    do
    System.out.println(" inside do....1");
    // wait for the list to have at least 25 objects or to be done
    waitForWakeUp();
    System.out.println(" inside method....1.2");
    fCompleted = splfList.isCompleted();
    System.out.println(" inside method....1.3");
    size = splfList.size();
    System.out.println(" inside method....1.4");
    System.out.println(size+"::size of files");
    //System.out.println("sizeOfList......"+size);
    // output the names of all objects added to the list
    // since we last woke up
    while (listed < size)
    System.out.println(" inside method....1.5");
    if (fListError)
    System.out.println(" ..Exception on list - " + listException);
    break;
    System.out.println(" inside method....1.6");
    SpooledFile splf = (SpooledFile)splfList.getObject(listed++);
    } while (!fCompleted);
    System.out.println(size+"::Size");
    //splfList.removePrintObjectListListener(this);
    System.out.println(" inside method....1.7");
    Enumeration enum = splfList.getObjects();
    System.out.println(" inside method....1.8");
    while(enum.hasMoreElements())
    SpooledFile splf = (SpooledFile) enum.nextElement();
    if(splf != null)
    Vector tmp = new Vector();
    String fileName = splf.getStringAttribute(SpooledFile.ATTR_SPOOLFILE);
    int fileNo = splf.getNumber();
    String jobName = splf.getJobName();
    String jobUser = splf.getJobUser();
    String jobNo = splf.getJobNumber();
    Integer page =splf.getIntegerAttribute(SpooledFile.ATTR_PAGES);
    String date=splf.getStringAttribute(SpooledFile.ATTR_DATE);
    String time=splf.getStringAttribute(SpooledFile.ATTR_TIME);
    date=date.substring(1);
    StringBuffer sbdate= new StringBuffer(date);
    sbdate=sbdate.insert(2,"/");
    sbdate=sbdate.insert(5, "/");
    StringBuffer sbtime=new StringBuffer(time);
    sbtime=sbtime.insert(2,":");
    sbtime=sbtime.insert(5,":");
    date=sbdate.toString();
    time=sbtime.toString();
    if((!fileName.equals("QPJOBLOG")) && (!fileName.equals("QPDSPJOB")) && (!fileName.equals("QPSRVDMP")))
    // For the JCheckBox
    tmp.addElement(new Boolean(false));
    tmp.addElement(fileName);
    tmp.addElement(new Integer(fileNo));
    tmp.addElement(jobName);
    tmp.addElement(jobUser);
    tmp.addElement(jobNo);
    tmp.addElement(page);
    tmp.addElement(date);
    tmp.addElement(time);
    rowData.addElement(tmp);
    splfList.close();
    catch( ExtendedIllegalStateException ex )
    System.out.println(" The list was closed before it completed!");
    catch( Exception e )
    // ...handle any other exceptions...
    e.printStackTrace();
    return rowData;
    //return arrRowData;
    // This is where the foreground thread waits to be awaken by the
    // the background thread when the list is updated or it ends.
    private synchronized void waitForWakeUp()
    throws InterruptedException
    // don''t go back to sleep if the listener says the list is done
    if (!fListCompleted)
    wait();
    // The following methods implement the PrintObjectListListener interface
    // This method is invoked when the list is closed.
    public void listClosed(PrintObjectListEvent event)
    System.out.println("*****The list was closed*****");
    fListClosed = true;
    synchronized(this)
    // Set flag to indicate that the list has
    // completed and wake up foreground thread.
    fListCompleted = true;
    notifyAll();
    // This method is invoked when the list is completed.
    public void listCompleted(PrintObjectListEvent event)
    System.out.println("*****The list has completed*****");
    synchronized (this)
    // Set flag to indicate that the list has
    // completed and wake up foreground thread.
    fListCompleted = true;
    notifyAll();
    // This method is invoked if an error occurs while retrieving
    // the list.
    public void listErrorOccurred(PrintObjectListEvent event)
    System.out.println("*****The list had an error*****");
    fListError = true;
    listException = event.getException();
    synchronized(this)
    // Set flag to indicate that the list has
    // completed and wake up foreground thread.
    fListCompleted = true;
    notifyAll();
    // This method is invoked when the list is opened.
    public void listOpened(PrintObjectListEvent event)
    System.out.println("*****The list was opened*****");
    listObjectCount = 0;
    // This method is invoked when an object is added to the list.
    public void listObjectAdded(PrintObjectListEvent event)
    // every 25 objects we'll wake up the foreground
    // thread to get the latest objects...
    if( (++listObjectCount % 1) == 0 )
    //System.out.println("*****1 more objects added to the list*****");
    synchronized (this)
    // wake up foreground thread
    notifyAll();
    }

    Hi,
    You could try posting with the code tags (http://forum.java.sun.com/faq.jsp#format). Few people are prepared to read that much code without pretty formatting.
    Check out this forum aswell, it is dedicated to JT400: http://www-912.ibm.com/j_dir/JTOpen.nsf/By+Date?OpenView

  • Maximum number of concurrent connections using java sockets

    How can we find out the maximum number of concurrent connections that can be handled by a pooled connection server?
    I have a pooled server which creates a predefined number of handlers. Upon receiving a new request it accepts the connection and sends it to one of the handler.
    The solution works well for low number of concurrent connections - < 50 or 100
    But as the number increases there seems to be an issue
    1. Ignoring request even if i increase the handlers
    2. Increase in delay. [I feel that the listening thread is not getting the time slice to go read the socket for new requests]
    Any idea as to how i can solve this?
    Would an NIO socket help [am using the conventional java.io Serversocket, because my clients may not be non-blocking]??
    Any help would be appreciated.
    Anp

    There is no set maximum, but it is in the thousands on most platforms. I have a production server that handles tens of thousands of connections simultaneously. Most likely you have a bug in your code.

  • Making RPC connection using JAVA

    1-I have a C++ component which understands RPC only , so how to create a JAVA middleware component which establishes the connection with C++ component using RPC .
    how can we take adv of Webservices in java
    2- I need to convert java object to a XML file and pass on to the socket to forward this to 3rd party server (Encoding)
    3 - How i read the XML message response from the third party server and convert it to java object (Decoding)

    Is that the only way? I'm using Metrowerks CodeWarrior as my Java IDE, is there a way other than VJ++ to convert a .JAR file to .DLL?

  • TCP/UDP connections

    When there are incorrect TCP checksum values, and malformed packets from the source or destination is there degradation in network or application performance?

    Hi,
    For network performance, most likely not or less impact, as the checksum value is only significant for the receiving end, not the medium (network link) is uses to travel. In this case, the sender can always re-send the packet back.
    Unless, of course, if the sender repeatedly/ continuously sent the same packet non-stop that probably makes the receiving host busy. This is noticable if online application is being used (session hang, slow, etc). If session like FTP, it will be a one-time session only, and need manual restart.
    Rgds,
    AK

Maybe you are looking for

  • TSW-Ticket Creation & Actualization using BDC

    Hi, I am using BDC for Ticket creation using transaction O4TEN. After execution of this BDC, Ticket get created and Saved but it does not actualize ticket even if we click actualize button using BDC. In real scenario, after ticket creation the status

  • Ipod just won't work or connect or play HELP

    ok so apperently alot of people are having this problem and its getting really annoying because i spend more time trying to fix my iPod then actully listening to it and it seems like they are alot more trouble then they are worth but here is my probl

  • Creating Invoices on Specific Dates

    Hello Gurus,           you can process invoices periodically. All deliveries due for billing on a certain date can be combined into one collective invoice.           To do this, you must first: &#159; maintain individual billing dates in the factory

  • How to display content in same page when a custom command is clicked

    I have created a custom command and returned the following parameters in getLinkAttributes method but the content still opens in a window. How can I display the content in the same window/ String editwindow = "open("iViewURL","windowName","javaScript

  • Windows 8.1 Flash Player vs. IE 11 Flash Player

    I have 64-bit Windows 8.1 Update 1. What is the difference between: a) the Flash players installed at \sysWOW64\Macromed (the 64-bit player) and \System32\Macromed (the 32-bit player) and b) the Flash add-on that is part of Internet Explorer 11 (it's