• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Are EJBs allowed to retrieve resources (images, texts, properties, etc)

 
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I read this from http://www.certcities.com/editorial/popquiz/print.asp?EditorialsID=54
EJBs are allowed to retrieve resources (images, texts, properties, etc) that have been bundled within the same enterprise application archive.
is this true? I know that ejbs are not allowed to access local file system. is "retrieve resources" a form of "access local file system" ?
 
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"EJBs are allowed to invoke Class.getResource in order to retrieve bundled resources (images, texts, properties, etc)."
It doesn't say that local file system will be used directly.. You can not access files from bean, you're right. But if the container takes care to load some resource for you to use, you can get it. This is "unfair" question, they are asking you things that everybody knows are not part of the exam.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic