• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SSL / EJB Related question ! Please help.... (wrt Part I)

 
Manish S Malhotra
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I was looking at some of the questions given on net at this link

http://stephane.weber1.free.fr/SCEA/Notes/Test%20Sridhar%20Raman.html

There is a question about SSL Handshake process.


Which of the following is not an optional step in establishing an SSL handshake?
# a. Server side certificate validation by the client
# b. client side certificate validation by the server
# c. Generation of session keys for encryption and decryption
# d. Selection of a suitable Cipher suite for encryption by the server and the client

The answer given is option B.

Where as per my understanding option B is an Optional step in the SSL handshake process where A / C and D are mandatory steps.

I think the question would be to select the optional step then the option B would be the correct one.
So, there is printing mistake with the question.

Can anybody please tell me that I'm correct or not.

There are some other questions regarding EJB which again I think there is some problem.


27. In EJBs, Which two callback methods can be used for synchronizing the bean's state with the database
# a. ejbStore() and ejbLoad()
# b. ejbActivate() and ejbPassivate()
# c. ejbStore() and ejbPasivate()
# d. ejbLoad() and ejbActivate()

The correct ans give is Option B.

It should be A. As ejbStore() and ejbLoad() are used for synchronizing bean's state with the databse.
Where ejbActivate and ejbPassivate methods are used release / regain any resources held by the bean which is Bean specific and container specific because it's used to transform bean from Ready to Pool state and vice versa.

29. When does an Entity Bean transition from Pooled State to Ready state
# a. when create() is invoked on EJBHome
# b. when a find method is invoked on EJBHome
# c. when a BEan is activated by the container
# d. when a BEan is passivated by the container

The answer given is Option A/B and C.

As per Entity Bean life cycle, ejbFindByXXX() methods doesnt transit Bean from Pooled state to Ready State.

So Option B should be included.
Please validate this.

Thanks for your reply.

Please reply to boost my confidence as well as if wrong it will help me to correct by basics.

Regards,
Manish
 
Muhammad Asif
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Which of the following is not an optional step in establishing an SSL handshake?
# a. Server side certificate validation by the client
# b. client side certificate validation by the server
# c. Generation of session keys for encryption and decryption
# d. Selection of a suitable Cipher suite for encryption by the server and the client

The answer given is option B.



Correct Answer is B. Lets first come to the basic purpose of SSL ? The client should be authenticated as the true client and not an impersonator.


27. In EJBs, Which two callback methods can be used for synchronizing the bean's state with the database
# a. ejbStore() and ejbLoad()
# b. ejbActivate() and ejbPassivate()
# c. ejbStore() and ejbPasivate()
# d. ejbLoad() and ejbActivate()

The correct ans give is Option B.

The correct answer should be A.



29. When does an Entity Bean transition from Pooled State to Ready state
# a. when create() is invoked on EJBHome
# b. when a find method is invoked on EJBHome
# c. when a BEan is activated by the container
# d. when a BEan is passivated by the container

The answer given is Option A/B and C.


Correct Answer: A, C (I am not too sure about B as well)
 
Paul Codillo
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Muhammad Asif:
Correct Answer: A, C (I am not too sure about B as well)

The bean does not leave its pooled state when servicing finder methods
[ March 08, 2007: Message edited by: Paul Codillo ]
 
Muhammad Asif
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Paul Codillo:

The bean does not leave its pooled state when servicing finder methods


Paul, you are right. Thats why i said that i am not too sure about the original answers provided.
 
Manish S Malhotra
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Asif and Paul.

But I'm still confused with the first answer.

I read these links:

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzas.doc/csshandshake.htm

http://docs.sun.com/source/816-6156-10/contents.htm#1041640

which says that
"The SSL server responds with a "server hello" message that contains the CipherSuite chosen by the server from the list provided by the SSL client, the session ID and another random byte string. The SSL server also sends its digital certificate. If the server requires a digital certificate for client authentication, the server sends a "client certificate request" that includes a list of the types of certificates supported and the Distinguished Names of acceptable Certification Authorities (CAs)."

AND

"If the server has requested client authentication (an optional step in the handshake)"

So, it means that this is a optional step in the SSL Handshake process.

Please give your view on this also.

Regards,
Manish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic