Regarding EJB accessing DB

From: Ravi Shankar (sujashankar_at_pacific.net.sg)
Date: 06/21/04


Date: Mon, 21 Jun 2004 20:36:23 +0800

Hi all,

Please help:)

I have a TaskManager class which is running as a timer, say every minute.In
evenry minute, the TaskManager instantiates an EJB which makes a connection
to the database and brings a file name which then will be loaded.When I run
the application, I log the time in which timer is executed, and I see that
the timer executes every one minute for some time and then suddenly there is
a delay of 4-5 minutes.Again the timer comes back to normal and executes for
sometime, again delays for 5-6 minutes. This happens sometimes, or not at
all.

What I am presuming is that when EJB is making a database connection using
connection pool (we use WebLogic) , at a particluar time, EJB is not able to
make a connection since all other connections may be in use and so waits for
the next connection to be released.

So by increasing the number of connections and no of EJBs will the problem
be solved, please advise and thanks a lot for your time.

Best regards,
Suja



Relevant Pages

  • Regarding EJB accessing a database
    ... I have a TaskManager class which is running as a timer, ... What I am presuming is that when EJB is making a database connection using ...
    (comp.lang.java.programmer)
  • Re: Regarding EJB accessing DB
    ... I just wrote a System.out.println in the EJB instead of ... making a connection to the database. ... >> to the database and brings a file name which then will be loaded. ... >> the application, I log the time in which timer is executed, and I see ...
    (comp.lang.java.databases)
  • Re: Can I implement a timer within a thread without a blocking wait?
    ... I think that a periodically running process may consume more server ... I'm trying to implement a multithread server program on Linux. ... I'll close the connection. ... But I can't implement timer signal handler for each thread. ...
    (comp.programming.threads)
  • Re: RAS connection and Socket status
    ... You don't need a timer to check the current RAS status. ... recv) to ensure that status messages can be processed. ... RasGetConnectStatus to check it during the connection process ...
    (microsoft.public.pocketpc.developer)
  • Re: Can I implement a timer within a thread without a blocking wait?
    ... I'll close the connection. ... But I can't implement timer signal handler for each thread. ... When you want to timeout a connection, add a timer to the linked ... Also clear the flag anytime the connection is active. ...
    (comp.programming.threads)