-
Notifications
You must be signed in to change notification settings - Fork 49
feat: add JMS template for RabbitMQ #263
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -53,6 +53,17 @@ private JmsTemplateListModel() { | |||||||||||||||||||
| properties.setJndiConnectionFactoryName("java:/ConnectionFactory"); | ||||||||||||||||||||
| templates.put("JBoss Messaging / MQ", properties); | ||||||||||||||||||||
|
|
||||||||||||||||||||
| properties = new JmsConnectorProperties(); | ||||||||||||||||||||
| properties.setUseJndi(false); | ||||||||||||||||||||
| properties.setConnectionFactoryClass("com.rabbitmq.jms.admin.RMQConnectionFactory"); | ||||||||||||||||||||
| properties.getConnectionProperties().put("brokerURL", "failover:(tcp://localhost:5672)?maxReconnectAttempts=0"); | ||||||||||||||||||||
| properties.getConnectionProperties().put("closeTimeout", "15000"); | ||||||||||||||||||||
| properties.getConnectionProperties().put("useCompression", "no"); | ||||||||||||||||||||
| properties.setUsername("guest"); | ||||||||||||||||||||
| properties.setPassword("guest"); | ||||||||||||||||||||
| properties.setDestinationName("myqueue"); | ||||||||||||||||||||
|
Comment on lines
+59
to
+64
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Similar to my other comment, I don't think username, password, and destinationName are meant to be saved in the template. I believe the connection properties are not valid RabbitMQ properties. They appear to be copied from the ActiveMQ template. |
||||||||||||||||||||
| templates.put("RabbitMQ", properties); | ||||||||||||||||||||
|
|
||||||||||||||||||||
| templateNames.addAll(templates.keySet()); | ||||||||||||||||||||
| readOnlyTemplateNames.addAll(templates.keySet()); | ||||||||||||||||||||
| } | ||||||||||||||||||||
|
|
||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think these fields were meant to be saved in a template. They are already clearly labeled in the GUI, are specific to a particular connection, and could contain sensitive data.