Results 1 to 4 of 4

Thread: Invoke servlet from EJB components?

  1. #1
    Join Date
    Feb 2009
    Posts
    53

    Invoke servlet from EJB components?

    Can anyone here tell me how to invoke the EJB components through servlet, I have gone through many sites for that but there are lot of information available which is very vast an i dont have enough time to read all of that, also other information related to it makes me away from what i actually wanted from it.

    so please try to provide me short and sweet information related to it.

  2. #2
    Join Date
    Dec 2008
    Posts
    93

    Re: Invoke servlet from EJB components?

    An EJB component can manage its own persistence (by means of the logic you provide in the bean) or delegate persistence services to the EJB container. Container-managed persistence means that the data appears as member data and the container performs all data retrieval and storage operations for the EJB component.

  3. #3
    Join Date
    Jan 2009
    Posts
    92

    Re: Invoke servlet from EJB components?

    There are three types of servlet engines: 1) StandAlone Servlet Engine: It is a web server that includes built in support for servlets.For eg Java Web Server etc. 2) Add on Servlet Engine:It functions as a plug-in for an existing server,a server that was not originally designed with servlets in mind.For eg JServ, JRun,IBM WebSphere etc. 3) Embeddable Servlet Engine:It is a lightweight server deployment platform that can be embeddable in another application. That application becomes the true server.For eg JavaServerEngine etc.

    EJB Application Servers provide an EJB container, which is the environment that beans will execute in, and this container will manage transactions, thread pools, and other issues as necessary. These application servers are usually stand-alone products, and developers would tie their servlets/JSP pages to the EJB components via remote object access APIs. Depending on the application server, programmers may use CORBA or RMI to talk to their beans, but the baseline standard is to use JNDI to locate and create EJB references as necessary.

  4. #4
    Join Date
    Dec 2008
    Posts
    128

    Re: Invoke servlet from EJB components?

    Yes you can make a servlet as a client and access the EJB. You have to create a WEB-INF folder and in that folder create a classes folder and complie and keep all your class files and depoly.

Similar Threads

  1. SetPassword and ChangePassword Invoke
    By manishdk in forum Active Directory
    Replies: 2
    Last Post: 12-04-2011, 10:22 PM
  2. How to invoke methods of C # in Silverlight using javascript
    By Tynan in forum Software Development
    Replies: 4
    Last Post: 27-02-2011, 08:58 AM
  3. How do you invoke a procedure from a remote machine ?
    By Fragman in forum Software Development
    Replies: 4
    Last Post: 30-01-2011, 03:29 AM
  4. How to invoke JavaScript Code from an Applet?
    By Soumen in forum Software Development
    Replies: 5
    Last Post: 18-02-2010, 01:02 AM
  5. How to invoke servlet filters
    By Pandya in forum Software Development
    Replies: 2
    Last Post: 30-03-2009, 01:31 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,727,433,818.61417 seconds with 17 queries