users@glassfish.java.net

RE: Configuring remote ejb location outside sun-web.xml

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Tue, 12 Oct 2010 08:29:40 -0400

Netbeans project.properties
hostname=localhost

OR
/conf/system.properties
<jndi-name>corbaname:iiop:${hostname}:3700#no.evote.service.StatusService</jndi-name>
Martin Gainty
______________________________________________
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: Tue, 12 Oct 2010 00:29:50 -0700
> From: glassfish_at_javadesktop.org
> To: users_at_glassfish.dev.java.net
> Subject: Configuring remote ejb location outside sun-web.xml
>
> Hi guys
> We are running two instances of GF 3.0.1, one with the presentation layer and one backend server that exposes remote EJB's.
>
> Right now we have configured the url's to the backend directly in sun-web.xml like this:
>
> <ejb-ref>
> <ejb-ref-name>StatusService</ejb-ref-name>
> <jndi-name>corbaname:iiop:localhost:3700#no.evote.service.StatusService</jndi-name>
> </ejb-ref>
>
> But this is not very dynamic and we have to build separate war's for different environments, since th hostname is hardcoded here.
>
> Would it be possible to read the hostname and port from a properties file? Or is there a better way of specifying the url to the backend server?
>
> Regards,
> Anders
> [Message sent by forum member 'andersaab']
>
> http://forums.java.net/jive/thread.jspa?messageID=484936
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>