I have deploy an EJB in weblogic 6.1,but how to use jsp to invoke the EJB's method?

i have deploy an EJB in weblogic 6.1,but how to use jsp to invoke the EJB's method?
thanks!

You'd do something like:
<%
//vvv this part can potentially be done in initialization
Context ctx = getInitialContext();
BeanHome home =
(BeanHome)PortableRemoteObject.narrow(ctx.lookup("the.jndi.name"),
BeanHome.class);
Bean b = home.create();
//^^^
Result r = b.invokeMethod();
%>
"toxin" <[email protected]> wrote in message
news:3d2e95e5$[email protected]..
>
i have deploy an EJB in weblogic 6.1,but how to use jsp to invoke theEJB's method?
thanks!

Similar Messages

Maybe you are looking for

  • Some photos don't show in LIbrary view--just the outlines of them

    Tonight I tried to transfer a bunch of digital photos from a CD my daughter burned into my iPhoto library, into the 2006 year folder. I opened the CD and in the icon view, the pictures looked fine--jpeg files. After I transferred them, these pictures

  • What's the best way to configure multiple email accounts?

    First time poster, just switched over from Blackberry to he iPhone yesterday. I use Mail, iCal, Address Book, iTunes, iWeb, and iPhoto. I have 2 Macs (a Macbook for work and an iMac for home) and an iPhone 3G. Here's what I want to do: 1) I have 4 em

  • One Computer, Multiple Users, Multiple iTunes Libraries

    Hello My family shares a single Mac via Fast User Switching. We all have separate iTunes libraries. I had some difficulty getting TV to be able to use all of the iTunes libraries as alternate sources for streaming music. I'm posting this here as I'v

  • FM or BAPI for processing output types of inbound deliveries

    Hello All, Does anyone know if there is a FM or BAPI what can be used to trigger the output type of an inbound delivery. FOr outbound deliveries there is a bapi called BAPI_LIKP_PROCESS_MSG_DIRECT but this does only work for outbound deliveries. Kind

  • WF problem with rule

    Hi expert, i have created a rule with Category = Agent Determination: Responsabilities; this rule doesn't work correctly  only in production and only with some values. I have tried the note 855494 but i haven't understand what "The rule resolution is