Win a copy of The Career Toolkit this week in the Jobs Discussion forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Swing in EJB

 
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
 
Bartender
Posts: 1078
19
Mac OS X IntelliJ IDE Oracle Spring VI Editor Tomcat Server Redhat Java Linux
  • 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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic