How can invoke EJb though ASP

Discussions

EJB design: How can invoke EJb though ASP

  1. How can invoke EJb though ASP (5 messages)

    Hi every
      
    I am a beginner with ejb,mybe my question is very funny.
    But I want to know how many ways invoke the ejb component from client.(My application server is weblogic 6.0)
    Whether asp can invoke ejb or not????

    Thank u help

    Threaded Messages (5)

  2. How can invoke EJb though ASP[ Go to top ]

    to invoke a method on the EJB component u have gotta first lookup the home object in the JNDI naming space using JNDI API. once u have the home object and then the remote u can invoke ur business methods.


    yes u can invoke an EJB component from ASP. just picked this code from examples provided with weblogic.

    Set WebLogic = GetObject("java:weblogic.com.Tengah")
    Set ctx = WebLogic.getInitialContext(URL.Text)
    Set broker = ctx.lookup("beanManaged.AccountHome")
    Set pk = GetObject("java:examples.ejb.beanManaged.interfaces.AccountPK")
    pk.accountId = AccountNum.Text
    Set account = broker.findByPrimaryKey(pk)
  3. How can invoke EJb though ASP[ Go to top ]

    Hi Kapil Israni

    Thank for you help!!
    Would u tell me where can find those excamples?!
    Thanks for taking time out for that posting.
  4. How can invoke EJb though ASP[ Go to top ]

    i found the example in <<weblogic_root>>/examples/com

    its just one example they have. which shud be sufficient to know how to call on the methods on ur EJB components. but what is more important for u to know is how marshall data between these method calls. with JAVA/RMI/RMI-IIOP u can marshall only serializable objects, similarly with COM u can marshall specefic COM data types. u might wanna research on what specific data types u can throw between these method calls. for example i am sure u cant expect a COM client to catch ur Customer.class array returned from ejb method call.

    check out - "e-docs.bea.com". i searched on "COM" keyword and it did throw back some stuff.

    lemme know if u need anything. (kapil_israni at yahoo dot com)

    have a good one
  5. How can invoke EJb though ASP[ Go to top ]

    found the examples in weblogic_root\examples\root
  6. How can invoke EJb though ASP[ Go to top ]

    found the examples weblogic_root\examples\com