• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • 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.
 
There's a city wid manhunt for this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic