This week's book giveaway is in the Python forum.
We're giving away four copies of High Performance Python for Data Analytics and have Tiago Rodrigues Antao on-line!
See this thread for details.
Win a copy of High Performance Python for Data Analytics this week in the Python 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

Question in Mikalai Zaikin's SCBCD Guide

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you know what does the statement in http://java.boot.by/bcd-guide/ch01s03.html mean?


"The enterprise bean must not attempt to define a class in a package."
(The second last)

Thanks.

Brenda
 
Bartender
Posts: 3673
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Brenda Kwok:
Do you know what does the statement in http://java.boot.by/bcd-guide/ch01s03.html mean?


"The enterprise bean must not attempt to define a class in a package."
(The second last)

Thanks.

Brenda



Hi Brenda!

This is a restriction to use the method of ClassLoader :

, int, int)]http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ClassLoader.html#defineClass(java.lang.String, byte[], int, int)

which is consistent with other restrictions about using a class loader in your EJBs. The EJB Container is responsible for maintaining runtime environment, and it loads classes itself, applying security restrictions. If you violate these rules, the runtime environment will not be compliant.

This restriction is not about prohibiting to use packages for your EJB classes.

regards,
MZ
 
Brenda Kwok
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you!

It does not mean defining general Java class.
 
Mikalai Zaikin
Bartender
Posts: 3673
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're right - this is only a restriction for developer to use ClassLoader from EJB.

regards,
MZ
 
Thanks tiny ad, for helping me escape the terrible comfort of this chair.
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic