This tutorial assumes that yous already bring glassfish installed together with running on your local machine.
1.) To depository fiscal establishment fit the default setting of your JMS broker navigate to Configurations->server-config->Java Message Service->JMS Hosts->default_JMS_host.
2.) Create JMS Connection Factory yesteryear navigating to Resources->JMS Resources->Connection Factories. For representative if nosotros desire to add together a jms queue mill click New together with fill upward the ff details:
Pool Name: ipielPool
Resource Type: javax.jms.QueueConnectionFactory
Leave everything equally default
Click Ok
3.) Then usage a JMS queue yesteryear navigating to Resources->JMS Resources->Destination Resources, guide New together with fill upward the ff details:
JNDI Name: jms/IpielQueue
Physical goal name: jmsIpielQueue
Resource Type: javax.jms.Queue
Leave everything equally default
Click Ok
Now yous bring successfully setup a JMS Queue broker which yous tin role to mail together with have jms message (both synchronous together with asynchronous).
Synchronous - require to manually telephone telephone the QueueReceiver.receive method
Asynchronous - requires message listener
How To Setup Ready Jms Mill As Well As Queue Inwards Glassfish
Jumat, 13 Juli 2018
0 komentar:
Please comment if there are any that need to be asked.