Search:

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

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. AfterReturning advice with generic collection

    Hi,

    I'm trying to write an Aspect that proxies all method implementation of the following interface:


    public interface ContentConverter<T> {

    public T...
  2. Replies
    0
    Views
    469

    Registering channel interceptors

    Hi,

    Is it possible to register channel interceptors using annotations?

    Thanks,
    Shahar
  3. OK. Thanks.

    OK. Thanks.
  4. Thanks Osvaldas. I want to make sure I got it...

    Thanks Osvaldas.
    I want to make sure I got it right. So if I had configured two beans which are assignable to HarvestedDocument then spring will inject both (as a collection) to objectQueue?
    ...
  5. Injection of collection doesn't work when using @Autowire

    Hi,

    I'm trying to inject to one of my beans a Queue<HarvestedDocument>. I've written the following code in a factory class:


    @Configuration
    public class ObjectsQueueFactory {

    private...
  6. Replies
    0
    Views
    925

    Fixed delay poller

    Hi,

    I have the following configuration in my application:



    <task:executor id="RequestExecutionPool" pool-size="5-20"
    queue-capacity="0" rejection-policy="CALLER_RUNS" />
    ...
  7. Hi Oleg, The thing is that in our system...

    Hi Oleg,

    The thing is that in our system nothing is really low-priority but rather "slightly-lower" :).
    I really need a more fine tuned adjustment of the way items are prioritized. Using variable...
  8. Mark, Thanks for the task-executor idea...

    Mark,

    Thanks for the task-executor idea (actually it reminded me that I forgot to assign my task-executor :)).

    Regards,
    Shahar
  9. Hi Oleg, I'm not sure I understand your post....

    Hi Oleg,

    I'm not sure I understand your post. I don't have any trouble making the queue distributed with HazelCast. The ref to "DistributedQueue" in the configuration excerpt above is already...
  10. We preferred grid-based distribution and...

    We preferred grid-based distribution and redundancy over JMS. JMS is not easily scalable in opposed to grid-based technologies.
    Are you proposing other options because the solution above is not...
  11. Yes. A priority-queue is not good for 2 reasons:...

    Yes. A priority-queue is not good for 2 reasons:
    1. The queue has to be a distributed queue. I'm not using a simple queue but rather a HazelCast queue. HazelCast does not have a priority queue...
  12. And I could probably also use the...

    And I could probably also use the max-messages-per-poll attribute in order to poll more messages from high-priority channels, right?

    I'm thinking of using the following configuration:


    ...
  13. Hi Mark, The idea is to be able to prioritize...

    Hi Mark,

    The idea is to be able to prioritize between channels without causing starvation on one\some of the channels. So I want to be able to poll from channels according to some predefined...
  14. Multi channel endpoint and extending AbstractPollingEndpoint

    Hi,

    I need some kind of mechanism for polling multiple channels (according to a certain strategy determined by the user). I was thinking of extending the AbstractPollingEndpoint in a way quite...
  15. I've opened a JIRA issue:...

    I've opened a JIRA issue: https://jira.springframework.org/browse/INT-1511.

    Thanks!
  16. Oh shit... I missed the point where Oleg asked me...

    Oh shit... I missed the point where Oleg asked me to open a Jira issue and not put all the details in the forum (like I did). I'll do it now.
  17. I'm not reading files with .writing extension. On...

    I'm not reading files with .writing extension. On the contrary, I'm trying to read files without the extension but the outbound-gateway has not finished writing (or maybe failed to rename).

    You...
  18. Race condition when using file:outbound-gateway

    Hi Oleg,

    I do not have a specific scenario is which it is reproduced consistently.
    Our system, in which the bug reproduces quite often, is something like this:
    1. Have some class read the...
  19. Race condition when using file:outbound-gateway

    Hi,

    I'm encountering a race condition when using the following configuration:



    <file:outbound-gateway id="FileStreamGateway"
    directory="file:${repository}"...
  20. Replies
    5
    Views
    1,199

    Works perfect! Thanks again.

    Works perfect! Thanks again.
  21. Replies
    5
    Views
    1,199

    Thanks! I'll check that out.

    Thanks! I'll check that out.
  22. Replies
    11
    Views
    1,261

    Extensible XML authoring - Schema validation

    Thank you for the idea! I'm not too familiar with restrictions in XML schema, but the concept seems to be promising.

    Regarding your last comment - not all of my application code is plagued with...
  23. Replies
    5
    Views
    1,199

    Adding custom headers to messages

    Thanks Mark!

    It's good to know that the header enricher supports dynamic values as well.
    Is it possible to map method arguments (let say of a gateway interface) to the payload/header using...
  24. Replies
    5
    Views
    1,199

    Adding custom headers to messages

    Hi,

    I have a general question regarding headers: what are the ways to add custom headers to a message?
    The ones I know of:

    Header enricher: good only for adding headers with static values?
    ...
  25. Replies
    11
    Views
    1,261

    The whole idea is to let the user choose whether...

    The whole idea is to let the user choose whether to use placeholders or not. In most cases, the user won't externalize attributes to properties files. In these cases type validation can be very...
Results 1 to 25 of 49
Page 1 of 2 1 2