基本步骤:
1、创建连接工厂(connection factory)
2、创建连接,设置属性()
3、启动连接connection
4、根据连接connection创建session
5、创建目的地destination
6、创建producter或者创建message,并且设置destination
或者创建consumer,或者注册message listener
7、发送或者接受信息message
8、关闭资源。
基本步骤:
1、创建连接工厂(connection factory)
2、创建连接,设置属性()
3、启动连接connection
4、根据连接connection创建session
5、创建目的地destination
6、创建producter或者创建message,并且设置destination
或者创建consumer,或者注册message listener
7、发送或者接受信息message
8、关闭资源。