Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

mock questions doubt?  RSS feed

 
yamini nadella
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(1) which EJB's ideal to model multiple rows of read only data
answer is session beans instead of entity beans. why?

(2) which EJB is ideal for batch processing? session/entity
Answer is stateless session beans why not entity beans?

(3) which statement is correct?
(a) ssl is a low level protocol sits below http
(b) ssl is high level protocol sits above HTTP
I thought answer is A. But result is B. which is correct.
 
Uwe Schäfer
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

1. session with dao, because of performance, reduced overhead
2. dont know the exact def. of batch proc. but it has do with a process more than with a particular persistent entity
3. definitely a. dont let mocks confuse you . let me guess: whizlabs ?
[ November 03, 2005: Message edited by: Uwe Sch�fer ]
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by yamini nadella:
(a) ssl is a low level protocol sits below http


TLS is the IETF successor to SSL. From HTTP Over TLS:

2. HTTP Over TLS
Conceptually, HTTP/TLS is very simple. Simply use HTTP over TLS precisely as you would use HTTP over TCP.
 
madhav kamal
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi


1. session with dao, because of performance, reduced overhead


i am not too sure about DAO REDUCES overhead. stateless session beans nofluffjustuff n cheaper in terms of resources.

2 .Readonly data and batch processing dont need container callbacks
can use stateless beans for this purpose.

please correct me if i am wrong.

3. SSL below application protocal[hhtp or what ever app protocal]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!