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 / JavaBeans / January 2004

Tip: Looking for answers? Try searching our database.

Client Server Help (beans)

Thread view: 
Andy - 16 Jan 2004 17:49 GMT
I am starting to write a Java Client Server App, I am comming from VB and
VC++.  I have done much reading and am ready to start laying out the class's
on paper.  I am planning to use beans as the access point to the db and have
my clients use the beans located on the server.  I dont understand how to
lay out the beans and how to protect against multiple clients editing the
same record.  Do I use one bean for all data access and all clients connect
to it, or do I use multiple beans and the intercomunicate in some way as to
protect records.  Or is there a standard way to do this.  I have searched
for articles on this in the java world but can not find any.
Please help.
Taki - 17 Jan 2004 18:29 GMT
> I am starting to write a Java Client Server App, I am comming from VB and
> VC++.  I have done much reading and am ready to start laying out the class's
[quoted text clipped - 6 lines]
> for articles on this in the java world but can not find any.
> Please help.

I'm not a professional, but...
You should learn more about stateless & stateful session beans.
There's no one way to solve a problem, so you have to decide
what to do depending on your situation.  If you are just connecting to
the database, chances are you will be using stateless session beans.

About the concurrent access issue, since only one client has access to
the session bean instance, you don't have to worry about it.

hope this helps

Taki


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.