4 Replies - 6013 Views - Last Post: 29 August 2008 - 01:50 AM Rate Topic: -----

#1 dushi  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 40
  • Joined: 23-February 08

Client-server programming

Post icon  Posted 27 August 2008 - 05:09 PM

Hello,
I want to ask a question.
I'm about to make a client-server program.

i know that first i have ta write the interface, the server implementation and the server object from the server implementation to register with the RMI. and final i have to make my application with a button.

My question is. when i begin, i make a new project. than i make e new interface file. when i finish with the interface file, can i make the server impl. and the server object to register in the same project.

i know that my application must be in an diffrent project.

I hope its clear. thnx

Is This A Good Question/Topic? 0
  • +

Replies To: Client-server programming

#2 nick2price  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 565
  • View blog
  • Posts: 2,826
  • Joined: 23-November 07

Re: Client-server programming

Posted 27 August 2008 - 05:35 PM

I suppose it wouldnt really matter. I presume that you are using somthing like Netbeans IDE when you are talking about creating a project folder? I am using JCreator and with somthing like that, i can pretty much save all files into the same workspace (even though it can be bad to do so). Depending on how big your projects going to be, sometimes people like to split the files into different folders, like for the factory class. But if u are using and ide, i really am not sure as i dont like using them. gl, and maybe someone else can tell you a more concrete answer.
Was This Post Helpful? 0
  • +
  • -

#3 dushi  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 40
  • Joined: 23-February 08

Re: Client-server programming

Posted 28 August 2008 - 03:03 PM

no one else have an answer?
Was This Post Helpful? 0
  • +
  • -

#4 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8378
  • View blog
  • Posts: 31,956
  • Joined: 06-March 08

Re: Client-server programming

Posted 28 August 2008 - 03:22 PM

View Postdushi, on 27 Aug, 2008 - 05:09 PM, said:

Hello,
I want to ask a question.
I'm about to make a client-server program.

i know that first i have ta write the interface, the server implementation and the server object from the server implementation to register with the RMI. and final i have to make my application with a button.

My question is. when i begin, i make a new project. than i make e new interface file. when i finish with the interface file, can i make the server impl. and the server object to register in the same project.

i know that my application must be in an diffrent project.

I hope its clear. thnx

I guess this is a NetBeans issue (I am not familiar with it).
Eclipse will allow use to have as many applications you want in a project.

Nothing should also stop you from starting the server from the console prompt if Netbeans does not allow multiple applications in the same project.

Or use a "main" to which you passed a parameter

public static void main(String[] arg) {
   if(arg[0].equalsIgnorecase("S"))
	   new Server();
   else
	   new Client();
}




Edited: the forum is calm tonigh

I just tested it in Netbeans... even if there is a "Run project" tab, under it there is a "run file" tag so you can run more than one main() in the same project

This post has been edited by pbl: 28 August 2008 - 07:04 PM

Was This Post Helpful? 0
  • +
  • -

#5 1lacca  Icon User is offline

  • code.rascal
  • member icon

Reputation: 44
  • View blog
  • Posts: 3,822
  • Joined: 11-August 05

Re: Client-server programming

Posted 29 August 2008 - 01:50 AM

NetBeans allows you to have as many applications, main classes whatever in a project as many you wish. However you can only specify one parametrized run command in the IDE for an application(you can start the other main classes without parameters), however you can create custom ant files to have several parametrized run commands. I hope it makes sense :o
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1