Skip to content

Documentation fix for 'Message Channels with Hazelcast' #9230

Closed
@KaVeKa

Description

@KaVeKa

Expected Behavior

The code snippet in the hazelcast.adoc documentation (section Message Channels with Hazelcast) should provide the correct way of instantiating the QueueChannel.

@Bean
PollableChannel hazelcastQueueChannel(HazelcastInstance hazelcastInstance) {
    return new QueueChannel(hazelcastInstance.getQueue("springIntegrationQueue"));
}

Current Behavior

There is some code in the code snippet that should not be there. (Message<?>>)

@Bean
PollableChannel hazelcastQueueChannel(HazelcastInstance hazelcastInstance) {
    return new QueueChannel(hazelcastInstance.Message<?>>getQueue("springIntegrationQueue"));
}

Context
By looking at the documentation and deciding which message channel approach I would be using, I found this code snippet to be weird-looking and seemingly incorrect.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions