由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Question on J2EE container
相关主题
type erasure weird problem土人问个J2EE的弱问题 *_<
JSP is rubbish!Re: 新生上路
ant javac error in eclipse 3.0?用Websphere实现用telnet登录一个网站的某一目录
How big is the penalty for compile with debugging mode on?j2ee启动时, 启动了tomcat吗?
也问一个Eclipse的问题faint, unreachable statement in java
入门Java CLASSPATH问题:JBuilder question
self-modifying code?help "java.lang.NoSuchMethodError"
问一个j2ee setup问题javac compiler
相关话题的讨论汇总
话题: container话题: j2ee话题: question话题: byte
进入Java版参与讨论
1 (共1页)
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.

1 (共1页)
进入Java版参与讨论
相关主题
javac compiler也问一个Eclipse的问题
com.sun.tools.javac.Main 问题入门Java CLASSPATH问题:
a java problemself-modifying code?
请帮忙看看这个编译错误问一个j2ee setup问题
type erasure weird problem土人问个J2EE的弱问题 *_<
JSP is rubbish!Re: 新生上路
ant javac error in eclipse 3.0?用Websphere实现用telnet登录一个网站的某一目录
How big is the penalty for compile with debugging mode on?j2ee启动时, 启动了tomcat吗?
相关话题的讨论汇总
话题: container话题: j2ee话题: question话题: byte