[jboss-user] [EJB/JBoss] - Re: PostConstruct loadClass fails when porting to JBoss 5

ALRubinger do-not-reply at jboss.com
Sun Jul 26 19:12:55 EDT 2009


"alesj" wrote : Or what does the spec say about what should the TCCL be in this case?

"EJB 3.0 Specification 21.1.2: Programming Restrictions" wrote : The enterprise bean must not attempt to create a class loader; obtain the current class loader; set the context class loader; set security manager; create a new security manager; stop the JVM; or change the input, output, and error streams.

In short, this is non-portable because application-level code should leave the details of the environment to the container.

Why are we taking the reflection-based approach?  Let's take a look at the structure of the JAR/EAR as well?

S,
ALR

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246075#4246075

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246075



More information about the jboss-user mailing list