Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » J2EE Pattern »

Re: 2 simple eval/test questions

Moore, Gary

2003-07-31


Q1 is a tricky one in its wording

A) applies to stateless SB
B) applies only to stateful SB
C) is just flat wrong for both kinds, session beans never persist state
(containers may provide a passivation mechanism that "temporarily" persists
state, but in J2EE terms persistence means longer than the server and it's
JVM lifecycle).
D) see C above!

Q2 Home interface is a Factory pattern, responsible for the creation of the
remote interface.
    The remote interface is more of a proxy pattern

-----Original Message-----
From: Ivy Se [mailto:ivy12see@(protected)]
Sent: Thursday, July 31, 2003 1:10 AM
To: J2EEPATTERNS-INTEREST@(protected)
Subject: 2 simple eval/test questions


Hi guys,

I've got 2 simple self eval quesion which I'm not sure
of the answers. Can you guys help, please

Q1. Which statement is true about statefull session
beans, but is NOT true about stateless session beans

A. State can be cached but is not representative of
the client state

B. State can be cached but is representative of client
state

C. State is persistent

D. State is cached first, then persisted.


Q2. Which pattern is used by the Home interface of an
EJB

A. Proxy

B. Decorator

C. Mediator

D. Factory

=====
Thank you.

Ivy Se

====================================================================
Community Web Site (Core J2EE Patterns Catalog - Online Version):
http://java.sun.com/blueprints/corej2eepatterns
Getting Started (Beta Version):
http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
Get the book:
http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20
List Archive:
http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing:
email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)

====================================================================
Community Web Site (Core J2EE Patterns Catalog - Online Version):
http://java.sun.com/blueprints/corej2eepatterns
Getting Started (Beta Version):
http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
Get the book:
http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20
List Archive:
http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing:
email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.