geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mattias Malmgren <>
Subject Re: Minimalistic example
Date Thu, 14 Sep 2006 13:02:49 GMT
Hi again!

Lasantha, I would also like to here your comment about the lookup string!

Best regards / Mattias

>>In the servlet I use
>>Object objref = initial.lookup("java:comp/env/ejb/MyTest");
>>I guess that "java:comp/env/ejb/MyTest" is some sort of URL that the 
>>container will use to return the right object (in this case an 
>>interface). Now, what are the rules of the lookup-string? In a normal 
>>web-url eg. the http:// part is 
>>the protocol, <> is the domain, 
>>foo/bar corresponds to directories and test.html is the file to ret rive 
>>and show in the users browser. But what is "java:" in 
>>java:comp/env/ejb/MyTest?? What is env/ejb?? Is that supposed to 
>>correspond to something we have put in one of the different xml files? Or 
>>is it part of the package com.test.ejb ? MyTest is probably the name of 
>>the remote interface. But why the name of the remote interface, why not 
>>the name of the

View raw message