Search:

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

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    858

    I'm sorry I must have misread your post. Anyway,...

    I'm sorry I must have misread your post. Anyway, since your endpoint code is always tightly coupled to the ObjectFactory class I would choose not to inject it. When injecting it you would couple your...
  2. Replies
    3
    Views
    858

    In general for me it depends on the type of...

    In general for me it depends on the type of factory whether to inject it or not. When I use a method factory I do not inject it but instead implement it as a singleton. In case of abstract factories...
  3. Replies
    3
    Views
    999

    I assume that you are referring to a desktop...

    I assume that you are referring to a desktop application rather than a webapp. A common way of doing this is by opening a ServerSocket on some port first thing when the application starts. When the...
  4. Replies
    2
    Views
    971

    For a brief explanation of cross-cutting...

    For a brief explanation of cross-cutting concerns, see http://en.wikipedia.org/wiki/Cross-cutting_concern.
  5. Replies
    1
    Views
    816

    You might need to provide some more information...

    You might need to provide some more information for the only help I can give you with this description is that you can delegate the handling of a request:

    public ModelAndView...
  6. Do not use 'classpath' in your resource location...

    Do not use 'classpath' in your resource location but use the path to your resource. You do not need to include '/classes' since your working directory will, most likely, be classes (judging by the...
  7. Replies
    13
    Views
    11,060

    Well then you need to set up two different...

    Well then you need to set up two different security configurations, each covering a different set of URLs.

    Are you sure though that groups is not the thing you need? I don't know your use-case but...
  8. Replies
    3
    Views
    783

    First of all, the latter post does not really...

    First of all, the latter post does not really relate to Transaction Management IMHO. It would be better if you start a new post on a new question :)

    Anyway, you specify the command class that...
  9. If the file is on your classpath you should be...

    If the file is on your classpath you should be able to import it just time, no matter whether it's packaged in a JAR or not. I probably didn't clarify this much in my previous post but you should use...
  10. In your WEB-INF/springContext.xml you can import...

    In your WEB-INF/springContext.xml you can import the correct Spring configuration from the JAR file using
    <import resource="path/to/resource" />

    About your Maven related question; you could use...
  11. Great, good luck with it :)

    Great, good luck with it :)
  12. Replies
    1
    Views
    605

    It will help big time if you could tell more...

    It will help big time if you could tell more about the use-case for having multiple connection pools. I.e. what is the separation between the pools, when do you need to use a pool and how do you know...
  13. I'm not sure if I understand your actual model....

    I'm not sure if I understand your actual model. As I understand it Bar has-a Info and Bar has-multiple Foo's. Is this correct? If so, I think the Infodata entity should not be necessary but instead...
  14. Are you sure that you are using the entity...

    Are you sure that you are using the entity manager factory from Spring, and not some other instance instead? The code you posted looks fine to me.

    Could you post a stacktrace?
  15. Replies
    7
    Views
    1,248

    Create a META-INF folder in your src/ folder and...

    Create a META-INF folder in your src/ folder and add persistence.xml in there.
  16. Replies
    1
    Views
    734

    Isn't the OpenSessionInViewFilter an Servlet...

    Isn't the OpenSessionInViewFilter an Servlet Filter that is configured in web.xml? If so, you cannot use Spring for dependency injections, because the servlet container won't get an instance of your...
  17. Replies
    7
    Views
    1,248

    META-INF/persistence should exist in your...

    META-INF/persistence should exist in your classpath. Please refer to hibernate.org/hib_docs/entitymanager/reference/en/html/configuration.html for details about persistence.xml. (I asume you use...
  18. Hibernate will take care of initialization and...

    Hibernate will take care of initialization and assignments. Hibernate instantiates your classes using reflection. Please clean your constructors and try it without any manual set construction etc.
  19. Replies
    3
    Views
    1,025

    If you have split your mappings and queries in...

    If you have split your mappings and queries in two files, make sure your mappings are loaded before your queries. For example, start your mapping files with an 'm' and your query files with a 'q'. I...
  20. Replies
    7
    Views
    1,248

    Well, without persistence.xml your JPA driver ORM...

    Well, without persistence.xml your JPA driver ORM won't work indeed. The persistence.xml is a deployment descriptor and therefore should be placed in META-INF.
  21. Does Hibernate actually execute the queries...

    Does Hibernate actually execute the queries against your database? You can watch the queries being logged when you set property hibernate.show_sql to true.

    You should BTW remove the initialization...
  22. In order to fetch data you have to open a session...

    In order to fetch data you have to open a session and a transaction first. Either bind a transaction to the session programmatically or use managed transactions.
  23. Replies
    3
    Views
    783

    The pointcut matches all methods in...

    The pointcut matches all methods in *..RantService.*. Therefore the advice will be applied to all methods. The transactional advice will use its configured attributes to do its job. When the advisor...
  24. Replies
    3
    Views
    1,025

    If you have the packages com.domain and...

    If you have the packages com.domain and com.domain.subdomain, the expression **/*/*.hbm.xml won't match package com.domain. Try **/*.hbm.xml. Or, if you want to make sure you only load your own...
  25. Replies
    7
    Views
    1,248

    1. since persistence.xml is a deployment...

    1. since persistence.xml is a deployment descriptor, it always resides in META-INF.

    2. if you refer to dependency injection AFAIC there is no difference when using JPA, except that you will use...
Results 1 to 25 of 26
Page 1 of 2 1 2