s**a 发帖数: 4 | 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! |
xt 发帖数: 17532 | 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!
|
A**o 发帖数: 1550 | 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!
|
f*****g 发帖数: 31 | 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.
|
s**a 发帖数: 4 | 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.
|