It's a normal Java class with main() method. It is using JNDI lookup. Part of
the code is given below:
        Properties p = new Properties();
        p.load(new FileInputStream("jndi.properties"));
        p.put("openejb.authentication.realmName","geronimo-admin");
        InitialContext ctx = new InitialContext(p);
        ShoppingCart cart = (ShoppingCart)
ctx.lookup("ShoppingCartBeanRemote");


djencks wrote:
> 
> Could you please explain how your remote client is connecting to  
> geronimo including whether it is an ejb, ejb/corba, web service, jms,  
> or something else?  Is the client a javaee app client or a standalone  
> non-javaee program?
> 
> thanks
> david jencks
> 
> On Jan 5, 2009, at 8:12 AM, axiez wrote:
> 
>>
>> Ok. What will be the domain, port number etc if I start with the  
>> command
>> "geronimo run"? I am trying to test security roles with a simple  
>> example
>> involving remote client. Some articles mention there are many  
>> domains like
>> kerberos, LDAP etc.
>>
>> axiez wrote:
>>>
>>> I used the geronimo run command to start the server. I didn't start  
>>> any
>>> other domain.
>>> In jndi.properties file that is normally used with client program,  
>>> how
>>> should I mention the user name, password, port number etc?
>>>
>>>
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/host-properties-for-security-annotations-tp21291159s134p21293833.html
>> Sent from the Apache Geronimo - Users mailing list archive at  
>> Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/host-properties-for-security-annotations-tp21291159s134p21296347.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.

Reply via email to