RE: [JBoss-user] InterestServlet example questions

2001-07-30 Thread Martin Welch
Title: RE: [JBoss-user] InterestServlet example questions Amos, I made the change in the InterestServlet code. Using jndiContext.lookup("interest/Interest"); works but jndiContext.lookup("java:comp/env/ejb/Interest"); causes the errors. I also tried David'

Re: [JBoss-user] InterestServlet example questions

2001-07-27 Thread A.L.
Martin, Where did you change this information? Also could you explain to me why you say you only sort of got it to work? What exactly is this change doing? Thanks, -Amos --- Martin Welch <[EMAIL PROTECTED]> wrote: > Hi, > > I've finally, finally got this servlet example to > work, sort of

Re: [JBoss-user] InterestServlet example questions

2001-07-27 Thread David Ward
Martin, Try adding a jboss-web.xml in your war's WEB-INF directory with the following contents: ejb/Interest interest/Interest You should then be able to use the "java:comp/env/ejb/Interest" jndi name in your servlet. I've never tried to r

[JBoss-user] InterestServlet example questions

2001-07-27 Thread Martin Welch
Title: InterestServlet example questions Hi, I've finally, finally got this servlet example to work, sort of. If I change this line: Object ref  = jndiContext.lookup("java:comp/env/ejb/Interest"); to Object ref  = jndiContext.lookup("interest/Interest"); it works.