Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JavaBean location question

Thread Tools

JavaBean location question
Posts: n/a

I need to have access to Javabean from *.jsp, servlet and back-end
business classes.
Currently, I create bean instance on web application startup and add it
to web application as the attribute:
getServletContext().setAttribute(bean). Also I store that instance in
the businness class via setter method: myBusinessObject.setBean(bean).

Is it a good technique?
If not what is the common technique for storing this bean?

Thank you.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Location, location, location =?Utf-8?B?VHJhY2V5?= Wireless Networking 2 02-17-2007 08:37 PM
Creating a page-level ErrorBuffer JavaBean Andy Java 0 07-30-2003 10:26 AM
Re: Use one javabean for each table? tom Java 0 07-24-2003 09:20 PM
Re: Use one javabean for each table? A Bag Of Memes Java 0 07-24-2003 05:45 AM
Missing JavaBean.. Andrew Thompson Java 4 07-07-2003 07:34 PM