664 byte By
jrhaddad at 2007-9-26 21:50:57
I try to use the new IO API to implement a non-blocking multi-threaded server that communicates with client applications by exchanging serialized objects. I started from the code in the JavaWorld article at http://www.javaworld.com/javaworld/jw-09-2001/jw-0907-merlin.html .With the new features ...
282 byte By
danielmt at 2007-9-26 21:56:56
Hi everybody,I have two proxies in my intranet, and we're developing an application that makes HTTP requests through this proxies.I'd like to know if there's some way to force an http request to go through one proxy or another, or if it is impossible.
1347 byte By
d09se07 at 2007-9-26 22:02:53
I'm not sure where to post this... I am trying to run the jmx-ri tutorial. Everything compiles and appears to run. However, I cannot get the Agent View to show up in my browser (IE or Netscape). Instead I get a tomcat-looking directory page with nothing on it... Here is my trace output ...
I have got two modems and can get one to ring the other, pick up and connect to each other, the next step is to send data down the connection. Does anyone know how this is done ? Is there some AT command I need to send?
Please let me how its possible to invoke a VC++ application through Java Code.
Good Day,I'm writing client/server, currently using Sockets (actually Secure Sockets, but I don't think SSL actually enters into the overall question). In order to not worry about complaints from firewalls or proxies, it would seem easiest to instead be using HTTP(S) so we look just like a ...
359 byte By
bier at 2007-9-26 22:24:13
Hi,I'm trying to build a webserver 'talking' HTTP 1.1I seem to have some trouble communicating with browsers: How do I let the browser no I'm ready with returning bytes. HTTP 1.0 served this by closing the connection, but how does it work in HTTP 1.1Is it sufficient to use the ...
1841 byte By
alfbaez at 2007-9-26 22:30:05
Hello Gurus!I need help to automate or design/write an app capable of (replace a manual process) reading log files in an ftp server folder, this log files are called CDR (Call Detail Record) and named as follow cdr.txt.20020221010000 meaning that this log file was created on 2002/02/21 at ...
Hi all,Got a problem!Am working on a servlet that uses a bean to store some important variables. I would then like have the servlet call a JSP page that has access to the bean and its vraibles, thusdelivering content specific to the values of the bean.Been looking at examples of application ...
324 byte By
bier at 2007-9-26 22:32:17
Can anyone give me a short example as how to handle streams over a persistent socket-connection ?I've trouble handling this.I can't "reget" the stream (create a new input/output stream over an existing socket-connection).Is there someone who can help me ?I'm getting confused !!! ...
Hi all,I need some help deciding how to call a legacy system from a J2EE application. I have never had the privilege to work with a J2EE Application Server before (WebLogic) so I have some problems deciding what technology to use and why....heres my problem to solve:The legacy system a want to ...
1793 byte By
alfbaez at 2007-9-26 22:50:59
Hello Gurus!I need help to automate or design/write an app capable of (replace a manual process) reading log files in an ftp server folder, this log files are called CDR (Call Detail Record) and named as follow cdr.txt.20020221010000 meaning that this log file was created on 2002/02/21 at ...
244 byte By
tp20191 at 2007-9-26 22:55:35
How do I do the following:From Client1, get the file, divide into packets, send those packets to server. From there client2 will get those packets. So basically, transfer file from client1 to server and then to the client2.
476 byte By
verdi96 at 2007-9-26 22:59:11
Hi all,suppose I have 2 program that can communicate each other via port. Run at machine A and B. I want knowhow long it takes if a packet is sent from A to B.I've done this, but I was assuming that the 2 machines are time synchronized. Is it possible to do this if the 2 machines is not time ...
475 byte By
glicious at 2007-9-26 23:02:04
I have a couple of quick questions about udp packets i couldnt get answered from the jdk docs.when calling DatagramSocket.recieve(DatagramPacket) the systems halts until it gets something. now does it stay halted until all the buffer in the datagram packet is full, or until one datagram packet ...
1628 byte By
ghido10 at 2007-9-26 23:08:54
Hi, I implement an application service that as its field has a Display object which extends the JPanel class.public class Display extends JPanel{....} The service has a method that allows the client to obtain a copy of that object,....private Display display = new Diaplay(); // service ...
526 byte By
bier at 2007-9-26 23:21:18
Hi,I want to create a program that reads a file or user input, and can invoke functions (because of the input or field-value): Something like: user enters "function_a" ==> then the program invokes function_a, without knowing about the function. Sort of dynamic calling.How can I accomplish ...
I have a moderate amount of experience with Java, but am new to network programming. I am using the Socket class, but the client stalls at the line containing the Socket constructor. I have been all over the web, and have checked numerous code examples, but my code seems to check out. Here is ...
I want to initiate a dial-up connection from my java program and also to detect whether I am connected to the internet or not.
1291 byte By
gustnado at 2007-9-26 23:35:40
I have not been able to get persistent connections to work using the Post HTTP method, even though my approach works for Get. I am using Post because we are using HTTP as a transport mechanism for exchanging XML requests and responses between a client and a servlet container via Apache.My ...
Hello, I have this code working for a WindowsNT server:InetAddress[] ip_s = InetAddress.getAllByName( (InetAddress.getLocalHost()).getHostName() );This returns all the IP addresses on the server. However, the same doesn't work on Unix:"SunOS eeiatuc49 5.6 Generic_105181-28 sun4u sparc ...
Hello all, I'm new to java networking and still have a blurry concept of reading/writing data through sockets. Can anyone help?1. When reading from an input stream (ObjectInputStream), does the method in.readObject() block until it receives data from the stream? Does the code below block ...
886 byte By
ales_suc at 2007-9-26 23:44:56
Hello, folksI have written a simple HttpProxyServlet that uses HttpURLConnection. I simply copy the incomming request onto the HttpURLConnection and vice versa - copy the response from a remote web server to the servlet's response.The problem is that my proxy servlet cannot handle http 1.1 ...
306 byte By
gup1 at 2007-9-26 23:45:00
Hi I wanted to ask a question, pls do reply to help me out.Can I include a method call to another class, within the same transaction, that performs adatabase statement or must the actual select statement appear within thesetAutoCommit(false) .....commit()? ...
352 byte By
tp20191 at 2007-9-26 23:55:31
How do I execute the file using JAVA code. Here is what I am doing... I am transferring the file from machine A to machine B, after the transfer is complete, I would like to open/execute the file. I assume, it will use the appropriate application to open/run/execute the file. (ie. Notepad for ...
308 byte By
LoCal at 2007-9-27 0:00:25
Hi,there a chance to get thru those %&$ *** Micr0$0ft Proxy 2.0 with Java? Or are we "lost"?The company I'm working for is using M$ Proxy and I have to write an application that has to go thru the Proxy.Does anyone has a solution?Big thx in advance.LoCal ...
134 byte By
dyzke at 2007-9-27 0:10:05
I get the ff error Serial port not found when running the BlackBox example. I'm using jdk1.3.1_02 on win2000 platform.
136 byte By
dyzke at 2007-9-27 0:10:52
My java app is unable to locate the serial port. I'm using the comm api on win2000. Can anyone point me on what 2 do pls.
1369 byte By
gustnado at 2007-9-27 0:12:50
On an HTTP persistent connection, the client and server both can have timeouts on a connection. In the case of a Java client, I can find no way to set the client's timeout value. It is always 5 seconds (assuming you exactly jump through the hoops necessary to get it to work at all). According ...
865 byte By
9875761 at 2007-9-27 0:19:26
Hello I'm trying to restart ftp download via proxy usingjava.net.URLConnection inteface. My steps are the following: System.getProperties().put("ftpProxySet", "true");System.getProperties().put("ftpProxyHost", myProxyServ);System.getProperties().put("ftpProxyPort", myProxyPort);url = new ...
570 byte By
baivab at 2007-9-27 0:26:32
Hi,I need to build a server, to which a C++ appl. will call thru a method with some args. Then with these args., I perform some validations and return success/failure code back to C++ appl. Needless to say, it is all in diff. machines. Server I wanna build using Java. This communication ...
388 byte By
wekion at 2007-9-27 0:34:06
I am developing an application that resides on multiple servers and processes client requests (from applets) through its own load balancer. I need JVMs on those multiple machines to "share" the same information state, i.e. the clustering is just an abstraction for a single machine.How should I ...
Is there any method to increase the maximum number of connectionsthat can be accepted by a java server simultaneously?I have set a long queue length for my ServerSocket by"ServerSocket(2020, 10000)" and the server is multithreaded.I am now writing a test multithreaded client to generate a load ...
750 byte By
sharatJ at 2007-9-27 0:38:51
I have a fundamental question on the use of JMX..If I have an appserver which doesnt support JMX like ATG Dynamo, what prevents me from using the SUN's reference implementation, INSIDE the appserver environment? Can I put the jmx jar's in the class path and use the ...
131 byte By
Erol at 2007-9-27 0:44:27
Is it possible to send data back and forth? If it is, how can this be accomplished? Do I need to implement a wrapper?
518 byte By
cosun at 2007-9-27 0:45:54
I want to use class Socket to scan active ports of a server, so I create Socket objects by specifying variable port numbers. If some port of the server is active, the constructor of Socket will return immediately. But when a port is not active, it will take a lot of time to construct a Socket ...
429 byte By
danielmt at 2007-9-27 0:50:03
Hi everybody,I'm developing an application that uses http connections through proxies and proxy authentication. The problem is that, when I try to connect to an url through a proxy and I don't set the "Proxy-Authorization" request property I obtain a "java.io.FileNotFoundException" instead of ...
i am trying to develop a chat aapplication . this chat application has a server installed on every machine to listen to the incoming requests of th clients.the ip address of the clients is kept in the database when the client logs in and the server on his machine is started successfully .Now if ...
872 byte By
Zede77 at 2007-9-27 0:57:51
hi, i need do develop a client that uploads a file into a http server, my boss doesn't let me put a servelt running in the server side and wants to use a perl script that is already running in the server.How do i specify in my httpURLConnection the name of the file and so ...i know that i need ...
Dear all,Am trying to send some information to a socket, that will write this info to file.Am using a vector as transport for the information. Therefore I open an ObjectOutputsStream to the socket, and have the sever read from its socket with a ObjectInputSteam. However after the servers ...
553 byte By
bier at 2007-9-27 1:05:28
Hi, I'd like to build a simple proxy-server, but I don't know how to do that.I have already built a simple webserver, capable of handling simple Gets (I'm busy implementing posts).But I'd also like to be able to use a proxy-server (made by me of course ;-))Using IE I imagine I would be able ...
645 byte By
jaeney at 2007-9-27 1:24:39
Hi! I was wondering if anyone knows how to get the actual URL of a page (taking into account virtual directories and redirects).For example, if you were to go to " http://www.google.ca/" the page that is displayed is "index.html" which means that it is equivalent to going to ...
369 byte By
mdelisle at 2007-9-27 1:26:41
Does anybody know how to transfer a file using Java Sockets? I've have tried several things including the FileOutputStream and DataOutputStream classes. I'm not sure how to connect thesocket stream to the FileOutputStreanm class or the FileInputStream class? If anybody knows how to implement ...
hi:i am working on a project which consists of a portal and others about enterprise workflow. we decide to work with three tires architecture and j2ee seems to be a good choice. But there'sa lot of workflows we must work with client other than web browser(such as printing ). And java ...
303 byte By
vinay_c at 2007-9-27 1:35:12
Hi i am sending a string of data to the server using a client socket connection. The String has to be appended with a hexadecimal header and hexadecimal footer . I want to know how to send the hexadecimal data thru sockets. (not strings) the data to be sent is 0B(decimal 11) ...
379 byte By
ahben at 2007-9-27 1:36:35
It is often mentioned that UDP has less overhead as compared to TCP for data transmission. Does anyone knows how much less?Is there any merits in using UDP instead of TCP when transferring large objects across the network? I would have to implement my own retry/ordering mechanism in Java. ...
275 byte By
rejimani at 2007-9-27 1:55:11
Hello,I would like to get some idea about Java Rule Engine API1. This API is available or not?2. if available, then any web links available?3. if not available, then when it will be ready? any other libraries available?Thanks,
262 byte By
russlndr at 2007-9-27 2:07:49
HiI've made a small chat client as an applet. This works fine when it's running on my local computer. But it won't connect when I publish the applet to an webserver. Is there some kind of security that stops me to connect?- Fredrik
1556 byte By
rxo13 at 2007-9-27 2:12:36
I am having a hard time figuring out how to simulate a user using a browser, like say netscape, on a web site to log in and navigate about. My aim is to make a utility that that will log in to a site and gather information on it and process it. I guess I am currently stuck on the gathering ...
Hi,I have developed a tiny application server in which multiple threads are making a call to a method in a single object.I am facing some state inconsistency problem here.So I am thinking of synchronizing the method.Is it good to synchonize a method if a 100 threads are making simultaneous ...