Parse TCP header

71 byte By macclysa at 2007-9-27 23:50:19
Hi, anyone can tell me how i can parse TCP or IP header in Java?

JSNMP

35 byte By yhy2002a at 2007-9-28 0:32:16
how can I find JSNMP tools?

client server network

411 byte By aj291a at 2007-9-28 0:35:45
Hi I want to create a simple client/server program txt based or gui, in which u can send and recieve files supported by ascii and binary between client and server. Also be able to list remote(server) directory at client and mover around server file structure (pathname). any examples or urls ...

UDP Multicast - Serialize Object - URGENT

684 byte By aoliasa at 2007-9-28 0:54:27
Hi, here is my problem.I,m developing an application using UDP and multicast. I've done a simple server that sends strings and it works fine. Now I want to send Commands (using the command pattern) to the "Client Listeners" so that, they can perform an action. But the problem I have is that I ...

sleeping barber problem with Java

241 byte By shanky123a at 2007-9-28 1:10:21
Hello Fellow Java Experts,I wanted to know if any one knows where I can have a look at the implementation of Sleeping Barber Problem using Java. It would be nice to see a working program.Does anyone have an idea?

Socket Connection alive?

319 byte By udaysasia at 2007-9-28 1:18:18
Hi allIn Java 1.4, there is a method in Socket class "isConnected()" that can be called to see if a socket is still connected/alive or not. This method has been introduced since 1.4. How to get around with this if we are running Java 1.3 ? Any suggestions are greatly ppreciated. ...

Find book:JXTA in a nutshell

184 byte By chunhuachana at 2007-9-28 1:22:10
Hello everyone,I am studying JXTA , I need a book: JXTA in a nutshell but I can not buy it in my country, could you help me to find the book(ebook) and send to me?Thanks!

problem in file transfer( about the file size ).

