answersLogoWhite

0


Best Answer

get servlet context path from EJB

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you get ServletContext object in EJB - 38k?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between servletcontext and servletconfig?

ServletContext Defines a set of methods that a servlet uses to communicate with its servlet container.ServletConfig is a servlet configuration object used by a servlet container used to pass information to a servlet during initialization. All of its initialization parameters can ONLY be set in deployment descriptor.The ServletContext object is contained within the ServletConfig object, which the Web server provides the servlet when the servlet is initialized.You can specify param-value pairs for ServletContext object in tags in web.xml file.The ServletConfig parameters are specified for a particular servlet and are unknown to other servlets. The ServletContext parameters are specified for an entire application outside of any particular servlet and are available to all the servlets within that application.By Santanu


How do you get servlet context instance to servlet?

You can get the ServletContext instance in a servlet by using the getServletContext() method provided by the HttpServlet class, which is the base class for servlets. This method returns the ServletContext object associated with the servlet. For example: ServletContext context = getServletContext();


Which class define the getWriter method?

servletcontext


What is EJB in java?

EJB generally is used for the following reasons - 1. To extract the business logic from web tier and implement the buginess logic in ejb. 2. EJB can also run on different system. So for big application to reduce load buniness logic implementation code can be executed in different system. 3. Since to run the EJB, develop needs an EJB container. So these are following activities are managed by the EJB container - i. To handle resouce polling. Basically EJB container create EJB instance and place in poll to ready when require it provides the instance. ii. Transaction management using @ContainerBeabManaged annotation iii. Threading iv. concurency handleing Thanks aswini.de@gmail.com


Projects on ejb ppt?

dd


What is the latest version of EJB?

3.1


What bra size are you?

i am a 38k 36N


What is the difference between servlet context page context?

ServletContext is an interface for communication with the servlet container while PageContext is an object for managing data related to a JSP page. ServletContext is used for application-wide resources while PageContext is specific to a single JSP page.


How much is 38K in decimals?

38 000.00


What is the difference between RMI and RPC?

RMI simply offers remote access to an object running in another process. But EJB offers far more services than RMI. EJB leverages this remote-object feature of RMI, but also provides other services such as persistence, transaction management, security, and resource management. The EJB server provides all of these complex services which allows EJB developers to worry about business logic instead. For a complete understanding of EJB i suggest Http://edocs.bea.com/wle/rmi/sampejb.htm


IS you more likely to survive a collision if you are thrown from the vehicle 38k?

No.


Who invented ejb?

Rahul Jha, from patana, Kankad bag, 9730477149