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 / September 2006

Tip: Looking for answers? Try searching our database.

which  bean it is ?

Thread view: 
gk - 02 Sep 2006 14:01 GMT
Hi,

i want to make an EJB project(banking project).

so,I want to make   CUSTOMER.

Now, i have a simple question...should i make CUSTOMER a session bean
or Entity Bean ?

How do i decide ?

thanks
Arne Vajhøj - 02 Sep 2006 15:33 GMT
> i want to make an EJB project(banking project).
>
[quoted text clipped - 4 lines]
>
> How do i decide ?

data => entity
synchronous service => session
asynchronous service => message

To me Customer sound as data.

Arne
gk - 02 Sep 2006 16:56 GMT
> > i want to make an EJB project(banking project).
> >
[quoted text clipped - 12 lines]
>
> Arne

hi thanks for the response.

can you please provide an example, what do you meant by "synchronise
service".

Say, a customer wants to deposit some cash.......is it a 'synchronise
service'  .....is it a session bean ?

and also please  explain 'asynchronous service 'by an example.
Arne Vajhøj - 02 Sep 2006 20:21 GMT
>> data => entity
>> synchronous service => session
>> asynchronous service => message
>>
>> To me Customer sound as data.

> can you please provide an example, what do you meant by "synchronise
> service".
[quoted text clipped - 3 lines]
>
> and also please  explain 'asynchronous service 'by an example.

In this context:

synchronous = you call and wait for response while processing is done
asynchronous = you call and does not wait for processing to complete

To me deposit sound as synchronous.

Arne


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.