Sharing resources

S

Scorpio

Hi folks,

i'm currently developing a distribuited server application, accessible via
standard browser... I'm using Servlet, JSP and some architectural classes of
my own...

For sharing some resources (obviously, concurrency is managed), like token
generators or decoder, I use static instances in some business-logic
classes. This works, but I was suggested it's not a best-practice.
So, I'd like to know:

1) why it's not a good practice, and what are the risks can occour;
2) if a possible solution it's using JNDI API, to put and get resources in
application server context.

Thanx in advance,

Scorpio.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top