users@glassfish.java.net

RE: Calling EJBs on another cluster supporting balancing and failover

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Thu, 4 Jun 2009 19:56:08 -0400

$GLASSFISH_HOME/lib/dtds/sun-ejb-jar_3_0-0.dtd

<!--Specifies the jndi name string. -->
<!ELEMENT jndi-name (#PCDATA)>

i dont believe , is parsed by PCDATA as separator but that may depend on the implemented parser
i havent seen multiple jndi-names within <jndi-name>jndi-name</jndi-name>
you may want consider duplicating the entry you have with a different jndi-name

Martin
______________________________________________
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut ętre privilégié. Si vous n'ętes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert ŕ l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement ętre sujets ŕ la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Thu, 4 Jun 2009 15:51:52 -0700
> From: glassfish_at_javadesktop.org
> To: users_at_glassfish.dev.java.net
> Subject: Calling EJBs on another cluster supporting balancing and failover
>
> Hi. I have two Glassfish clusers (each of them has two instances). I want to call and EJB deployed in one of the clusters from the other one. So according to the FAQ document:
>
> Within servlet :
>
> @EJB(name="fooejbref")
> private FooRemote fooRemote;
>
> Within sun-web.xml :
>
> <ejb-ref>
> <ejb-ref-name>fooejbref</ejb-ref-name>
> <jndi-name>corbaname:iiop:host2:3700#Foo</jndi-name>
> </ejb-ref>
>
> The problem is that I want to support failover and balancing. So i changed the sun-web.xml to the following:
>
> <ejb-ref>
> <ejb-ref-name>fooejbref</ejb-ref-name>
> <jndi-name>corbaname:iiop:host2:3700,iiop:host3:3700#Foo</jndi-name>
> </ejb-ref>
>
> where host2 and host3 are computers representing the two instances of the cluster holding the EJBs. This is not working as only host2 gets called.
>
> What is the correct way to perform this? Do I have to add something to sun-acc.xml? The change to sun-acc.xml must be done on the DAS instance?
> Thanks in advanced for any help.
> [Message sent by forum member 'mcapurro' (mcapurro)]
>
> http://forums.java.net/jive/thread.jspa?messageID=349216
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>

_________________________________________________________________
Hotmail® has ever-growing storage! Don’t worry about storage limits.
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009