glassfish v3 asadmin 如何在连接工厂上指定 XA
这在 GFV2 中有效:
$AS_HOME/bin/asadmin \ --主机 $AS_ADMIN_HOST \ --用户 $AS_ADMIN_USER \ --端口 $AS_ADMIN_PORT \ 创建 jms 资源 \ --restype javax.jms.QueueConnectionFactory \ --描述 XA\ 队列\ 连接\ 工厂\ --属性名称=myXAQueueConnectionFactory:SupportsXA=true \ jms/myXAQueueConnectionFactory
但 SupportsXA=true 不再起作用。也许我在 GFV3 手册中找不到它,也无法通过我们的朋友 Google 找到它:how tospecify XA transactionality using asadmin to configure the factory?那里有人知道怎么做吗?
This worked in GFV2:
$AS_HOME/bin/asadmin \
--host $AS_ADMIN_HOST \
--user $AS_ADMIN_USER \
--port $AS_ADMIN_PORT \
create-jms-resource \
--restype javax.jms.QueueConnectionFactory \
--description XA\ Queue\ Connection\ Factory \
--property Name=myXAQueueConnectionFactory:SupportsXA=true \
jms/myXAQueueConnectionFactory
But the SupportsXA=true no longer works. Maybe I can't find it in the GFV3 manuals, nor can I find it via our friend Google: how to specify XA transactionality using asadmin to configure the factory? Anybody out there know how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
--property ...:transaction-support=XATransaction:...
这似乎是我所需要的。作品。通过搜索文档或谷歌没有找到。通过查看domain.xml 文件并对语法进行有根据的猜测来推断它。
现在我正在尝试找出什么属性名称/值对按照我想要的方式设置连接验证属性。
问题已变成:GFV3 连接工厂的完整 asadmin 语法和属性设置是什么。
--property ...:transaction-support=XATransaction:...
This seems to be what I needed. Works. Did not find by search of documentation or by Google. Deduced it by looking at the domain.xml file and taking educated guess at syntax.
Am now trying to figure out what property name/value pair sets the connection-validation property the way I want it.
Question has morphed to: what's the full asadmin syntax and property setting for GFV3 connection factories.