users@shoal.java.net

Re: [Shoal-Users] Shoal issue when using remote EJB

From: Bongjae Chang <carryel_at_korea.com>
Date: Thu, 18 Dec 2008 13:48:03 +0900

Hi, Enrico Sorio.

I thought your question for a while but you would rather ask this to Glassfish community again.
Because I think this is not related to Shoal framework but related to ejb call's mechanism in glassfish clustering environment.(I don't know for certain)

This is my thoughts.
I wonder how you obtained remote ejb reference in clustering. Did you use specific remote provider url for getting it?
I guess you used provider url, if you called ejb without clustering.
When you use CMT's ejb with remote provider url, tx maybe will be propagated in remote environment because REQUIRED is default transaction attribute for ejb 3.0.
But in clustering, because all deployed ejbs should be homogeneous, I think local ejb can be called.

Because of the difference, I think that JTS's implemetaion in glassfish can return another result when non-xa participates in global tx(if use-last-agent-optimization is true. default is true).
It's just guess!

Thanks.

--
Bongjae Chang


----- Original Message -----
From: "Enrico Sorio" <enrico.so_at_tiscali.it>
To: <users_at_shoal.dev.java.net>
Cc: "Marco Mauri" <ciakana_at_gmail.com>
Sent: Thursday, December 18, 2008 2:31 AM
Subject: [Shoal-Users] Shoal issue when using remote EJB


> Hi, thanks for the previous answer.
>
> Now I have another question:
> I'm using shoal in an EJB application deployed on Glassfish and I'm
> trying to call from an EJB a remote EJB on another glassfish client
> (both the nodes joined the same shoal cluster).
>
> Every call fails with the following error:
> java.sql.SQLEXception: Error in allocating a connection. Cause:
> java.lang.IllegalStateException: cannot add non-XA Resource to global
> JTS transaction.
>
> I haven't specified anywhere to use a XA Transaction.
>
> The same EJB call works without any problem if the caller doesn't join
> the shoal cluster.
>
> Thank you in advance for any help
> Enrico Sorio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_shoal.dev.java.net
> For additional commands, e-mail: users-help_at_shoal.dev.java.net
>
>
>
>