A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
Joined: Sep 06, 2000
Nov 20, 2000 05:00:00
I created a servletBean. I want to access the properties from other
. Can any one help me regading that problem.
Joined: Jan 31, 2000
Nov 20, 2000 18:00:00
If you want to share use of one
's info with other servlets withing a single ,whole web application, put the info in '
' like the following.
And grab the info in other servlets like this.
connectionPool = (ConnectionPool)context.getAttribute("connection-pool");
The above is a code snippet from one of my working web application, where one servlet creates the database connection pool and others just use it.
I agree. Here's the link:
How to execute a Servlet Bean?
how to create statefull session bean in netbeans 6.9.1
How to run java beans in JWS?
Beans in JavaWebServer
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015