• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

Swing in EJB

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 1107
19
Mac OS X IntelliJ IDE Oracle Spring VI Editor Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Paper jam tastes about as you would expect. Try some on this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic