Redian新闻
>
Question on J2EE container
avatar
Question on J2EE container# Java - 爪哇娇娃
s*a
1
Sorry I can't input Chinese on this machine.
We know that j2ee containers dynamically generate bytecodes. e.g. call javac
to compile jsp into servlet class, dynamically generate facade implementation
of interfaces for beans.
Where, say JOnAS (or any other container implementation), save these byte
codes? Is there any hooks inside the container code that could be used to get
these byte code and save it somewhere for analysis usage?
Thanks a lot!
avatar
xt
2

I know the case for WebSphere. With WebSphere it first compiles JSP into
java code, and put in the "temp" directory of the application server. Then
it compiles the java code into byte code. You have the choice of not deleting
those java files.

【在 s**a 的大作中提到】
: Sorry I can't input Chinese on this machine.
: We know that j2ee containers dynamically generate bytecodes. e.g. call javac
: to compile jsp into servlet class, dynamically generate facade implementation
: of interfaces for beans.
: Where, say JOnAS (or any other container implementation), save these byte
: codes? Is there any hooks inside the container code that could be used to get
: these byte code and save it somewhere for analysis usage?
: Thanks a lot!

avatar
A*o
3

implementation
get
Depends on your JSP container. Look up Servlet specification first.

【在 s**a 的大作中提到】
: Sorry I can't input Chinese on this machine.
: We know that j2ee containers dynamically generate bytecodes. e.g. call javac
: to compile jsp into servlet class, dynamically generate facade implementation
: of interfaces for beans.
: Where, say JOnAS (or any other container implementation), save these byte
: codes? Is there any hooks inside the container code that could be used to get
: these byte code and save it somewhere for analysis usage?
: Thanks a lot!

avatar
f*g
4

javac
implementation
get
deleting
WebSphere uses Jasper actually. Check Tomcat for details. It is a class-loader
issue. You can save those translated Java sources in memory.

【在 xt 的大作中提到】
:
: I know the case for WebSphere. With WebSphere it first compiles JSP into
: java code, and put in the "temp" directory of the application server. Then
: it compiles the java code into byte code. You have the choice of not deleting
: those java files.

avatar
s*a
5
Thanks for all you guies who replied. But does any one know the case
about dynamically generated implementation of bean interfaces? Could I
get an option of saving the byte code?

javac
implementation
get
deleting

【在 xt 的大作中提到】
:
: I know the case for WebSphere. With WebSphere it first compiles JSP into
: java code, and put in the "temp" directory of the application server. Then
: it compiles the java code into byte code. You have the choice of not deleting
: those java files.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。