ejb@glassfish.java.net

Re: EJB call EJB?

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Tue, 09 Jun 2009 18:18:19 -0700

Andrea,

The exception in error2.txt says that the app is trying to us non-xa resource in
a distributed transaction in
com.datacomo.m6.ejb.dao.impl.MemberDao.getMemberInfo. Please check their setup
and if they expect transaction propagation between the beans.

thanks,
-marina

Andrea Wang wrote:
> Hello,
>
> Do we support EJB call remote EJB directly in GlassFish?
>
> EJB1 on GlassFish1 --> EJB2 on GlassFish2
>
>
> As from
> https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#cross-appserverremoteref
> shows how to call a remote EJB from servlet.
>
> How if customer has no web application just want to call remote EJB from
> local EJB?
> Enclosed the code customer test with and the error he got.
>
> Appreciate your comments.
>
> Many Thanks,
> Andrea
>
>
> -------- Original Message --------
> 你好!
> 我再将我们的问题描述一下,以帮助您确认问题:
> 1.我们需要解决的根本问题是EJB服务器调用远程EJB服务器接口:
> 我们的实现方式是通过WEB服务器调用EJB服务器(第一台EJB服务器)接
> 口,再通过第一台EJB服务器调用第二台EJB服务器,将得到的数据返回第一台EJB
> 服务器再返回给WEB服务器。
> 2.代码实现:
> WEB测试服务器测试类代码见附件:Test.java
> 第一台测试EJB服务器代码见附件:TestEJBRemote.java
> 3.错误信息
> 第一台EJB服务器错误信息见附件:error1.txt
> 第二台EJB服务器错误信息见附件:error2.txt
> 请你核实一下 Glassfish V2版本是否支持EJB远程调用EJB,我们用的是EJB3.0。
>
> 谢谢!你们的解答……
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> <http://qiye.163.com/?ft=2>
>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ejb-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: ejb-help_at_glassfish.dev.java.net