0

开发基于 JBoss/Seam/Flex/BlazeDS 的应用程序的最佳方式是什么?

我面临的问题是,在 Flex/BlazeDS 仍然可以从 Flex Builder 中调试的同时,拥有一种部署耳朵的简单而干净的方式。

如果我正在处理部署在“JBOSS_HOME/server/default/deploy”目录下的爆炸战争,一切都会正常工作。如果战争部署在同一文件夹的爆炸耳朵上,则情况并非如此。

到目前为止,我发现解决此问题的方法是在不同的战争中使用 BlazeDS 服务存根,这将允许我使用 Flex 前端应用程序。问题是我还必须复制和维护 BlazeDS 远程服务正在序列化的实体 bean POJO。

这显然很烦人。我已经尝试了几件事,但到目前为止没有任何成功。任何帮助,将不胜感激。

我很快就会升级到 Flash Builder 4。有谁知道这些问题是否可以更好地处理?

谢谢,B。

4

1 回答 1

0

So this morning I went back and tried to deploy the ear and flex war together using Flex Builder 3. After some more testing I've realized that the problem is not with Flex. The error that I'm getting while making a remote call seems to be caused by the Seam Framework:

ERROR [[MessageBrokerServlet]] Servlet.service() for servlet MessageBrokerServlet threw exception java.lang.IllegalStateException: Attempted to invoke a Seam component outside an initialized application at org.jboss.seam.contexts.Lifecycle.getApplication(Lifecycle.java:36) ...

Once I've removed Seam from the project, BlazeDS calls were successfully placed.

This is still really strange because if I deploy it packed as opposed to an exploded ear then everything works just fine (except that I will not be able to use Flex debugger).

I guess that for now the solution is to not use the Seam Framework. I've tried this with both Seam 2.2.0.GA and 2.2.1.CR1 but without success.

于 2010-04-12T15:36:27.237 回答