1258 byte By mingonga at 2007-9-28 1:24:19
i have construct a program that can transfer file between client and server.Below is the sample program of server and client. my question is, the file size that can be transfer is only 2kb, 2048 bytes. As I check out,the problem is related to the parameter of the method FileInputStream.read( ...

Serialization / Deserialization problem

679 byte By avinashvsa at 2007-9-28 1:25:28
Hi,I'm having a scenario in which the server after processing a request from a client returns a result object. This is done by getting hold of a remote interface to an EJB and calling a method on that EJB. The EJB returns a serialized result object which would be deserialized at the client end ...

Java Clients and Servers

413 byte By aj291a at 2007-9-28 1:25:30
i have looked at the custom networking example for reading and writing to a socket but thats only for ascii, however i need it for binary so how can i do it, basically i need a client and server program and may need a protocol, are there any more examples like this on the net or any good urls ...

how can I know my own IP address?

92 byte By san_droa at 2007-9-28 1:25:50
hi allis there a way to know my machine's ip through my java app?thanx

disabling InetAddress cache

661 byte By adromana at 2007-9-28 1:26:02
Hello! I've come across a situation where I would like to disable the InetAddress cache feature. After some research, it appeared as though the solution was to change the value of the networkaddress.cache.ttl and networkaddress.negative.cache.ttl properties in the java security properties ...

Trying to create a client server using sockets

684 byte By gjfrasersa at 2007-9-28 1:49:00
Just setting out in learning how to create server using sockets.Having problems understanding how to send messages from a client too all clients connected to the server.step1.set up serverconnect(port,queue);step2.accept connectionstep3.spawn thread to deal with new connection thread.Problem ...

reusing HttpsURLConnection's

1131 byte By MicahSpescoma at 2007-9-28 1:57:11
Hi. My name is Micah Daniels and I have a problem. It has been three hours since I realised that I had it. I am ready to open up now.Has anyone ever made any HttpsUrlconnections, more specifically, managed to reuse a HttpsUrlconnection for more than one post. If so,..how was it successfully ...

Better Response Times on WebSphere Cluster

999 byte By sudharshanga at 2007-9-28 2:04:59
Hi,We have our web application deployed on a Cluster of 2 IBM WebSphere 4.0.4 Application Servers on Sun Solaris boxes. Clustering was achieved using "Horizontal Cloning" of the Application Servers. Our application does not have EJBs and the objects in session are persisted on a DataBase. The ...

Connection time-out

595 byte By avinashvsa at 2007-9-28 2:12:14
Hi,I'm having a scenario in which my EJB calls a class and that class makes connection to a few internet sites and work on the content returned by the sites. I'm using HttpUrlConnection to connect to the sites. Unfortunately, the HttpUrlConnection doesnt provide an API to set the time-out ...

Socket disconnecting

6309 byte By brianmflynna at 2007-9-28 2:37:19
I have written a flash/java chat application which uses an XMLSocket in the flash client and just standard sockets in the server.The application is multi-threaded with a thread for each client and for the most part works well.The system requires that certain clients be online for a relatively ...

Selector, SocketChannel and ByteBuffer

11405 byte By molodoia at 2007-9-28 2:55:47
Hi all,I'm developping a P2P application that uses the java.nio package. Nodes communicate by exchanging byte streams (read/write from ByteBuffer).For the Transfer Component of a node, I use 2 selectors (one to accept connections and the other to read on SocketChannel) and, thus, 2 threads.As ...

applet socket problem in client-server, urgent!

2958 byte By dengshenga at 2007-9-28 3:03:47
Dear All:I have implemented a client server teamwork environment. I have managered to get the server running fine. The server is responsible for passing messages between clients and accessing Oracle database using JDBC. The client is a Java Applet. The code is like the following. The problem is ...

Selecting when to use SOCKS

553 byte By jfox1a at 2007-9-28 3:08:33
I am creating a server application that will listen on a server socket for connections from the internal network and then access some web services on the internet. Unfortunatly to access those web services I must go through a SOCKS proxy. I have noticed that I must set the socksProxyHost etc, ...

ftp using java... urgent!!!!

1934 byte By lunakaa at 2007-9-28 3:23:53
im studenti did a program....but it doesn't work....i dont know what is the problem....please..i hope that someone can helpme and correct my mistake....thank you so much!!!!!import sun.net.*;import java.net.*;import sun.net.ftp.*;import java.io.*;import sun.net.TelnetInputStream;class ...

request to server

662 byte By SSAVa at 2007-9-28 3:26:41
Let's say we have an application running on one server A and the same on the other B. On the other server B there is a daemon listening to requests for the application.Now, from server A we want to request for some object using the method getObject() from the application.Is the only way to get ...

Closing a socket sets CPU usage to 100%

537 byte By sorenmorsa at 2007-9-28 3:36:16
HiI'm using sockets for communication between JVM's in a distributed application, written using suns JDK1.3.1. Occasionally when closing connections between machines the CPU usage hits 100% and stays there. The problem has mainly been observed on windows 2000 machines.I have tried to ensure ...

ServerSocket Bandwidth Consumption

465 byte By paul_kent2a at 2007-9-28 3:41:57
Is there any easy way to tell how many bytes have been sent/reveived on a ServerSocket?I'd like to create a thread that runs once every 5 seconds that calls a method such as serverSocket.getTotalBytesSent() and this would return the total bytes sent from the time the ServerSocket was created. ...

Strange problem with Sockets

4267 byte By calegaria at 2007-9-28 3:44:24
Hello everybody!I've got a problem and I can't understand what's going on.... Basically, I implemented a ServerSocket that is in charge of receiving some text and retransmiting it back. I did something likeimport java.io.*;import java.net.*;public class TestServerSockect{public static void ...

Multicast Socket

480 byte By chashgurua at 2007-9-28 3:45:06
Hi friends,i need some guidence to use multicast socket while creating a multicast chat application.i develop the application and test in LAN it works fine .i used 224.100.100.220 as multicast address .? but i am not able to execute it on Internet . ?i have set the TTL as 255 .do i need some ...

HTTP/1.1 Persistent Connections Revisited!

2063 byte By nazerJeffa at 2007-9-28 3:46:33
Persistent Connections Revisited!There have been many posts on this subject but no real answers, but I have narrowed the problem to some extent. Problem: Open a connection using a URL and keep the socket open so it can be reused. This is especially important for HTTPS connections.What works: ...

Application for remote activation of cell phone

683 byte By richcaa at 2007-9-28 3:47:24
Hi All,I need to develop an application to remotely activate a cell phone (as soon as the customer turns on the cell phone, it needs to be activated). How do i go about designing such an application? Should i use WAP? Here is what i think, can be done:As soon as the cell phone is turned on, it ...

EJB's and clusters

1067 byte By OddieDa at 2007-9-28 3:55:41
Hello,I was wondering if anyone had any experience of clustering when running EJB's.The scenario is that we want to be able to run a very high throughput application built around session beans which means that the beans must be distriburted over several boxes to acheive scaleability. The ...

Server Socket > 30 connections?

557 byte By dev_35a at 2007-9-28 3:56:01
Hi, I'm writing a client server application and would like to test it with a high load. I have a multthreaded server which connects to each client then hands over to the individual thread. To test it I am using a multithread automated client program to connect to the server and send requests. ...

Object Streams... strange occurance?

1889 byte By tdsma at 2007-9-28 4:28:11
Hi,I'm writing a client-server application and am having problems with my ObjectInput and ObjectOutput Streams.I have an object Message(String s) which is just a wrapper for a String at the moment. Message implements the Serializable interface to allow me to use these streams. When I just ...

Posting Form Data using HTTP Client Component Apache

2507 byte By kithu00a at 2007-9-28 4:29:42
Hi,Basically we are trying to submit info to a web server programatically and get the response back from that remote server.I tried this using Apache Http Client Component.I was able to achieve this by using Http CLient API from Innovation.But we guys are planning to use Apache products.I am ...

how to fastly determine if a ServerSocket is hearing?

881 byte By san_droa at 2007-9-28 4:36:19
hi alli'm writing a simple application consisting of many instances of a little class, working as server and client in the same time:when a certain instance (let's say the caller) modifies the content of the shared db, it gets a list of the ip addresses of the other instances and (in a for ...

FTP ASCII to EBCIDIC and back truncates at 80

453 byte By douglasrowea at 2007-9-28 5:29:11
Hey Y'all,I have to write a program that ftp's a file from the IBM mainframe to a server, parses and processes the file into another format and writes it back out to the mainframe. I've been playing with FTP clients from GNU, enterpriset and FtpBean. I don't see any way to write the file ...

Finding real Client IP Address under PROXY Server

331 byte By visraya at 2007-9-28 5:34:19
Hi friends, I have a requirement to find out the Client IP Address that is under a Proxy Server.( Actually I used the getRemoteAddr but this always returns me the Prox-Server IP Address and not the real Client IP Address) Can some one guide me how I can do this with JAVA JSPs / Servlets..Thanks ...

JDMK 5.0 help needed

686 byte By wjreicharda at 2007-9-28 5:41:40
Just download the evaluation JDMK 5.0. I'm trying to use mibgen and am getting an:C:\Program Files\SUNWjdmk\jdmk5.0\bin>mibgen tti.mibError: an internal error of type "java.lang.NoClassDefFoundError: com/sun/jdmk/defaults/DefaultPaths" occurred.java.lang.NoClassDefFoundError: ...

J2EE needed

87 byte By ifeabunikeCa at 2007-9-28 6:24:27
Please can somebody tell me the fastest way to acquire a J2EE SDK.Thanks

Problem in using URL to FTP

658 byte By littlefish628a at 2007-9-28 6:26:07
The result received was in http format.How can I instruct the FTP server to give me the directory list?My code is :int readCount = 0;URL url = new URL("ftp://hostname.com"); URLConnection uc = url.openConnection(); InputStream content = uc.getInputStream(); File f = new ...

java.net.SocketException: Unexpected end of file from server

319 byte By 0xdeaddeafa at 2007-9-28 6:30:50
Dear everyone,Could some one please explain what this exception is:java.net.SocketException: Unexpected end of file from serverWhy is this exception thrown and how I could avoid it?I get this exception from calling HttpUrlConnection.getResponseCode().Thanks a ...

how to transfer more than one files over internet at once?

176 byte By lukezhonga at 2007-9-28 6:31:27
hi, friends,I just wonder how to transfer more than one files from one computer to another over internet at once. Not using ftp. pls any one give me the solution.

how a java program talk to VB6.0 program and exchange files?

318 byte By lukezhonga at 2007-9-28 6:36:37
Hi, all friends,I just got a project that ask for make two programs, one using vb6.0 and another one using java. These two programs will communicate and exchange files. It sounds strange. Can I use corba? if so, can any one give me the details of step by step. Or some other solutions. Thanks in ...

get the IP address of client who connect to the server

356 byte By maduma at 2007-9-28 6:42:28
HiIs it possible to get the IP address of client who has connect to the server.I'm using JWSDP tomacat webserver.I need to get client can accessjsp page he can make request the documents that he needswhich are available in the server .How can i get the IP add of client.Thanks for your time and ...

How to run a .DLL(created in VB & VC++) in client machine through Java?

339 byte By cvengatesana at 2007-9-28 6:59:48
When i run the .DLL in the server machine through servlets, it opens a login screen created by .DLL.But I want to run the same .DLL (which inturn opens login screen) in the client machine in the distributed architecture.Let me know if u guys are having any suggestions at the earliest.Thanks in ...

Posting data using HTTPClient (Innovation)

7779 byte By sjohri214a at 2007-9-28 7:04:40
Hi all,I have the following problem:I'm using HTTPClient library from Innovation.ch and have used the following code to post data to the following website : http://blast.genome.ad.jp/import java.io.*;import java.applet.*;import javax.swing.*;import java.util.*;import java.awt.*;import ...

Canceling a thread that is blocked waiting on an HTTP Response

1307 byte By rtoala at 2007-9-28 7:07:17
HiIn a worker thread I have codecon = (HttpURLConnection)url.openConnection();con.setUseCaches(false);con.setRequestProperty("Accept-Encoding", "gzip");System.out.println("Waiting");int responseCode = con.getResponseCode();System.out.println("Done waiting");InputStream in = ...

** $10 Please Help Simple Java Corba Problem**

2073 byte By Ashley_Aa at 2007-9-28 7:11:33
This is probably a really simple one but I am very cheased off about it.I run my applications on a Win XP OS, and when I go to type in nameserv it gives me the following error I have J2RE 1.4.1 also, JDK 1.4.1 and JRE 1.4 ,And jbuilder ver 8 personal edition.I have also installed Borland ...

Array Type in CORBA

1334 byte By kjayalakshmia at 2007-9-28 7:18:20
Hi,I'm trying to use a method in CORBA Idl which uses an array as in parameter. When I'm trying to call this method by passing a properly initialized array from myjava program, I'm getting a nullPointerException in Java. The following is the ...

Minimal Java proxy server example?

1393 byte By Wilena at 2007-9-28 7:25:17
Hello allI've been trying for a while now to figure out how to create the most simplistic Java proxy server possible, to learn how it works and go from there. The problem is that even extensive searching on Google and such only seems to result in examples that are either not commented, too ...

Adventure Builder sample app to go distributed

586 byte By safira at 2007-9-28 7:26:04
Hi,I wonder if it would be appropriate and feasible to learn advanced DISTRIBUTED Java technologies directly by playing around with the latest sample app, and examining the design patterns, EJB implementation details, etc. in it. Or should i first, or simultaneously, thoroughly read a book or ...

What kind of error is this?

693 byte By delfMa at 2007-9-28 7:29:06
Hi i have server running that fetches some data off the internet. it is a thread that runs twice a day to update info. today i had this error but cant figure out the cause of it. plz help mejava.io.IOException: Server returned HTTP response code: 500 for ...