https://github.com/treblereel/erraijmschat
https://github.com/treblereel/erraijmschat
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/treblereel/erraijmschat
- Owner: treblereel
- License: apache-2.0
- Created: 2015-02-10T15:32:08.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-26T20:47:23.000Z (over 10 years ago)
- Last Synced: 2025-02-05T06:44:32.422Z (4 months ago)
- Language: Java
- Size: 180 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Errai-JMS plugin for 3.1.1
You see a simple demo, just put any text into the textbox and press the Send button, your message will be sent to the topic/outboundTopic. Afterwards the system will catch that message and put it in to topic/inboundTopic, you will see that message on the right textbox, because we are also subscribed to that topic to show you that ability. You also can open several browser windows to determine that all clients can receive your message.
That plugin allows users to subscribe to the Jms Topic and send messages to any topic. From the client side it works like the original Errai MessageBus messaging, you only need to subscribe to the specific subject or send to some subject, for instance, if you want to send a message to “topic/inboundTopic” you should send a message to this subject, and vise versa. One thing to note, at this time Errai-Jms only supports Topics, not Queues, but if someone needs, i can add this functionality. All necessary properties are kept in ErraiApp.properties. To add Jms support you only need to
```java
@Inject
JMSBindingProvider jMSBindingProvider;
```
to your application.This settings depends on your App server setup:
```java
jndi.naming.provider.url=http-remoting://127.0.0.1:8080
jndi.naming.security.principal=quickstartUser
jndi.naming.security.credentials=quickstartPwd1!
jndi.naming.factory.initial=org.jboss.naming.remote.client.InitialContextFactory
jndi.connection.factory=jms/RemoteConnectionFactory
```
Outbound query:
```java
jms.outboundExample.topic=jms/topic/outboundTopic
jms.outboundExample.send=true
```
Inbound query:
```java
jms.inboundExample.topic=jms/topic/inboundTopic
jms.inboundExample.send=false
```