Play运行和开始之间有什么区别? [英] What are the differences between Play run and start?

查看:140
本文介绍了Play运行和开始之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在以下问题的背景下,我想了解跑步比赛开始与比赛跑步之间的区别.

I would like to understand the differences between running play start and play run, in the context of the problem below.

我的特定用例相当复杂,但是我将这样简化它:

My specific use case is rather complex, but I'll simplify it like this:

  • 在启动时(作为Global.scala的一部分),我的Play应用程序正在直接调用Java应用程序X的入口点.
  • 作为初始化的一部分,X启动了Tomcat的嵌入式实例.
  • 在X初始化结束时,它会验证Tomcat是否已启动并响应请求.

现在,当我在此应用程序上执行play start时,Tomcat已启动并正在运行,X很高兴,而且生活还在继续.

Now, when I do play start on this application, Tomcat is up and running, X is happy, and life goes on.

但是,当我执行play run时,Tomcat无法初始化,并且X坐在那里等待响应,最终超时.

However, when I do play run, Tomcat fails to initialize, and X sits there waiting for a response, eventually timing out.

我需要使用play run的主要原因是为了开发,因为我想通过运行play debug run附加Eclipse调试器来播放.

The main reason I need to use play run is for development, since I'd like to attach the Eclipse debugger to play by running play debug run.

我意识到这太过简单了,但是我希望从您那里得到的是导致Play run和Play start之间的差异,这可能会导致我的应用程序行为发生变化,从而导致失败.

I realize this is an oversimplification, but what I'm hoping to get from you are leads to differences between Play run and Play start that could make a difference in the behaviour of my application resulting in this failure.

现在,我已经尝试在 http之后增加Play的默认线程池中的线程数://www.playframework.com/documentation/2.1.x/ThreadPools 但没有运气.

Now, I've tried increasing the number of threads in Play's default thread pool following http://www.playframework.com/documentation/2.1.x/ThreadPools but no luck.

播放输出和日志没有提供关于此问题的有用信息.

Play output and logs give me no useful information on this issue.

我正在使用Play 2.1.1

I'm using Play 2.1.1

推荐答案

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