Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>..I thought it may be a good idea to do it once at the time of deployment and let a singleton handle all database access tasks on an already initialized model (it is critical for the application to respond to queries fast)...</p> </blockquote> <p>Connection management to DB should not be doe manually inside a SLSB. You should look at leveraging Datasource api. Managing network resources (e.g. DB connection etc) is best left to App server - especially in a container managed environment like the one you have. App Server initializes and maintains a pool of connections.</p> <blockquote> <p>... The Endpoint EJB may have other tasks in the future which are not much related to the actual engine. Finally, also the web service EJB is subject to additions in the future...</p> </blockquote> <p>You have used the word <strong>future</strong> twice in this comment. This is speculation and introduces <a href="http://en.wikipedia.org/wiki/Accidental_complexity" rel="nofollow noreferrer">Accidential Complexity</a>. You can always re-factor when the need arises. Aim to Keep it simple. Designing and coding for future is always expensive..</p> <blockquote> <p>..dump file and is used in testing environment where our NoSQL cluster is not available...</p> </blockquote> <p>Why not use a good <a href="https://stackoverflow.com/questions/22697/whats-the-best-mock-framework-for-java">mocking</a> framework instead of using dump file? Unit testing should not be environment dependent</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload