[转帖]JCA Tuxedo Adapter with jboss_MQ, Tuxedo及OLTP讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MQ, Tuxedo及OLTP讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 3902 | 回复: 0   主题: [转帖]JCA Tuxedo Adapter with jboss        下一篇 
tangbao@.@
注册用户
等级:新兵
经验:67
发帖:62
精华:0
注册:2011-7-21
状态:离线
发送短消息息给tangbao@.@ 加好友    发送短消息息给tangbao@.@ 发消息
发表于: IP:您无权察看 2014-11-3 15:26:39 | [全部帖] [楼主帖] 楼主

hi, i need some help to configure the jca tuxedo adapter in jboss application server.
i downloaded the rar file
modify ra.xml , i used com.oracle.tuxedo.adapter.TuxedoFBCResourceAdapter as a resource adapter, and in this file i configured my remote access to the tuxedo serv.
the ra.xml
<?xml version="1.0" encoding="UTF-8"?>
<connector xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
version="1.5">
<display-name>Tuxedo JCA Adapter</display-name>
<vendor-name>Oracle</vendor-name>
<eis-type>Tuxedo</eis-type>
<resourceadapter-version>11gR1(11.1.1.2.1)</resourceadapter-version>
<license>
<description>Tuxedo SALT license</description>
<license-required>false</license-required>
</license>
<resourceadapter>
<resourceadapter-class>com.oracle.tuxedo.adapter.TuxedoFBCResourceAdapter</resourceadapter-class>
<outbound-resourceadapter>
<connection-definition>
<managedconnectionfactory-class>com.oracle.tuxedo.adapter.spi.TuxedoFBCManagedConnectionFactory</managedconnectionfactory-class>
<config-property>
<config-property-name>dmconfig</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>/opt/jboss-5.1.0/server/default/deploy/dmconfig.xml</config-property-value>
</config-property>
<config-property>
<description>factory-wise AUTOTRAN setting, default to false, overrides adapter-wise setting</description>
<config-property-name>autoTran</config-property-name>
<config-property-type>java.lang.Boolean</config-property-type>
</config-property>
<config-property>
<description>factory-wise Failure Reply Exception setting, default to true, overrides adapter-wise setting</description>
<config-property-name>throwFailureReplyException</config-property-name>
<config-property-type>java.lang.Boolean</config-property-type>
</config-property>
<config-property>
<description>factory-wise application managed transaction or AUTOTRAN time out, overrides adapter-wise setting</description>
<config-property-name>appManagedLocalTxTimeout</config-property-name>
<config-property-type>java.lang.Integer</config-property-type>
</config-property>
<config-property>
<description>connection factory or pool name, this is required if XA or local application managed
transaction is required</description>
<config-property-name>connectionFactoryName</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<config-property>
<description>application password in either clear text or cipher text using com.oracle.tuxedo.tools.EncryptPassword tool</description>
<config-property-name>applicationPassword</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<config-property>
<description>local access point specification of the format //hostname:port/domainId=DOMAINID</description>
<config-property-name>localAccessPointSpec</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<config-property>
<description>factory-wise SSL to configure whether mutual authentication is required, default to false</description>
<config-property-name>mutualAuthenticationRequired</config-property-name>
<config-property-type>java.lang.Boolean</config-property-type>
</config-property>
<config-property>
<description>factory-wise SSL for configuring identity key store file name, must be configured if SSL is desired</description>
<config-property-name>identityKeyStoreFileName</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<config-property>
<description>factory-wise SSL setting for private key alias used in the key store, must be configured if SSL is desired</description>
<config-property-name>privateKeyAlias</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<config-property>
<description>factory-wise trusted key store file name, must be configured if SSL is desired</description>
<config-property-name>trustedKeyStoreFileName</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<config-property>
<description>factory-wise password for identityKeyStore in clear text</description>
<config-property-name>identityKeyStorePassPhrase</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<config-property>
<description>factory-wise password for privateKeyAlias in clear text</description>
<config-property-name>privateKeyAliasPassPhrase</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<config-property>
<description>factory-wise password for trustedKeyStore in clear text</description>
<config-property-name>trustedKeyStorePassPhrase</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<config-property>
<description>factory-wise RemoteAccessPoint specification of the format //hostname:port/domainId=DOMAINID</description>
<config-property-name>remoteAccessPointSpec</config-property-name>
<config-property-type>java.lang.String</config-property-type>
**<config-property-value>//192.168.1.111:2222</config-property-value>**
</config-property>
<config-property>
<description>factory-wise allow anonymous access to Tuxedo, default to false</description>
<config-property-name>rapAllowAnonymous</config-property-name>
<config-property-type>java.lang.Boolean</config-property-type>
</config-property>
<config-property>
<description>factory-wise application key value for anonymous user, default to -1</description>
<config-property-name>rapDefaultApplicationKey</config-property-name>
<config-property-type>java.lang.Integer</config-property-type>
</config-property>
<config-property>
<description>factory-wise application key fully qualified class name for AppKey generator</description>
<config-property-name>rapApplicationKeyClass</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<config-property>
<description>factory-wise custom application key parameter</description>
<config-property-name>rapApplicationKeyClassParam</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<config-property>
<description>factory-wise session profile block timeout value, default to 60000 milliseconds</description>
<config-property-name>spBlockTime</config-property-name>
<config-property-type>java.lang.Integer</config-property-type>
</config-property>
<config-property>
<description>factory-wise whether allows interoperate with 6.5 Tuxedo Domain, default to false</description>
<config-property-name>spInteroperate</config-property-name>
<config-property-type>java.lang.Boolean</config-property-type>
</config-property>
<config-property>
<description>factory-wise security setting, legal values: NONE, DM_PW, APP_PW</description>
<config-property-name>spSecurity</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<config-property>
<description>factory-wise credential propagation policy, either LOCAL or GLOBAL</description>
<config-property-name>spCredentialPolicy</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<config-property>
<description>factory-wise number of seconds that session waits between automatic connection establishment,
default to 60 seconds. A value of 0 disabled connection retry</description>
<config-property-name>spRetryInterval</config-property-name>
<config-property-type>java.lang.Long</config-property-type>
</config-property>
<config-property>
<description>factory-wise maximum number of times adapter will try to establish a session connection to
remote Tuxedo access point. Default value is Long.MAX_VALUE.</description>
<config-property-name>spMaxRetries</config-property-name>
<config-property-type>java.lang.Long</config-property-type>
</config-property>
<config-property>
<description>factory-wise compression threshold, default to Integer.MAX_VALUE</description>
<config-property-name>spCompressionLimit</config-property-name>
<config-property-type>java.lang.Integer</config-property-type>
</config-property>
<config-property>
<description>factory-wise minimum encryption strength requirement, legal values are 0, 40, 56, 128, 256.
Default value is 0.</description>
<config-property-name>spMinEncryptBits</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<config-property>
<description>factory-wise maximum encryption strength requirement, legal values are 0, 40, 56, 128, 256.
Default value is 128.</description>
<config-property-name>spMaxEncryptBits</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<config-property>
<description>factory-wise the maximum idle time before sending application level keep alive.
It is measured in millisecond, and roundup to seconds. Default value is 0.</description>
<config-property-name>spKeeyAlive</config-property-name>
<config-property-type>java.lang.Long</config-property-type>
</config-property>
<config-property>
<description>factory-wise how long adapter will wait for acknowledgement before adapter decides the
connection already lost. Measurement in millisecond, and its default value is 10 seconds.
A value of 0 will disable the wait, and thus will not close the connection</description>
<config-property-name>spKeepAliveWait</config-property-name>
<config-property-type>java.lang.Long</config-property-type>
</config-property>
<config-property>
<description>factory-wise valid Tuxedo service names in a comma-separated list. If not specified then
default import will be used and will grant all service request to remote Tuxedo domain</description>
<config-property-name>impResourceName</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
<connectionfactory-impl-class>com.oracle.tuxedo.adapter.cci.TuxedoConnectionFactory</connectionfactory-impl-class>
<connection-interface>javax.resource.cci.Connection</connection-interface>
<connection-impl-class>com.oracle.tuxedo.adapter.cci.TuxedoJCAConnection</connection-impl-class>
</connection-definition>
<!--
<transaction-support>NoTransaction</transaction-support>
<transaction-support>LocalTransaction</transaction-support>
-->
<transaction-support>XATransaction</transaction-support>
<authentication-mechanism>
<authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
<credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
</authentication-mechanism>
<reauthentication-support>false</reauthentication-support>
</outbound-resourceadapter>
</resourceadapter>
</connector>
the jboss descriptor is :
<resource-adapter>
<archive>
com.oracle.tuxedo.TuxedoAdapter.rar
</archive>
<transaction-support>
NoTransaction
</transaction-support>
<connection-definitions>
<connection-definition class-name="com.oracle.tuxedo.adapter.spi.TuxedoFBCManagedConnectionFactory"
jndi-name="eis/TuxedoConnectionFactory" enabled="true" use-java-context="false"/>
</connection-definitions>
</resource-adapter>
my java code is :
ctx = new InitialContext();
cf = (ConnectionFactory) ctx.lookup("eis/TuxedoConnectionFactory");
but the lookup always throws a NamingException.
the wls ubb conf in tuxedo is
# /WS servers
WSL ################## WSL
SRVGRP=GWSL SRVID=3010 ################## WSL
RESTART=Y GRACE=0 MAXGEN=2 ################## WSL
CLOPT="-A -o /test/WORK/tux/log/stdoutT8SBA -e /test/WORK/tux/log/stderrT8SBA -- -n //192.168.1.111:2222 -p 25700 -P 25899 -m 1 -M 50 -x 40 -K both" ################## WSL
what am i doing wrong???


    thanks中间件技术社区-Tuxedo论坛

Hi,
My guess is that the adapter is not successfully getting initialized and that is why you can't find it in the JNDI tree. Is there anything in the JBoss log file(s)?
Also, you seem to be operating under the impression that the WSL process on the Tuxedo side has something to do with this. It doesn't. The Tuxedo WSL is the Workstation Listener, which has to do with workstation clients, and nothing to do with the JCA adapter. The Tuxedo JCA Adapter uses the Domains protocol and needs a Tuxedo domain gateway (GWTDOMAIN) and associated servers (DMADM, GWADM) configured on the Tuxedo side. Please look at the Domains configuration portion of the Tuxedo documentation to see how to define a DMCONFIG file and add the associated servers to the Tuxedo UBBCONFIG file.
Regards,
Todd Little
Oracle Tuxedo Chief Architect
Hi, Todd, thanks for your reply. i modified my ubbconfig and dmconfig in tuxedo. but still have NamingException with my jca.
i added this lines to ubbconfig:
# Domain groups
LDMGRPdomtux GRPNO=2001 LMID=domtux
Gdomtux GRPNO=2002 LMID=domtux
# Domain servers
DMADM
SRVGRP=LDMGRPdomtux SRVID=2010
GWADM
SRVGRP=Gdomtux SRVID=2020
GWTDOMAIN
SRVGRP=Gdomtux SRVID=2030 REPLYQ=N
dmconfig:
Gdomtux GWGRP=Gdomtux
TYPE=TDOMAIN
DOMAINID="Gdomtux"
BLOCKTIME=10
MAXDATALEN=56
MAXRDOM=89
DMTLOGDEV="/tmp/DMTLOG"
AUDITLOG="/tmp/AUDITLOG"
DMTLOGNAME="DMTLOG_Gdomtux"
*DM_REMOTE_DOMAINS
TDOM1 TYPE=TDOMAIN
DOMAINID="TDOM1"
*DM_TDOMAIN
Gdomtux NWADDR="//192.168.1.1:8888" //(this is where tuxedo is installed, i choose any port , is this right????)
NWDEVICE="/dev/tcp"
TDOM1 NWADDR="//192.168.1.2:9999" // this is where my jboss is installef, i choose any port, is this right????
NWDEVICE="/dev/tcp"
i compiled with
dmloadcf -y dmconfig
tmloadcf -y ubbconfig
and reboot, and started correctly, this a part of boot log :
exec DMADM -A :
process id=27114 ... Started.
exec GWADM -A :
process id=27115 ... Started.
exec GWTDOMAIN -A :
process id=27116 ... Started.
i made changes in ra.xml in jca to link to tuxedo's domainId
<config-property>
<description>factory-wise RemoteAccessPoint specification of the format //hostname:port/domainId=DOMAINID</description>
<config-property-name>remoteAccessPointSpec</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>//192.168.1.1:8888/domainId=Gdomtux</config-property-value>
</config-property>
note : i choose TuxedoFBCResourceAdapter so, i updated ra.xml with the property value, the dmconfig.xml is ignored, is this right???
thanks for your help!
You are using Factory-based configuration for the adapter, but you are using client-side only style adapter configuration. Change to use TuxedoClientSideResourceAdapter as the adapter class. There are 3 styles of configuraiton and all 3 of them requires ra.xml per spec; however, dmconfig style uses an element in ra.xml to specify where the XML based configuration file is, the client-side only styles put everything in the ra.xml, and factroy-based style requires user to configure the per connection connection-factory.
user730249 , thanks for your clarification, i changed my ra.xml to TuxedoClientSideResourceAdapter and the adapter seems start fine, but still cant lookup de jndi name, the jca tuxedo adapter log is :
2/3/12:5:42:50 PM:10:TRACE[,]/TJAService/startTJAService/110/TC Service started...
2/3/12:5:42:50 PM:10:TRACE[,]INFO: TC Configuration Helper instantiated!
2/3/12:5:42:50 PM:10:TRACE[,]INFO: TC Outbound routing service instantiated!
2/3/12:5:42:50 PM:10:TRACE[,]INFO: TC Task Manager instantiated!
2/3/12:5:42:50 PM:10:TRACE[,TJASecurityService]> ()
2/3/12:5:42:50 PM:10:TRACE[,TJASecurityService]< return(10)
2/3/12:5:42:50 PM:10:TRACE[,]INFO: TC security service instantiated!
2/3/12:5:42:50 PM:10:INFO[,createRemoteAccessPoints#2]TJA_0201:INFO: RemoteAccessPoint Gdomtux created.
2/3/12:5:42:50 PM:10:INFO[,createDefaultSessionProfile]TJA_0188:INFO: Use Local to create default session profile property CredentialPolicy.
2/3/12:5:42:50 PM:10:INFO[,createDefaultSessionProfile]TJA_0188:INFO: Use 0 to create default session profile property MinEncryptBits.
2/3/12:5:42:50 PM:10:INFO[,createDefaultSessionProfile]TJA_0188:INFO: Use 128 to create default session profile property MaxEncryptBits.
2/3/12:5:42:50 PM:10:INFO[,createDefaultSessionProfile]TJA_0188:INFO: Use NONE to create default session profile property Security.
2/3/12:5:42:50 PM:10:INFO[,createDefaultSessionProfile]TJA_0188:INFO: Use ON_STARTUP to create default session profile property ConnectionPolicy.
2/3/12:5:42:50 PM:10:INFO[,createDefaultSessionProfile]TJA_0188:INFO: Use 60,000 to create default session profile property BlockTime.
2/3/12:5:42:50 PM:10:INFO[,createDefaultSessionProfile]TJA_0188:INFO: Use false to create default session profile property Interoperate.
2/3/12:5:42:50 PM:10:INFO[,createDefaultSessionProfile]TJA_0188:INFO: Use 3,600,000 to create default session profile property RetryInterval.
2/3/12:5:42:50 PM:10:INFO[,createDefaultSessionProfile]TJA_0188:INFO: Use 7,208,000 to create default session profile property MaxRetries.
2/3/12:5:42:50 PM:10:INFO[,createDefaultSessionProfile]TJA_0188:INFO: Use 2,147,483,647 to create default session profile property CompressionLimit.
2/3/12:5:42:50 PM:10:INFO[,createDefaultSessionProfile]TJA_0188:INFO: Use 0 to create default session profile property KeepAlive.
2/3/12:5:42:50 PM:10:INFO[,createDefaultSessionProfile]TJA_0188:INFO: Use 10,000 to create default session profile property KeepAliveWait.
2/3/12:5:42:50 PM:10:INFO[,createDefaultSessionProfile]TJA_0189:INFO: Default session profile created.
2/3/12:5:42:50 PM:10:TRACE[,]INFO: TC Transaction service instantiated!
2/3/12:5:42:50 PM:10:INFO[,createDefaultSession]TJA_0193:INFO: Default session created between LocalAccessPoint jcaTux and RemoteAccessPoint Gdomtux.
2/3/12:5:42:50 PM:10:TRACE[,registerImportedService]> (*)
2/3/12:5:42:50 PM:10:INFO[,]factory = null
2/3/12:5:42:50 PM:10:INFO[,]name = *
2/3/12:5:42:50 PM:10:INFO[,]iname = *
2/3/12:5:42:50 PM:10:TRACE[,registerImportedService]register Default Import
2/3/12:5:42:50 PM:10:TRACE[,registerImportedService]< return(30) rtg com.oracle.tuxedo.adapter.config.RouteGroup@5043cf
2/3/12:5:42:50 PM:10:WARN[,registerClientSideResourceAdapter]TJA_0158efault global imported service activated!
2/3/12:5:42:50 PM:17:TRACE[,][/ScheduledReconnect/run/Gdomtux
2/3/12:5:42:50 PM:17:TRACE[,]]/ScheduledReconnect/run/10/return
2/3/12:5:42:50 PM:18:TRACE[,][/CeInvoke/com.oracle.tuxedo.adapter.config.DMSession@10c3515
2/3/12:5:42:50 PM:18:TRACE[,]]/CeInvoke/10
2/3/12:5:42:50 PM:18:TRACE[,][/dsession(0)/get_sess_sec/
2/3/12:5:42:50 PM:18:TRACE[,]]/dsession(0)/get_sess_sec/10/0
2/3/12:5:42:50 PM:18:TRACE[,][/dsession(0)/set_dom_target_name/Gdomtux
2/3/12:5:42:50 PM:18:TRACE[,]]/dsession(0)/set_dom_target_name/10/
2/3/12:5:42:50 PM:18:TRACE[,][/dsession(0)/set_local_domain_name/jcaTux
2/3/12:5:42:50 PM:18:TRACE[,]]/dsession(0)/set_local_domain_name/10
2/3/12:5:42:50 PM:18:TRACE[,][/dsession(0)/setRemoteDomainId/Gdomtux
2/3/12:5:42:50 PM:18:TRACE[,]]/dsession(0)/setRemoteDomainId/10
2/3/12:5:42:50 PM:18:TRACE[,setKeepAlive]> () com.oracle.tuxedo.adapter.tdom.ResponderSession@0
2/3/12:5:42:50 PM:18:TRACE[,setKeepAlive]disable keepalive
2/3/12:5:42:50 PM:18:TRACE[,setKeepAlive]kas = 0, kaExpTime = 0
2/3/12:5:42:50 PM:18:TRACE[,setKeepAlive]kaws = -1, kawExpTime = 0
2/3/12:5:42:50 PM:18:TRACE[,setKeepAlive]kaState = -1
2/3/12:5:42:50 PM:18:TRACE[,setKeepAlive]< (10) return
2/3/12:5:42:50 PM:18:TRACE[,][/dsession(0)/setKeepAliveWait/10000
2/3/12:5:42:50 PM:18:TRACE[,]]/dsession(0)/setKeepAliveWait/10/
2/3/12:5:42:50 PM:18:TRACE[,][/dsession/setAppKey/1
2/3/12:5:42:50 PM:18:TRACE[,]]/dsession/setAppKey/10/
2/3/12:5:42:50 PM:18:TRACE[,][/dsession/setAllowAnonymous/true
2/3/12:5:42:50 PM:18:TRACE[,]]/dsession/setAllowAnonymous/10/
2/3/12:5:42:50 PM:18:TRACE[,][/dsession/setDfltAppKey/65536
2/3/12:5:42:50 PM:18:TRACE[,]]/dsession/setDfltAppKey/10/
2/3/12:5:42:50 PM:18:TRACE[,][/dsession(0)/setEncryptionFlags/39
2/3/12:5:42:50 PM:18:TRACE[,]]/dsession(0)/setEncryptionFlags/10
2/3/12:5:42:50 PM:18:TRACE[,tpinit]>(weblogic.wtc.jatmi.TPINIT@4d90c1)
2/3/12:5:42:50 PM:18:TRACE[,tpinit]tpinfo.usrname: jcaTux
2/3/12:5:42:50 PM:18:TRACE[,do_connect]> (jcaTux) com.oracle.tuxedo.adapter.tdom.ResponderSession@0
2/3/12:5:42:50 PM:18:TRACE[,][/dsession(0)/alloc_TDOM/14/null
2/3/12:5:42:50 PM:18:TRACE[,]]/dsession(0)/alloc_TDOM/10/TDOM:GWNW_XATMI_PRE_NW_ACALL1:1:-1:0:0:0:0:0:0:0:50:null
2/3/12:5:42:50 PM:18:TRACE[,][/write_dom_65_tfmh/jcaTux/10/134217727
2/3/12:5:42:50 PM:18:TRACE[,]/write_dom_65_tfmh/header calculated_size=524
2/3/12:5:42:50 PM:18:TRACE[,]/write_dom_65_tfmh/opcode calculated_size=540
2/3/12:5:42:50 PM:18:TRACE[,]/write_dom_65_tfmh/total calculated_size=540
2/3/12:5:42:50 PM:18:TRACE[,][/TpeOut/writeTuxedoMessage/
2/3/12:5:42:50 PM:18:TRACE[,]/TpeOut/writeTuxedoMessage/myNeedToWrite=32/myMark=32/myProtocol=10/parsedMetahdr=false
2/3/12:5:42:50 PM:18:TRACE[,]]/TpeOut/writeTuxedoMessage/70/
2/3/12:5:42:50 PM:18:TRACE[,]/tfmh/write_dom_65_tfmh/TdomTcb=TDOM:GWNW_XATMI_PRE_NW_ACALL1:1:-1:0:0:0:0:0:0:0:50:null
2/3/12:5:42:50 PM:18:TRACE[,][/TpeOut/writeTuxedoMessage/
2/3/12:5:42:50 PM:18:TRACE[,]/TpeOut/writeTuxedoMessage/myNeedToWrite=540/myMark=540/myProtocol=10/parsedMetahdr=true
2/3/12:5:42:50 PM:18:TRACE[,]*]/TpeOut/writeTuxedoMessage/40/
2/3/12:5:42:50 PM:18:TRACE[,]]/write_dom_65_tfmh/110/0/
2/3/12:5:42:50 PM:18:TRACE[,][/read_dom_65_tfmh/10
2/3/12:5:42:50 PM:18:TRACE[,][/TpeIn/readTuxedoMessage/true
2/3/12:5:42:50 PM:18:TRACE[,]/TpeIn/readTuxedoMessage/myNeedToRead=32/myOffset=0/myMark=0/myProtocol=10/parsedMetahdr=false
2/3/12:5:42:50 PM:18:TRACE[,]/TpeIn/readTuxedoMessage/toRead=32
2/3/12:5:42:51 PM:18:TRACE[,]]/TpeIn/readTuxedoMessage/90/false
2/3/12:5:42:51 PM:18:TRACE[,][/TpeIn/readTuxedoMessage/true
2/3/12:5:42:51 PM:18:TRACE[,]/TpeIn/readTuxedoMessage/myNeedToRead=32/myOffset=0/myMark=0/myProtocol=10/parsedMetahdr=false
2/3/12:5:42:51 PM:18:TRACE[,]]/TpeIn/readTuxedoMessage/30/false
2/3/12:5:42:51 PM:18:TRACE[,][/TpeIn/readTuxedoMessage/true
2/3/12:5:42:51 PM:18:TRACE[,]/TpeIn/readTuxedoMessage/myNeedToRead=32/myOffset=0/myMark=0/myProtocol=10/parsedMetahdr=false
2/3/12:5:42:51 PM:18:TRACE[,]]/TpeIn/readTuxedoMessage/30/false
2/3/12:5:42:51 PM:18:TRACE[,][/TpeIn/readTuxedoMessage/true
2/3/12:5:42:51 PM:18:TRACE[,]/TpeIn/readTuxedoMessage/myNeedToRead=32/myOffset=0/myMark=0/myProtocol=10/parsedMetahdr=false
2/3/12:5:42:51 PM:18:TRACE[,]]/TpeIn/readTuxedoMessage/30/false
2/3/12:5:42:51 PM:18:TRACE[,do_connect]<* return(310) TPException.TPESYSTEM:java.io.EOFException
2/3/12:5:42:51 PM:18:TRACE[,tpinit]<* return(40) uid = 0
2/3/12:5:42:51 PM:18:TRACE[,][/dsession(0)/_dom_drop/
2/3/12:5:42:51 PM:18:TRACE[,]]/dsession(0)/_dom_drop/20/
2/3/12:5:42:51 PM:18:TRACE[,][/ScheduledReconnect/connectingFailure/session =__sess_0_0
2/3/12:5:42:51 PM:18:TRACE[,]]/ScheduledReconnect/connectingFailure/10/return
the ULOG tuxedo log :
174250.test.com.ar!GWTDOMAIN.32461.1113131328.0: LIBGWT_CAT:1073: ERROR: Unable to obtain remote domain id (jcaTux) information from shared memory
174250.test.com.ar!GWTDOMAIN.32461.1113131328.0: LIBGWT_CAT:1509: ERROR: Error occurred during security negotiation - closing connection
my descriptor is :
<resource-adapter>
<archive>
com.oracle.tuxedo.TuxedoAdapter.rar
</archive>
<transaction-support>
NoTransaction
</transaction-support>
<connection-definitions>
<connection-definition class-name="com.oracle.tuxedo.adapter.spi.TuxedoManagedConnectionFactory"
jndi-name="eis/TuxedoConnectionFactory" enabled="true" use-java-context="false"/>
</connection-definitions>
</resource-adapter>
my ra.xml is :
<?xml version="1.0" encoding="UTF-8"?>
<connector xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
version="1.5">
<display-name>Tuxedo JCA Adapter verso</display-name>
<vendor-name>Oracle</vendor-name>
<eis-type>Tuxedo</eis-type>
<resourceadapter-version>11gR1(11.1.1.2.1)</resourceadapter-version>
<license>
<description>Tuxedo SALT license</description>
<license-required>false</license-required>
</license>
<resourceadapter>
<resourceadapter-class>com.oracle.tuxedo.adapter.TuxedoClientSideResourceAdapter</resourceadapter-class>
<config-property>
<config-property-name>traceLevel</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>100000</config-property-value>
</config-property>
<config-property>
<config-property-name>xaAffinity</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>true</config-property-value>
</config-property>
<config-property>
<config-property-name>appManagedLocalTxTimeout</config-property-name>
<config-property-type>java.lang.Integer</config-property-type>
<config-property-value>15</config-property-value>
</config-property>
<config-property>
<description>local access point specification of the format
//hostname:port/domainId=DOMAINID</description>
<config-property-name>localAccessPointSpec</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>//192.168.1.1:9999/domainId=jcaTux</config-property-value>
</config-property>
<config-property>
<description>factory-wise RemoteAccessPoint specification of the
format //hostname:port/domainId=DOMAINID</description>
<config-property-name>remoteAccessPointSpec</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>//192.168.1.1:8888/domainId=Gdomtux</config-property-value>
</config-property>
<config-property>
<config-property-name>rapAllowAnonymous</config-property-name>
<config-property-type>java.lang.Boolean</config-property-type>
<config-property-value>true</config-property-value>
</config-property>
<config-property>
<config-property-name>rapDefaultApplicationKey</config-property-name>
<config-property-type>java.lang.Integer</config-property-type>
<config-property-value>65536</config-property-value>
</config-property>
<config-property>
<config-property-name>spRetryInterval</config-property-name>
<config-property-type>java.lang.Long</config-property-type>
<config-property-value>3600000</config-property-value>
</config-property>
<config-property>
<config-property-name>spMaxRetries</config-property-name>
<config-property-type>java.lang.Long</config-property-type>
<config-property-value>7208000</config-property-value>
</config-property>
<outbound-resourceadapter>
<connection-definition>
<managedconnectionfactory-class>com.oracle.tuxedo.adapter.spi.TuxedoManagedConnectionFactory</managedconnectionfactory-class>
<!-- The following is the list of properties that user can use them to
configure connection pool or connection factory. User must either configure
localAccessPointSpec or connectionFactoryName if transaction is used. These
property described here is serving as template, user should not configure
them here, instead user should configure them either through WebSphere console
or weblogic-ra.xml side file. -->
<connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
<connectionfactory-impl-class>com.oracle.tuxedo.adapter.cci.TuxedoConnectionFactory</connectionfactory-impl-class>
<connection-interface>javax.resource.cci.Connection</connection-interface>
<connection-impl-class>com.oracle.tuxedo.adapter.cci.TuxedoJCAConnection</connection-impl-class>
</connection-definition>
<!-- <transaction-support>NoTransaction</transaction-support> <transaction-support>LocalTransaction</transaction-support> -->
<transaction-support>XATransaction</transaction-support>
<authentication-mechanism>
<authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
<credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
</authentication-mechanism>
<reauthentication-support>false</reauthentication-support>
</outbound-resourceadapter>
</resourceadapter>
</connector>
but when i try to lookup de jndi name i get namingException.
do you see where is my mistake?
thanks to all
Christian
Edited by: 907185 on 06/02/2012 03:58
Edited by: 907185 on 06/02/2012 06:05
thanks user730249 and todd for your reply , my dmconfig was wrong , doesnt match the local domain in jca with the remote domain in tuxedo.


--转自
北京联动北方科技有限公司




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论