Search:

Type: Posts; User: thenakedsingularity; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Replies
    5
    Views
    1,329

    You mean using those "advices" with AOP for...

    You mean using those "advices" with AOP for exception handling? conceptually I don't get that approach. I think using a global exceptioan handler is a lot less trouble.
  2. Replies
    0
    Views
    827

    about error page

    I know you can specify an error page for your JSPs. However, I have an exception handler which forwards to a custom made error view, and I like all exceptions go through there, regardless if they are...
  3. Replies
    5
    Views
    1,329

    What's wrong with havning a centralized location...

    What's wrong with havning a centralized location for exception handling and logging? Especially when in this particular application the lower level components don't know what to do with those...
  4. Replies
    5
    Views
    1,329

    log4j question

    I am using log4j with Spring, here is my log4j.xml file:

    <appender name="WARN" class="org.apache.log4j.RollingFileAppender">
    <param name="File" value="C:\\logs\\app-info.log"/>
    ...
  5. I tried this: DefaultTransactionDefinition txDef...

    I tried this:
    DefaultTransactionDefinition txDef =

    new DefaultTransactionDefinition(DefaultTransactionDefinition.PROPAGATION_REQUIRED);



    ...
  6. Replies
    0
    Views
    1,012

    Exception Handling

    Any best practices, recommended approches, articles on the right way to handle exceptions in the Spring web framework?

    Don't have a specific problem, but looking for general guidance.

    Thanks!
  7. k, let me see, thx.

    k, let me see, thx.
  8. How to timeout an connection or api call

    hey guys,

    This most likely won't be a Spring issue or have a Spring solution, but I thought I'd ask. What do you guys do to stop a query running over X secs with no results back? I am using...
  9. Not really a problem. Just wondering where you...

    Not really a problem. Just wondering where you are handling the responsiblity of persisting information to the session scope. I guess it cannot be in the usecase layer since you want to decouple that...
  10. Good for you. But I can't seem to get away from...

    Good for you. But I can't seem to get away from persisting data to the session. Or persisting session specific data in one form or other.
  11. http session.

    http session.
  12. "So only the controller needs to keep its hands...

    "So only the controller needs to keep its hands of the session"

    well, are you saving data/objects in the session? is the solely the responsiblity of the controllers?
  13. Where do you handle the responsiblity of...

    Where do you handle the responsiblity of persisting/getting/managing information to session when you need to?
  14. yes, I have similar concerns too. If we stick...

    yes, I have similar concerns too.

    If we stick the said "functionality" into controllers, there is no reusability. If we leave it out, the controllers become skeletons.

    Some readers here...
  15. I have thought about similiar approaches. I...

    I have thought about similiar approaches. I wonder, however, if so called usecase is the right type for the component. My thought was controller still control the usecase, however, there is a helper...
  16. Replies
    3
    Views
    1,160

    yup, that helps, thanks!

    yup, that helps, thanks!
  17. Replies
    10
    Views
    2,280

    interesting point on the stateless nature of the...

    interesting point on the stateless nature of the helper. I was wondering about that since I do have to pass in "request" when I use the helper, not ideal. good point!
  18. Replies
    10
    Views
    2,280

    possibly... my current solution is making a...

    possibly...

    my current solution is making a singleton called ControllerHelper, and IOC that into the controller needs its functions.

    The reason I did that versus using an abastract controller...
  19. Replies
    10
    Views
    2,280

    Let me try to clarify a bit more. I have a...

    Let me try to clarify a bit more.

    I have a particular step in my presentation tier. Within this step, it executes some business logic, analyze the result, and based on the result prepare some...
  20. Replies
    10
    Views
    2,280

    In practice, should I create a component for the...

    In practice, should I create a component for the presentation tier that executes business logic and prepare model and handle view management because the combination of the three are reusable through...
  21. Replies
    10
    Views
    2,280

    A design question

    Guys,

    I have a design question I could use some inputs on.

    The basic flow of the web application is basically:
    1) A view forwards to a controller.
    2) The controller processes the...
  22. Replies
    3
    Views
    1,160

    A design question

    Guys,

    I have a design question I could use some inputs on.

    The basic flow of the web application is basically:
    1) A view forwards to a controller.
    2) The controller processes the...
  23. still cannot find the right parameter to set in...

    still cannot find the right parameter to set in the datasource config. I am NOT using hibernate or transactions, just the basic datasource.
  24. thanks!

    thanks!
  25. Set query timeout with MySQL connection

    Has anyone done this before? Basically I want an exception to be thrown if no resultset comes back in 60 seconds.

    Thanks!
Results 1 to 25 of 46
Page 1 of 2 1 2