Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

RMI Login and Threads

Thread view: 
HeidiWeber - 15 Apr 2007 10:32 GMT
Hallo

i´m new to RMI. I´ve made the RMI Tutorial from SUN. I have first 2
questions:

1)
If more clients connect to the server. Becomes every client
automaticaly his own thread thread? Or must i implement "thread
programming"?

2)
I want to realise user autentification by ID and Password. Is there a
"simple" solution for this problem - perhabs a tutorial? Or how can i
do this? How can i ensure the methods, the whole server?

Best regards
cu
Heidi
Daniel Pitts - 16 Apr 2007 01:55 GMT
> Hallo
>
[quoted text clipped - 14 lines]
> cu
> Heidi

Hello Heidi, (That's my Wife's name too)
With RMI, the threads are created and handled automatically for you,
but you must be aware that your methods might be called by several
threads, and handle them accordingly.  I suggest reading "Java
Concurrency in Practice" <http://www.javaconcurrencyinpractice.com/>
to learn about the proper ways to handle this.

For your second question, this is no "simple" answer... This is also a
broad topic.
First, you have to store the user id and password.  Preferibly storing
the password in a one-way-function encrypted form.
Second, you *should* try to ensure that the password (in either its
original or encrypted form) is never sent through clear-text.  SSL is
often the appropriate choice.
Third, You have to keep track of authenticated sessions.

I hope this helps,
Daniel.
HeidiWeber - 28 Apr 2007 14:19 GMT
How to...

On Apr 15, 2:32 am, "HeidiWeber" <heidi.we...@arcor.de> wrote:
> Hallo
>
[quoted text clipped - 14 lines]
> cu
> Heidi

Hello Heidi, (That's my Wife's name too)
With RMI, the threads are created and handled automatically for you,
but you must be aware that your methods might be called by several
threads, and handle them accordingly.  I suggest reading "Java
Concurrency in Practice" <http://www.javaconcurrencyinpractice.com/>
to learn about the proper ways to handle this.

For your second question, this is no "simple" answer... This is also a
broad topic.
First, you have to store the user id and password.  Preferibly storing
the password in a one-way-function encrypted form.
Second, you *should* try to ensure that the password (in either its
original or encrypted form) is never sent through clear-text.  SSL is
often the appropriate choice.
Third, You have to keep track of authenticated sessions.

I hope this helps,
Daniel.
HeidiWeber - 28 Apr 2007 14:21 GMT
Hello Daniel,

thank you very much for your help.

But can you or someone else give me perhaps an example? Or a tutorial?
Without the problematic with ssl. Thats the next big thema...

Best regards
cu


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.