File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AWT/SWING with EJB

 
Kuppusamy Venkatasubramanian
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Below are my doubts. Pls. clarify.

1) In the mock exam in HeadFirst, for Q-No: 20, When programming a message-driven bean class which technique should be avaoided to ensure bean portability across all EJB 2.0 Containers?

A) Using Swing APIs for a GUI
B) Using the 'transient' modifier
C) Using native libraries
D) Reading file descriptors

According to the spec/HeadFirst Book, Usage OF AWT is only prohibited. Pls. clarify. If both AWT and SWing cannot be used with EJB means, no client applciation can be designed in Java to interact with EJB. Isn't it?
 
Malini Raja
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This applies to all types of Enterprise beans not only MDBs.
The specs. means that the EJB located inside a container on the server
must not be exposed directly for modification through a GUI.
A GUI client however can be designed to access an EJB through a remote
interface so that the EJBObject can perform the necessary checks as the bodyguard to the bean. This way the bean that performs the services is completely protected from server security breaches.

Malini
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic