简体   繁体   English

将应用程序从tomcat移植到glassfish

[英]Porting app from tomcat to glassfish

My app have this architecture: 我的应用程序具有以下架构:

  • struts 支柱
  • spring 弹簧
  • dwr dwr
  • hibernate 冬眠的

Now we use apache tomcat 5.5.28 . 现在我们使用apache tomcat 5.5.28 We wanna switch to Glassfish for performance. 我们想切换 Glassfish的性能。

My question are: 我的问题是:

  • anyone know if there are problem for porting using this 4 framework? 有谁知道使用此4框架进行移植是否有问题?

  • anyone know a guide for porting? 有人知道移植指南吗? or ... there are an official guide for porting from tomcat to glassfish? 还是...有从Tomcat到Glassfish的官方指南?

Now we use apache tomcat 5.5.28. 现在我们使用apache tomcat 5.5.28。 We wanna switch to Glassfish for performance. 我们想改用Glassfish以获得性能。

Don't misinterpret me, I really like GlassFish but... while Grizzly seems to behave very well (see here , here or here ), are you really sure you'll get that better performances? 不要误解我的意思,我真的很喜欢GlassFish,但是...尽管Grizzly的表现似乎很好(请参阅此处此处此处 ),您确定要获得更好的性能吗? Most of time, performance problems are in the applications and changing the application server won't magically solve them. 大多数情况下,性能问题出在应用程序中,更改应用程序服务器无法神奇地解决它们。

Anyone know if there are problem for porting using this 4 framework? 有人知道使用此4框架进行移植是否存在问题?

I didn't experiment this myself but well, porting J2EE stuff shouldn't be a problem unless you are doing non standard things. 我自己没有对此进行实验,但是很好,除非您正在做非标准的事情,否则移植J2EE东西应该不是问题。

Anyone know a guide for porting? 有人知道移植指南吗? or ... there are an official guide for porting from tomcat to glassfish? 还是...有从Tomcat到Glassfish的官方指南?

Because you are asking for, have a look at the Migrate2Glassfish page, they have a migration guide (couldn't access it tonight so I can't say anything about it). 因为您要询问,所以请查看Migrate2Glassfish页面,他们提供了迁移指南(今晚无法访问它,所以我什么也不能说)。 But, creating the resources your application requires (eg DataSource) and deploying the war shouldn't be that complicated. 但是,创建应用程序所需的资源(例如DataSource)并部署战争并不那么复杂。

Deploy the app (WAR / EAR) on glassfish. 在Glassfish上部署应用程序(WAR / EAR)。 You're done. 你完成了。 There shoudln't be a need to modify something. 无需修改任何内容。

Which container specific things are you using? 您正在使用哪些特定于容器的东西? JNDI Connections...? JNDI连接...? You have to redefine this settings in glassfish. 您必须在glassfish中重新定义此设置。 Read the documentation, this should be easy to solve. 阅读文档,这应该很容易解决。

It depends on if you use anything specific to tomcat ie loggers or data sources etc... If no then it's really easy. 这取决于您是否使用了特定于tomcat的任何东西,例如记录器或数据源等。如果没有,那么这真的很容易。 If yes you'll have to replace those usages with generic libraries or their glassfish equivilant. 如果是,则必须将这些用法替换为通用库或其等效的Glassfish。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM