473,770 Members | 6,133 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to implement multithreaded server in java?

1 New Member
i want to implement a multithreaded server having atleast 3 client threads.. i m quite new to server programming..
can u guys suggest me how to proceed
plz help.. its urgnt
Jan 11 '11 #1
1 2437
horace1
1,510 Recognized Expert Top Contributor
have a look at the Java tutorial on sockets
http://download.oracle.com/javase/tu...rking/sockets/

I would recommend implementing a none threaded version first (server will only accept a single client) then when working extended it to use a seperate thread for each client

if you have problems post the code
Jan 11 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

15
1469
by: uphid | last post by:
I've been tossing around an idea here in the shop for a while, and I am curious if anyone else out there would be interested. I am thinking of creating a server implementation for Access MDBs. It's a fairly straight-forward idea. The server would be a program that would listen for SQL commands, such as SELECTs or INSERTs to be sent to it (over TCP/IP). In turn, it would run the SQL against the local database and return either records...
1
1945
by: linkspeed | last post by:
Hi, All: Is there any implementation in C# similar to "Action", "TextAction" in java? Cheers linkspeed
3
1544
by: lanem | last post by:
I want to use server.transfer to go to a new aspx page. I want to be able to still have the viewstate from the previous page. I have researched this and see a lot about it, but I can't find a good straight forward example. Does anyone know how to do this? I'm using asp.net 2.0 and vb.net. Thanks.
2
4322
by: NaeiKinDus | last post by:
Hi there :) I'm trying to code a webserver running under WinXP, multithreaded, etc... The creation of my threads, the handles, everything works fine except this : the WSAEventSelect. The first occurence of this function is in the main() and manages connections. If a connection is accepted, it sends the newly created socket to a thread that will handle both FD_WRITE and FD_READ...
3
2643
by: akmkat | last post by:
Hi all, I am in a great problem. I am trying to implement a multithreaded server using java, first look at the code... /*------- Main Server (server.java)--------------*/ import java.io.* ; import java.net.* ; public class server {
4
3540
by: Tea Maker | last post by:
Hello, I finished my vb.net application, the application uses sql server and run pretty well on my pc. Now I want to install this application on the customer's computer, and the issue I'm not sure about is, what do I need to install on the client's computer concerning the database? Do I install SQL Server and restore the database there? how to secure the database and make sure nobody will be able to edit the data from Enterprise Manager. What...
6
10136
by: sreekandan | last post by:
Hi everyone.... Now im going to implement FTP by using java program..But i dont know how to implement that...So kindly send me the java code to implement FTP program.And also I need help that "how to transfer the file by using FTP"
1
1725
by: Atul Goyal | last post by:
Hello Sir/Madam, I want to create a java program for Text to Speech. Means i want to create a java program in which user enter a text and my java program will speek this entered text. Can you help me for this ?
0
9425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10231
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10059
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9871
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8887
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6679
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5452
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3972
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2817
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.