Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I wonder if this createDynamicProxy call is correct? #2

Open
wpdebruin opened this issue Feb 22, 2018 · 0 comments
Open

I wonder if this createDynamicProxy call is correct? #2

wpdebruin opened this issue Feb 22, 2018 · 0 comments

Comments

@wpdebruin
Copy link

https://github.com/lmajano/messaging-polyglot/blob/master/consumer/cfml/start.cfm

I wonder if the new lib.Consumer is correct? Since you placed the Consumer in models, should it not be
new models.Consumer? In your commandbox code Consumer is in the lib dir.
// Prepare a push consumer
consumerTask = createDynamicProxy(
new lib.Consumer( channel ),
[ "com.rabbitmq.client.Consumer" ]
);

And additionaly, I was wondering if I could integrate something like this in Coldbox.
I want to announce an interception directly in my consumer, so I can handle every incoming message in an interceptor. For this I need to inject my Consumer with the coldbox interceptor service.

So let's say
instead of new lib.Consumer(channel) a getInstance("Consumer").init(channel) or
better ?? without wirebox new lib.Consumer(channel, myInterceptorService) ??

By the way, nice work with RabbitMQ!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant