Search:

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

Search: Search took 0.05 seconds.

  1. The only thing I store is an...

    The only thing I store is an InheritableThreadLocal which contains the same value for all Messages which are processed by the same thread.

    An example. Suppose we have incoming messages on...
  2. Oleg, That's correct. The message carries a...

    Oleg,

    That's correct. The message carries a header containing a unique piece of data which can be used to determine the destination thread.
  3. I don't use scoped-proxy. We (ab)use the "invalid...

    I don't use scoped-proxy. We (ab)use the "invalid scope" for some integration tests, but not in production code.
  4. Yes Marc, I did. It resulted in a "dispatcher has...

    Yes Marc, I did. It resulted in a "dispatcher has no subscribers" error. Sidenote: When the application starts, all beans are instantiated in an invalid scope, which I defaulted to...
  5. Done, see...

    Done, see https://jira.springsource.org/browse/INT-2654
  6. Issue fixed and closed

    Adding some randomness to my code, clarified that different threads are used. It seems that, for every instance, my ThreadPoolExecutor bean starts counting from zero.

    Thus:

    instance1 spawns a...
  7. One step closer to a solution

    I've managed to find a partial solution. I now have an instance of my serviceActivator(EchoService) per simulation. But I am still searching for a way to have a DEDICATED thread per simulation.

    ...
  8. Rajesh, I have compared your setup with mine,...

    Rajesh,

    I have compared your setup with mine, and it's quite similar, eg:


    <bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
    ...
  9. Is it possible to give a custom scope to a direct channel? (no subscriber issue)

    Hello,

    I have the following requirement:
    - each simulation must run on a dedicated thread (which must be the same thread for all consecutive simulations with the same id)

    Therefore I have...
  10. Thanks, I might take a look at a more robust...

    Thanks, I might take a look at a more robust solution, as proposed by you. My first concern, and why I did it this way, was to make something very straightforward for the developers who create the...
  11. Thanks for your explanation. I eventually fixed...

    Thanks for your explanation. I eventually fixed it by using that splitter and the nullChannel.
  12. One could workaround this by adding following...

    One could workaround this by adding following code:



    <integration:channel id="channel-one"/>
    <integration:channel id="channel-two"/>

    <integration:payload-type-router...
  13. smaller testcase to reproduce the issue

    In the meanwhile, I have created a testcase which learned me a lot.

    First I had defined 1 bean, exceptionThrowingServiceActivator , as service-activator to the input-channel.

    The output was, as...
  14. I am using version 2.0.4 This is (part of) my...

    I am using version 2.0.4

    This is (part of) my configuration (+ slightly adapted to obfuscate some classnames + added some comments)

    Actually what happens is :

    an xmpp message is received
    ...
  15. When is a message considered as 'delivered'

    Hello,

    I have got the following flow:

    An incoming FooMessage. This message is immediately put on a separate thread



    <integration:channel id="xmppInboundCanonical">
    ...
  16. Something worth investigating: If I use a...

    Something worth investigating:

    If I use a singleton-scoped bean, the value of this in the constructor of Foo is :


    com.acme.Foo@bb3f71

    If I use a different scoped bean, e.g....
  17. Indeed, I am using an ApplicationContext :). I...

    Indeed, I am using an ApplicationContext :). I think there is nothing more I can do now than to turn on tracing and try to find out why the system acts this way. If I'll find the solution I will...
  18. Okay, I thought about an issue with myCustomScope...

    Okay, I thought about an issue with myCustomScope too. But why does it then also fail with prototype scope?

    Note: I will instantly compare my scope with the Request/Session scope.
  19. @PostConstruct not executed when bean in other @Scope than "singleton"

    Hello,

    I have the following issue. Does anyone has a clue what is going wrong?


    @Component
    @Scope( "myCustomScope" )
    public class Foo {

    static {
  20. Why does my exception gets wrapped within a AggregateMessageDeliveryException?

    Hello,

    I have a @ServiceActivator which throws an exception, e.g. throw new FooException( "Invalid foo", e );

    I have following configuration:


    <integration:exception-type-router...
  21. The solution

    Oleg, thanks for helping me!

    I have filed a jira improvement request INT-2073 (which can be found here).

    The solution was indeed to replace the outbound-channel-adapter

    ...
  22. Nope, I (think I) am not using it as a...

    Nope, I (think I) am not using it as a serviceActivator.

    This is part of my integration-config.xml:



    <xmpp:xmpp-connection id="xmppConnection" user="${user}" password="${password}"...
  23. Howto override the ChatMessageSendingMessageHandler in the xmpp namespace

    Hello,

    I would like to inject a custom ChatMessageSendingMessageHandler implementation, which copies some custom headers to the outgoing xmpp smack message's properties.

    I have created the...
Results 1 to 23 of 23