Search:

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

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    340

    Request scope for JMS

    I have a web application which also uses JMS via Camel and Lingo.

    How can I ensure that request scoped beans are also available to threads handling JMS messages?

    Best regards,
    Harald
  2. Replies
    3
    Views
    531

    That depends on the scope of "we": If you tried...

    That depends on the scope of "we": If you tried to do it in Spring Data alone, I agree you'd have to cherry pick and thus copy some bits of Spring Core or create alternative solutions.

    If "we"...
  3. Marten, thanks for your quick reply! This sounds...

    Marten, thanks for your quick reply! This sounds like material for an enhancement request ;-)

    Best regards,
    Harald
  4. How to avoid duplicate bean definitions in Spring 3.1?

    There is an API AbstractRefreshableApplicationContext.setAllowBeanDefinitionOverriding() which seems to do the trick, but I can't find any usage examples.

    The concrete non-web ApplicationContext...
  5. I posted the same question to the Neo4j mailing...

    I posted the same question to the Neo4j mailing list a while ago:
    https://groups.google.com/forum/#!topic/neo4j/GjMpDNPf30Q

    FSF has a rather confusing statement on ASL/GPLv3 compatibility which...
  6. Replies
    3
    Views
    531

    Spring Data without Spring Core

    Pardon me for raising a somewhat heretic topic in this cathedral of Spring...

    Spring Data has a potential for reaching a larger audience if it were independent of Spring Core.

    For projects...
  7. Replies
    2
    Views
    606

    I had the same issue with Eclipse + m2e + m2e-wtp...

    I had the same issue with Eclipse + m2e + m2e-wtp + Tomcat.
    The neo4j-kernel JAR did not get copied to the Tomcat work area. Instead, the Maven dependencies of the Eclipse project listed a...
  8. Ok, got it. Only Mars and Earth are connected and...

    Ok, got it. Only Mars and Earth are connected and Mercury is isolated.
    I was somehow expecting to see a list of all worlds returned from the demo.

    Not exactly the best of marketing when the...
  9. spring-data-neo4j: hello-worlds example broken

    This is what I get when running the hello-worlds example from a fresh repository clone:


    cd spring-data-neo4j-examples/hello-worlds
    mvn clean package exec:java

    At home on:...
  10. Replies
    3
    Views
    775

    Yes, that's precisely the problem with custom...

    Yes, that's precisely the problem with custom namespaces in general. It's not so easy to translate some of the legacy XML examples from the Spring Core manual to Java, because the relation between...
  11. Replies
    3
    Views
    775

    Spring Security without XML?

    Now that Spring 3.1 finally got rid of the last bits of mandatory XML configuration by means of @Enable... annotations, I wonder if it's also possible to use Spring Security in pure Java mode. The...
  12. Ok, moving the "file:" protocol prefix from the...

    Ok, moving the "file:" protocol prefix from the @PropertySource annotation value to the property value itself provides some more flexibility.



    I don't even see this...
  13. Replies
    0
    Views
    403

    Spring 3.1: How to disable a @Profile?

    Is there a way to disable a bean profile which is enabled by default?

    Use case:
    We have a web app with a bunch of message queues and corresponding endpoint beans. With Spring 3.1, we've moved all...
  14. Hi Chris, thanks for your examples! Injecting...

    Hi Chris,

    thanks for your examples! Injecting an Environment, I can indeed work without a PropertySourcesPlaceholderConfigurer like this:


    @Configuration
    @PropertySource("file:${MY_CONFIG}")...
  15. NoXML Property Placeholder Configuration in Spring 3.1.0.RC1?

    I'm currently trying to convert a mostly-Java-with-some-XML Spring 3.0.6 configuration to a Java-only configuration with Spring 3.1.0.RC1.

    In my old XML context, I use a property placeholder


    ...
  16. Replies
    0
    Views
    804

    Transactional JUnit @Rules

    Some of my transactional JUnit test are broken after upgrading from Spring 3.0.5 to Spring 3.0.6.

    This appears to be caused by a change in SpringJUnit4ClassRunner [SPR-7705].

    Since @Rules are...
  17. Replies
    0
    Views
    442

    OpenJPA Load Time Enhancement

    Does anybody have a copy-and-paste example configuration for a JPA 2.0 EntityManagerFactory with OpenJPA 2.1.0, Spring 3.0 and Tomcat 6.x with Load Time Enhancement?

    The main point is load time...
  18. Replies
    5
    Views
    1,182

    I mean "stateless" in the sense of "does not save...

    I mean "stateless" in the sense of "does not save state between calls from the same client", having the EJB spec in mind, of course.

    A public method called by the client may call other private...
  19. Replies
    5
    Views
    1,182

    As a rule, I wouldn't call any kind of method...

    As a rule, I wouldn't call any kind of method interceptor trivial. My notion of trivial is putting a @Stateless annotation on a POJO to make it pooled and thus implicitly thread-safe.
    ...
  20. Sticky: Poll: @Autowired ties your code to Spring. Using...

    @Autowired ties your code to Spring. Using @Inject, you can run your code on Spring, Weld SE, Java EE 6, Guice, ...

    So don't use @Autowired if you want to be flexible.

    Regards,
    Harald
  21. Replies
    1
    Views
    2,493

    I'd say you'd better not extend Assert but use...

    I'd say you'd better not extend Assert but use static imports instead. And I prefer @Inject to @Resource or @Autowired. But that's it, more or less.

    You may have to type a few more characters than...
  22. Replies
    5
    Views
    1,182

    Is thread-safety a non-issue for Spring?

    I'm used to working in environments where the container guarantees thread-safety, i.e. each instance of an application class is always run by at most one thread at a time.

    I've tried hard to find...
  23. Ok, I've found the answer here:...

    Ok, I've found the answer here:
    http://blog.springsource.com/2008/01/28/spring-25s-comprehensive-annotation-support/

    So it works just as I had imagined, you just need to make sure the EJB...
  24. Spring Transactional Tests with EJB Annotations

    I'm trying to find out whether or not the Spring Test Context can be used for non-intrusive testing of Java EE 6 EJBs and JPA 2.0 entities.

    "Non-intrusive" means that the sources shall not depend...
  25. Replies
    4
    Views
    916

    Googling for a solution, I found a reference to...

    Googling for a solution, I found a reference to an annotation @AnnotationDrivenTx in a project called Spring JavaConfig.

    But this annotation does not exist in Spring 3.0.5, which is a bit...
Results 1 to 25 of 26
Page 1 of 2 1 2