Hi
I am new to JRUN EJB Deployment.
we specify a name in the ejb-jar.xml

     <display-name>DemolitionBeanName</display-name>
     <ejb-name>Demolition</ejb-name>
     <home>DemolitionHome</home>
      <remote>Demolition</remote>
      <ejb-class>DemolitionBean</ejb-class>

while accessing this bean through a JSP page we write

    Properties properties = new Properties();
    properties.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"allaire.ejipt.ContextFactory");
    properties.setProperty(Context.PROVIDER_URL, "ejipt://localhost:2323");
    InitialContext  context = new InitialContext(properties);
    DemolitionHome home = (DemolitionHome)context.lookup("Demolition");

is the name specified in the Lookup same as the one soecified in the
ejb-jar.xml <ejb-name>Demolition</ejb-name>
or is there another place where we need to map the EJB Name and the JNDI
lookup name

Thanks in advance





______________________________________________________________________
Get the JRun Web Application Construction Kit - the only book written specifically for 
JRun developers.
http://www.amazon.com/exec/obidos/ASIN/0789726009/houseoffusion
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to