Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

session bean client machine

Hi,

Since this transient information is stored in the session bean, the client doesn't need to store it and potentially waste bandwidth by sending the session bean the same information repeatedly with each call to a session bean method. This bandwidth issue is a big deal when the client is installed on a user's machine that invokes the session bean methods over a phone modem, for example. Bandwidth is also an issue when the data is very large or needs to be sent many times repeatedly.
http://www.javaworld.com/article/2071724/java-web-development/ejb-fundamentals-and-session-beans.html?page=3
I am reading as above. I wonder what it means by client is installed on user machine and phone modem bandwidth issue.
Mostly clients are on user machines right?
what is the alternate to stateful session bean in that case when they want to maintain the state?
Please advise.
ASKER CERTIFIED SOLUTION
Avatar of gurpsbassi
gurpsbassi
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

ASKER

How to maintain state without stateful ejb
many ways  - database, cookies, session, tokens etc
You really need to provide a true scenario first instead of a hypothetical one. Describe the architecture of your system etc
Avatar of gudii9

ASKER

Mostly clients are on user machines right?

No. This is talking about EJB components which can be on remote machines.

for this user or client needs to install something on their machine?

Hope no right?

IT happens through internet browser only right?
I think you have misunderstood the article.
It is talking about the fact that EJB's are hosted on a  JEE server somewhere and you try connecting to it from another application on another machine. This application could be on a users machine or on a different server all together.  The fact of the matter is that it is on a machine DIFFERENT to that hosting the EJBs.
Avatar of gudii9

ASKER

It is talking about the fact that EJB's are hosted on a  JEE server somewhere and you try connecting to it from another application on another machine.
any banking site i login as a customer i always be on different machine right than the server in which that banking online application deployed whether it uses EJB or simple web application without EJB?
Yes but what if you had an application running on the same machine as the EJB?
It could be a daemon process running on the same box.
Avatar of gudii9

ASKER

It could be a daemon process running on the same box.

can you please elaborate on this. I was not clear still.
a standalone application spawning its own threads or any application running on the same machine as the EJB.