Search:

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

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    231

    Query by Example

    Hi all,

    Maybe I'm overlooking something here, but is it possible using Spring Data with JPA, to use query by example?

    I mean, something like:

    class AuthorRepository {
    Author...
  2. Replies
    4
    Views
    634

    Yeah! It works! I was running RabbitMQ 2.8.2, and...

    Yeah! It works! I was running RabbitMQ 2.8.2, and I uninstalled it, upgraded to 2.8.4, and now it works!!!! Nice! Thanks for the help!!!!!!
  3. Replies
    4
    Views
    634

    I tried some more stuff, and I came up with this...

    I tried some more stuff, and I came up with this code:



    package nl.jworks.rabbitmq;

    import com.rabbitmq.client.ConnectionFactory;
    import com.rabbitmq.client.Connection;
    import...
  4. Replies
    4
    Views
    634

    Hi Mark, Thanks for the quick response. I was...

    Hi Mark,

    Thanks for the quick response. I was indeed trying multiple things here. I started with the code above, but it didn't work; no message was received.

    I usually start the producer, and...
  5. Replies
    4
    Views
    634

    Cannot send message to RabbitMQ

    Hello all,

    I'm trying a trivial RabbitMQ example, and everything works (eg, I can receive messages using Spring/Java), plus I can send messages using the RabbitMQ cli and web interface. The only...
  6. Replies
    4
    Views
    13,955

    I don't see how this is the same a getting the...

    I don't see how this is the same a getting the property value from an object. It seems like you are using the whole object as a key, which is not what I meant.
  7. Replies
    4
    Views
    13,955

    Map key with value of bean attribute

    Hello, I was wondering if it's possible to create a Map in a Spring application context whose keys are not Strings, but are dynamisch attributes of other beans.

    For example, I have a class:

    ...
  8. Replies
    5
    Views
    960

    Could you give an example of how to do that? I'm...

    Could you give an example of how to do that? I'm not sure if, or how, it possible to implement your suggestion. It might help if I show you how the CommunicationService is implemented..



    public...
  9. Replies
    5
    Views
    960

    It's not exactly legacy code, but it's part of a...

    It's not exactly legacy code, but it's part of a library I use. It's very unlikely this code will change.



    Well, this construction works, but is far from perfect. I'll consider writing a...
  10. Replies
    5
    Views
    960

    A better way to write this?

    Hello all,

    I'm a beginner when it comes to using Spring. I want to rewrite a small piece of Java code to use the Spring config:


    CommunicationService.getInstance().registerMessageListener(...
Results 1 to 10 of 10