Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Swing in EJB

 
Philip Smith
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ejbcertificate site states that �The enterprise bean cannot make use of the Java Swing API� while, Mikalai Zaikin's SCBCD Study Guide (JavaRanch SCBCD Links) states � An enterprise Bean must not use the AWT functionality to attempt to output information to a display, or to input information from a keyboard. � and does not comment on Java Swing.

Which source is correct or are they both correct?

Thanks for the clarification.

Phil Smith
 
Peter Rooke
Ranch Hand
Posts: 851
1
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Enterprise beans are written to operate inside of an EJB container, so I don't think they could ever get access to the resources that Swing or AWT use. EJB's are not concerned about user interfaces.

Have a look at the "Model-View-Controller" design pattern and at tiered architecture.

Not sure why you would want to mix the persistence layer with the presentation layers [if you could!]. I think if you designed a system with only one architectural tier, it would end in tears!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic