JCA Adapter and WebSphere 5.1
Ok
I give up ... how do you set up the Kodo JCA adapter for WebSphere 5.1 for
the enterprise version? I seem to always get an error if I try to access it.
My resource adapter is bound to the name "kodo" and I can see the name in
the JNDI dump :
"(top)/nodes/Eleanor/servers/server1/kodo KodoJDO"
Yet when I try to access the adapter through the CarBean example (JNDI name
"kodo" specified in the properties file) I always get an error:
[02/02/04 15:38:38:494 GMT] 3a66b2c2 ConnectionFac I J2CA0122I: Resource
reference kodo could not be located, so default values of the following are
used: [Resource-ref settings]
res-auth: 1 (APPLICATION)
res-isolation-level: 0 (TRANSACTION_NONE)
res-sharing-scope: false (UNSHAREABLE)
res-resolution-control: 999 (undefined)
[Other attributes]
isCMP1_x: false (not CMP1.x)
isJMS: false (not JMS)
What do i do wrong?
Cheers
Sven Erik
Stijn-
Are you sure that Kodo is successfully bound into JNDI? If you
configured it using JCA (i.e., by deploying the kodo.rar), did you I
successfully configure the adapter as described in the installation
instructions?
What is the complete exception and stack trace that you receive when you
try to look it up?
In article <[email protected]>, Stijn Van den Enden wrote:
Hi,
sorry for my late reply ...
This is the excerpt of the ejb DD, where the resource ref is defined:
<resource-ref id="ResourceRef_1073662418157">
<description></description>
<res-ref-name>jdo/PersistenceManagerFactory</res-ref-name>
<res-type>javax.resource.cci.ConnectionFactory</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
Kind regards,
Stijn
Sven Erik Knop wrote:
Hallo Stijn
Could you give me an example of how to add the resource ref to the
deployment descriptor? I am not familiar with J2EE.
Cheers
Sven Erik
"Stijn Van den Enden" <[email protected]> wrote in message
news:[email protected]...
Hi Sven,
the best way to look up the PersistenceManagerFactory is through the
JNDI ENC, as Global JNDI names are error prone. So in order to get a
handle to the PersistenceManagerFactory use the ENC e.g.
java:comp/env/jdo/PersistenceManagerFactory in your code, add a
ResourceRef for jdo/PersistenceManagerFactory to the DD, and map it in
the DD to kodo (Websphere will do the mapping to the right JNDI context
automatically).
Cheers,
Stijn
Sven Erik Knop wrote:
This is Kodo 3.0.2 by the way
"Sven Erik Knop" <[email protected]> wrote in message
news:[email protected]...
Ok
I give up ... how do you set up the Kodo JCA adapter for WebSphere 5.1
for
the enterprise version? I seem to always get an error if I try to accessit.
My resource adapter is bound to the name "kodo" and I can see the name
in
the JNDI dump :
"(top)/nodes/Eleanor/servers/server1/kodo KodoJDO"
Yet when I try to access the adapter through the CarBean example (JNDIname
"kodo" specified in the properties file) I always get an error:
[02/02/04 15:38:38:494 GMT] 3a66b2c2 ConnectionFac I J2CA0122I: Resource
reference kodo could not be located, so default values of the followingare
used: [Resource-ref settings]
res-auth: 1 (APPLICATION)
res-isolation-level: 0 (TRANSACTION_NONE)
res-sharing-scope: false (UNSHAREABLE)
res-resolution-control: 999 (undefined)
[Other attributes]
isCMP1_x: false (not CMP1.x)
isJMS: false (not JMS)
What do i do wrong?
Cheers
Sven Erik
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com
Similar Messages
-
JMS adapter and Websphere MQ availability issue
Hi,
My customer uses XI 3.0 and JMS adapter to communicate with WS MQ.
They have several MQ Server instances in separate physical machines, for availability purpose.
the intention is, in case of MQ Server failover, the secondary MQ Server try to connect with the XI-JMS adapter.
The question is:
Is this mechanism possible in an automatic way or is it needed some manual process or configuration of JMS adapter?. Also, is there any alternative more recommendable from the SAP XI adapter point of view?
Thanks in advance,Thanks Bhavesh and Satya,
Very helpful your answers.
I have another question related with XI and JMS adapter. The scenario is several MQ nodes in separate physical machines sending and receiving messages to/from the same XI-JMS adapter (centralized).
Is this supported by XI-JMS adapter confguration? If not, does anybody knows an alternative way to implement it?
Thanks again in advance, -
Custom JCA Adapter / Application Error - Message.setErrorInfo() ??
Hi All,
I was looking for how to create a sensible Application Error in a custom JCA adapter and was excited to find the following page in the PCK info on Adapter Development:
http://help.sap.com/saphelp_nw04/helpdata/en/3c/53d6409ff68631e10000000a1550b0/frameset.htm
The part of interest being:
<i>
The following methods are available to enable you to read error information in the form of an ErrorInfo object from the message, or to set the error information in a message.
Message.getErrorInfo()
Message.setErrorInfo()
If the synchronous response message is an application-error message instead of an application response, it must call setErrorInfo(myErrorInfo) for receiver adapters.</i>
However, I can't find these methods, or indeed the "ErrorInfo" object anywhere in the AF classes - does anyone know it's whereabouts? Or is the above page just out of date? If so, what is the new approach for creating Application Level Errors in a custom JCA Resource adapter (not Exceptions - I can do that)
Many thanks,
ChrisWell, you can get the latest jars from the SMP (Service Marketplace) directly. These jars are in the <i>XI ADAPTER FRAMEWORK CORE 3.0</i> component. Basically, http://service.sap.com/swdc then Support Packages and Patches->SAP NetWeaver->SAP NETWEAVER->SAP NETWEAVER 04->Entry by Component->J2EE Adapter Engine (PI/XI). There you'll see the XI ADAPTER FRAMEWORK CORE 3.0 link.
OR here is the direct link for the SP19 (latest) of <a href="https://smpdl.sap-ag.de/~swdc/012002523100009492712006D/SAPXIAFC19P_4-20000272.sca?_ACTION=DL_DIRECT">SAPXIAFC19P_4-20000272.sca</a>
Within this is <i>aii_af_lib.sda</i> which has the jars. You can use winzip or winrar to open .sca, .sda files.
Regards,
Jin -
Tuxedo JCA Adapter Configuraton
Hello,
I'm trying to configure Tuxedo JCA Adapter and have got troubles with making bdmconfig.xml file.
First, my enviroments are that Tuxedo 11gR1 and WAS 7 are installed on separate machines.
And sample Tuxedo service is bankapp service using oracle 10g and I got this service source from OTN site.
In configuring bdmconfig.xml file, I'm not sure the meanings of the elements of configuration.
What are the meanings of LocalAccessPoint and RemoteAccessPoint ?
I don'n know how I should provide what values to the both elements.
If I want to invoke remote tuxedo services from WAS resources, sholud I provide both local and remote access points ?
What I know is that ip addresses of two machines and IPCKEY value in ubbconfig file of Tuxedo sample service.
please help me to configure tuxedo jca adapter ......
thanks in advance.
Edited by: user11286352 on 2010. 12. 5 오후 10:14
Edited by: user11286352 on 2010. 12. 5 오후 10:30hello
as I told in previous message, I checked all configurations on both tuxedo side and WAS side, but I don't know why 2phase commit didn't work on tuxedo service.
accoding to advice of Todd, I changed the value of MAXGTT to 300 and value of TLOGSIZE to 300, but same error message appeared.
once I invoke EJB include source code calling Tuxedo service, after a few minutes idle time it returned error message about XAException as below
so, anybody help me to complete 2pc test on both WAS and Tuxedo ?
my configurations on both WAS side and Tuxedo side are as below, could you review those configurations and let me know what the problem is ?
1. error message in WAS
[10. 12. 12 20:23:31:953 KST] 0000003f XATransaction E J2CA0027E: An exception occurred while invoking prepare on an XA Resource Adapter from dataSource eis/TuxedoConnectionFactory
, within transaction ID {XidImpl: formatId(57415344), gtrid_length(36), bqual_length(54), data(0000012cda48e831000000010000000b461221f787e745f56f38c9f063cc171b45a604800000012cda48e831000000010000000b461221f787e745f56f38c9f063cc171b45a60480000000010000000000000000000000000002)} : javax.transaction.xa.XAException
at com.oracle.tuxedo.adapter.tdom.TuxedoJCAResource.internalPrepare(TuxedoJCAResource.java:786)
at com.oracle.tuxedo.adapter.tdom.TuxedoJCAResource.prepare(TuxedoJCAResource.java:662)
at com.ibm.ejs.j2c.XATransactionWrapper.prepare(XATransactionWrapper.java:1136)
at com.ibm.tx.jta.JTAXAResourceImpl.prepare(JTAXAResourceImpl.java:225)
at com.ibm.tx.jta.RegisteredResources.prepareResource(RegisteredResources.java:1157)
at com.ibm.tx.jta.RegisteredResources.distributePrepare(RegisteredResources.java:1413)
at com.ibm.tx.jta.TransactionImpl.prepareResources(TransactionImpl.java:1438)
at com.ibm.ws.tx.jta.TransactionImpl.stage1CommitProcessing(TransactionImpl.java:549)
at com.ibm.tx.jta.TransactionImpl.processCommit(TransactionImpl.java:978)
at com.ibm.tx.jta.TransactionImpl.commit(TransactionImpl.java:913)
at com.ibm.ws.tx.jta.TranManagerImpl.commit(TranManagerImpl.java:377)
at com.ibm.tx.jta.TranManagerSet.commit(TranManagerSet.java:161)
at com.ibm.ejs.csi.TranStrategy.commit(TranStrategy.java:927)
at com.ibm.ejs.csi.TranStrategy.postInvoke(TranStrategy.java:230)
at com.ibm.ejs.csi.TransactionControlImpl.postInvoke(TransactionControlImpl.java:570)
at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java:4558)
at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java:4372)
at ejbs.EJSRemoteStatelessSDeposit_7b45137b.performDeoposit(EJSRemoteStatelessSDeposit_7b45137b.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:612)
at java.security.AccessController.doPrivileged(AccessController.java:251)
at com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:608)
at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1165)
at $Proxy49.performDeoposit(Unknown Source)
at ejbs._SDeposit_Stub.performDeoposit(_SDeposit_Stub.java:271)
at com.ibm.minny.test.TestEJB.eDepost(TestEJB.java:52)
at com.ibm._jsp._Tester._jspService(_Tester.java:97)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1661)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:937)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:239)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:340)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3826)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
2. message in Tuxedo
201339.kr028211!GWTDOMAIN.19551.1123871040.0: gtrid x0 x4d04ac7b x1: LIBGWT_CAT:1256: WARN: Unable to create local txid in shared memory for transaction recovery
3. ubbconfig on Tuxedo
*RESOURCES
IPCKEY 80999
UID 505
GID 505
PERM 0660
DOMAINID TDOM
MAXACCESSERS 40
MAXSERVERS 35
MAXSERVICES 75
MAXCONV 10
MASTER SITE1
SCANUNIT 10
MODEL SHM
LDBAL Y
MAXGTT 300
*MACHINES
tuxhost LMID=SITE1
TUXDIR="/opt/oracle/product/tuxedo11gR1"
APPDIR="/home/tuxedo/bankapp"
ENVFILE="/home/tuxedo/bankapp/ENVFILE"
TLOGDEVICE="/home/tuxedo/bankapp/TLOG"
TLOGNAME=TLOG
TUXCONFIG="/home/tuxedo/bankapp/tuxconfig"
ULOGPFX="/home/tuxedo/bankapp/ULOG"
TLOGSIZE=300
*GROUPS
DMADMGRP LMID=SITE1 GRPNO=4
GWTGROUP LMID=SITE1 GRPNO=5
DEFAULT: TMSNAME=TMS_ORACLE TMSCOUNT=2 LMID=SITE1
BANKB1 GRPNO=1
OPENINFO="Oracle_XA:Oracle_XA+Acc=P/tuxdemo1/tuxdemo1+SesTm=60+DbgFl=15+LogDir=."
BANKB2 GRPNO=2
OPENINFO="Oracle_XA:Oracle_XA+Acc=P/tuxdemo2/tuxdemo2+SesTm=60+DbgFl=15+LogDir=."
BANKB3 GRPNO=3
OPENINFO="Oracle_XA:Oracle_XA+Acc=P/tuxdemo3/tuxdemo3+SesTm=60+DbgFl=15+LogDir=."
*SERVERS
DEFAULT: RESTART=Y MAXGEN=5 REPLYQ=Y CLOPT="-A"
TLR SRVGRP=BANKB1 SRVID=1 CLOPT="-A -- -T 100 -e 1000.00"
TLR SRVGRP=BANKB2 SRVID=2 CLOPT="-A -- -T 500 -e 1000.00"
TLR SRVGRP=BANKB3 SRVID=3 CLOPT="-A -- -T 800 -e 1000.00"
XFER SRVGRP=BANKB1 SRVID=4
XFER SRVGRP=BANKB2 SRVID=5
XFER SRVGRP=BANKB3 SRVID=6
ACCT SRVGRP=BANKB1 SRVID=7
ACCT SRVGRP=BANKB2 SRVID=8
ACCT SRVGRP=BANKB3 SRVID=9
BAL SRVGRP=BANKB1 SRVID=10
BAL SRVGRP=BANKB2 SRVID=11
BAL SRVGRP=BANKB3 SRVID=12
BTADD SRVGRP=BANKB1 SRVID=13
BTADD SRVGRP=BANKB2 SRVID=14
BTADD SRVGRP=BANKB3 SRVID=15
AUDITC SRVGRP=BANKB1 SRVID=16 CONV=Y MIN=1 MAX=10 RQADDR="auditc"
BALC SRVGRP=BANKB1 SRVID=27
BALC SRVGRP=BANKB2 SRVID=28
BALC SRVGRP=BANKB3 SRVID=29
DMADM SRVGRP=DMADMGRP SRVID=1001 REPLYQ=N RESTART=Y GRACE=0
GWADM SRVGRP=GWTGROUP SRVID=1002 REPLYQ=N RESTART=Y GRACE=0
GWTDOMAIN SRVGRP=GWTGROUP SRVID=1003 RQADDR="GWTGROUP" REPLYQ=N RESTART=Y GRACE=0
*SERVICES
DEFAULT: LOAD=50 AUTOTRAN=Y TRANTIME=30
WITHDRAWAL PRIO=50 ROUTING=ACCOUNT_ID
DEPOSIT PRIO=50 ROUTING=ACCOUNT_ID
TRANSFER PRIO=50 ROUTING=ACCOUNT_ID
INQUIRY PRIO=50 ROUTING=ACCOUNT_ID
CLOSE_ACCT PRIO=40 ROUTING=ACCOUNT_ID
OPEN_ACCT PRIO=40 ROUTING=BRANCH_ID
BR_ADD PRIO=20 ROUTING=BRANCH_ID
TLR_ADD PRIO=20 ROUTING=BRANCH_ID
ABAL PRIO=30 ROUTING=b_id
TBAL PRIO=30 ROUTING=b_id
ABAL_BID PRIO=30 ROUTING=b_id
TBAL_BID PRIO=30 ROUTING=b_id
ABALC_BID PRIO=30 ROUTING=b_id
TBALC_BID PRIO=30 ROUTING=b_id
*ROUTING
ACCOUNT_ID FIELD=ACCOUNT_ID
BUFTYPE="FML"
RANGES="10000-49999:BANKB1,
50000-79999:BANKB2,
80000-109999:BANKB3"
BRANCH_ID FIELD=BRANCH_ID
BUFTYPE="FML"
RANGES="1-4:BANKB1,
5-7:BANKB2,
8-10:BANKB3"
b_id FIELD=b_id
BUFTYPE="VIEW:aud"
RANGES="1-4:BANKB1,
5-7:BANKB2,
8-10:BANKB3"
4. bdmconfig in Tuxedo
*DM_LOCAL
LOCAL1 GWGRP=GWTGROUP
TYPE=TDOMAIN
ACCESSPOINTID="TDOM"
BLOCKTIME=30
CONNECTION_POLICY=ON_STARTUP
MAXRETRY=5
RETRY_INTERVAL=100
*DM_REMOTE
REMOT1 TYPE=TDOMAIN
ACCESSPOINTID="HDOM"
*DM_EXPORT
DEPOSIT LACCESSPOINT=LOCAL1
CONV=N
RNAME="DEPOSIT"
*DM_TDOMAIN
LOCAL1 NWADDR="//192.168.123.100:4051"
REMOT1 NWADDR="//192.168.123.119:65431"
5. bdmconfig in WAS
<?xml version="1.0" encoding="UTF-8"?>
<TuxedoConnector>
<LocalAccessPoint name="HDOM">
<NetworkAddress>//192.168.123.119:65431</NetworkAddress>
</LocalAccessPoint>
<RemoteAccessPoint name="TDOM">
<NetworkAddress>//192.168.123.100:4051</NetworkAddress>
</RemoteAccessPoint>
<SessionProfile name="profile_1">
<Security>NONE</Security>
<BlockTime>10000</BlockTime>
<Interoperate>false</Interoperate>
<ConnectionPolicy>ON_STARTUP</ConnectionPolicy>
<ACLPolicy>local</ACLPolicy>
<CredentialPolicy>local</CredentialPolicy>
<RetryInterval>5</RetryInterval>
<MaxRetries>10</MaxRetries>
<CompressionLimit>1000000</CompressionLimit>
<MinEncryptBits>0</MinEncryptBits>
<MaxEncryptBits>0</MaxEncryptBits>
<KeepAlive>100</KeepAlive>
<KeepAliveWait>200</KeepAliveWait>
</SessionProfile>
<Session name="session_1">
<LocalAccessPointName>HDOM</LocalAccessPointName>
<RemoteAccessPointName>TDOM</RemoteAccessPointName>
<ProfileName>profile_1</ProfileName>
</Session>
<Import name="DEPOSIT">
<RemoteName>DEPOSIT</RemoteName>
<SessionName>session_1</SessionName>
<LoadBalancing>RoundRobin</LoadBalancing>
</Import>
<Export name="TOLOWER">
<RemoteName>TOLOWER</RemoteName>
<SessionName>session_1</SessionName>
<Type>EJB</Type>
<Source>tuxedo.services.TolowerHome</Source>
</Export>
</TuxedoConnector>
Edited by: user11286352 on 2010. 12. 12 오전 5:51
Edited by: user11286352 on 2010. 12. 14 오후 2:51
Edited by: user11286352 on 2010. 12. 14 오후 2:56
Edited by: user11286352 on 2010. 12. 14 오후 2:57 -
OSB JCA Adapter performance issue
Hi,
We have to use OSB as an ESB at integration level which need to populate the result from local services e.g. from DB as well as from external services. Actually we need to use switch [split -join] and connector [individual proxy for individual services] features.
As for external services, we do not have questions but to access data from local system e.g. Database, whether it will be a performance issue in OSB, in case if we are using JCA Adapter and exposing it as a service? Because some one objected that accessing JCA layer in OSB will be a performance issue.
If some one can shed the light on it, it will be great.
Thanks & Regards,
V DHi,
Have a look at the Developer Guide for OSB... Oracle JCA Adapter for Database is supported... Have a look at the limitations, there's nothing mentioning performance...
http://docs.oracle.com/cd/E23943_01/dev.1111/e15866/jca.htm#i1110405
Also have a look at the following blogs... One of them even suggests that jca performs better than xquery with fn-bea:execute-sql...
http://victor-jan.blogspot.com.au/2012/06/osb-fn-beaexecute-sql-vs-jca-dbadapter.html
http://reallifeserviceorientedarchitecture.blogspot.com.au/2011/09/oracle-service-bus-osb-and-jca-adapters.html
If you are still in doubt open a SR with Oracle Support...
Hope this helps...
Cheers,
Vlad -
HI all,
Can you please guide me how to configure JCA adapter and why this adapter is used in SAP XI?
Thanks in advance,
NAVEENHi,
Check the default adapters which will be available in normal..
http://help.sap.com/saphelp_nwpi71/helpdata/EN/45/f71862c98d3482e10000000a1553f6/frameset.htm
Even on PI 7.1 there is no adapter as such JCA..but how it is listing in your server makes me dumb..
Rajesh -
How to send msgs to tuxedo and read from tuxedousing jca adapter at jboss6
Hi i had only Tuxedo ip and port number.i have to send messsages to tuxedo server and read from tuxedo server i did below changes at ra.xml and dmconfig.xml
what are the services i have to use plz give me reply .Thanks in advance.
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</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.TuxedoResourceAdapter</resourceadapter-class>
<config-property>
<config-property-name>traceLevel</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>80000</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>keyFileName</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value></config-property-value>
</config-property>
<config-property>
<config-property-name>dmconfig</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>D:\jboss-6.1.0.Final\server\mpayv4_dev\deploy\dmconfig.xml</config-property-value>
</config-property>
<outbound-resourceadapter>
<connection-definition>
<managedconnectionfactory-class>com.oracle.tuxedo.adapter.spi.TuxedoManagedConnectionFactory</managedconnectionfactory-class>
<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>
<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>
==========================
and dmconfig.xml is
<?xml version="1.0" encoding="UTF-8"?>
<TuxedoConnector>
<LocalAccessPoint name="local_1">
<AccessPointId>dev_scurtis</AccessPointId>
<NetworkAddress>//ip:port</NetworkAddress>
</LocalAccessPoint>
<RemoteAccessPoint name="e1tst_tdtux01">
<AccessPointId>e1tst_tdtux01</AccessPointId>
<NetworkAddress>//ip:port</NetworkAddress>
</RemoteAccessPoint>
<Import name="TOUPPER">
<RemoteName>TOUPPER</RemoteName>
<SessionName>session_1</SessionName>
<LoadBalancing>RoundRobin</LoadBalancing>
</Import>
<Import name="ECHO">
<RemoteName>ECHO</RemoteName>
<SessionName>session_1</SessionName>
<LoadBalancing>RoundRobin</LoadBalancing>
</Import>
</TuxedoConnector>Hi todd Thanks for your reply
iam using below java code in jsp ,iam not getting the response plz suggest me any changes
<%@ page import ="javax.naming.Context,
javax.naming.InitialContext,
javax.naming.NamingException,
javax.ejb.CreateException,
javax.resource.cci.ConnectionFactory,
javax.resource.cci.Connection,
javax.resource.cci.Interaction,
javax.resource.cci.InteractionSpec,
javax.resource.ResourceException,
weblogic.wtc.jatmi.TPException,
weblogic.wtc.jatmi.TPReplyException,
com.oracle.tuxedo.adapter.TuxedoReplyException,
com.oracle.tuxedo.adapter.cci.TuxedoStringRecord,
com.oracle.tuxedo.adapter.cci.TuxedoInteractionSpec" %>
<html>
<head>
</head>
<body>
<h1>Tuxedo Test</h1>
<%
System.out.println("Check Connection JNDI");
String result="";
result=Toupper("harikrishna");
%>
<%!
public String Toupper(String string_to_convert) throws TPException, TuxedoReplyException
Context ctx;
ConnectionFactory cf;
Connection c;
Interaction ix;
TuxedoStringRecord inRec;
TuxedoStringRecord outRec;
TuxedoInteractionSpec ixspec;
try {
ctx = new InitialContext();
cf = (ConnectionFactory)ctx.lookup("java:jca/tuxedo");
c = cf.getConnection();
ix = c.createInteraction();
ixspec = new TuxedoInteractionSpec();
ixspec.setFunctionName("TOUPPER");
ixspec.setInteractionVerb(InteractionSpec.SYNC_SEND_RECEIVE);
inRec = new TuxedoStringRecord();
outRec = new TuxedoStringRecord();
inRec.setRecordName("MyInputData");
outRec.setRecordName("MyOutputData");
outRec.setString(string_to_convert);
ix.execute(ixspec, inRec, outRec);
ix.close();
c.close();
String returned_data = outRec.getString();
return returned_data;
catch (NamingException ne) {
throw new TPException(TPException.TPESYSTEM,
"Could not get TuxedoConnectionFactory"+ne);
catch (ResourceException re) {
throw new TPException(TPException.TPESYSTEM,
"ResourceException occurred, reason: " + re);
%>
</body>
</html>
=======================================
In tuxedo.lod at my jboo6/bin iam getting this informatin
e property Security.
4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use ON_STARTUP to create default session profile property ConnectionPolicy.
4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use 60,000 to create default session profile property BlockTime.
4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use false to create default session profile property Interoperate.
4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use 60 to create default session profile property RetryInterval.
4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use 9,223,372,036,854,775,807 to create default session profile property MaxRetries.
4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use 2,147,483,647 to create default session profile property CompressionLimit.
4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use 0 to create default session profile property KeepAlive.
4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use 10,000 to create default session profile property KeepAliveWait.
4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0189:INFO: Default session profile created.
4/30/12:2:59:09 AM:11:INFO[,]factory = null
4/30/12:2:59:09 AM:11:INFO[,]name = TOUPPER
4/30/12:2:59:09 AM:11:INFO[,]iname = TOUPPER
4/30/12:2:59:09 AM:11:INFO[,]rsvc == null, create new ArrayList with key= TOUPPER
4/30/12:2:59:09 AM:11:INFO[,]factory = null
4/30/12:2:59:09 AM:11:INFO[,]name = ECHO
4/30/12:2:59:09 AM:11:INFO[,]iname = ECHO
4/30/12:2:59:09 AM:11:INFO[,]rsvc == null, create new ArrayList with key= ECHO
4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSession]TJA_0193:INFO: Default session created between LocalAccessPoint local_1 and RemoteAccessPoint e1tst_tdtux01. -
JCA Adapter matchManagedConnection and BPEL
We have a implementation of the J2CA Adapter to integrate an Oracle EIS application with other Oracle Applications. From the perspective of our JCA Adapter (to the EIS), information arrives via BPEL code (which in turn gets it from other Oracle Applications). The information from BPEL signifies what activity to do etc.
We have implemented the interface ManagedConnectionFactory.matchManagedConnections, within which we are supposed return a matching ManagedConnection with respect to the incoming Connection request. However, I am unaware on what basis this matching should be done . The ManagedConnection implementation is directly associated with a connection to the EIS. Thus, for activities such as below, the same ManagedConnection from the matchManagedConnections should be returned for all the operations until a commit is invoked. How do I do it? Based on what criteria?
BPEL -> open transaction -> JCA -> open transaction -> EIS
BPEL -> activity (say insert operation) -> JCA -> insert operation -> EIS
BPEL -> commit transaction -> JCA -> commit transaction -> EIS
Is there some BPEL partnerLink property which can be used to determine that for the current Connection request a particular ManagedConnection has to be returned? ConnectionRequestInfo contains only username/password and hence is useless in this scenario.
The App Server is OC4J 10.1.3.1.
Thanks,
PC
Edited by: user770775 on May 3, 2010 4:02 AMHi,
Goto the URL:
http://abhishek-soablog.blogspot.com
See the entry of September 2007. It will be helpful for all the begineers.
Cheers,
Abhi... -
DB Adapter and jca transport: monitoring and management
Greetings.
We have faced with several issues with DB Adapter and JCA transport proxy. We use pooling DB adapter. As the result - the pooling stop. I would like to know:
1. Is the way to monitor pooling threads of DB Adapter in OSB? I would like to answer the question "does it work?".
2. Is the way to restart pooling in JCA Proxy service? The way we found is re-save OSB configuration in OSB Console, bu it is terrible.
I use:
ActivationSpec="oracle.tip.adapter.db.DBActivationSpec"
DescriptorName="DescriptorName"
QueryName="QueryName"
PollingStrategyName="LogicalDeletePollingStrategy"
MarkReadFieldName="IsLoad" MarkReadValue="Y"
MarkReservedValue="R${IP[-3]}" MarkUnreadValue="N"
SequencingFieldName="ID" MaxRaiseSize="5"
MaxTransactionSize="unlimited" PollingInterval="180"
NumberOfThreads="1" UseBatchDestroy="false"
ReturnSingleResultSet="true"
MappingsMetaDataURL="MappingsMetaDataURL.xml" />
Oracle Service Bus Version: [WebLogic Oracle Service Bus 10.3]
Regards,
Boris
Edited by: Boris Ilyushonak on 14-Mar-2011 05:221. Is the way to monitor pooling threads of DB Adapter in OSB? I would like to answer the question "does it work?". OSB provides OOB support for monitoring -
http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/consolehelp/monitoring.html#wp1008658
http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/operations/index.html
2. Is the way to restart pooling in JCA Proxy service? The way we found is re-save OSB configuration in OSB Console, bu it is terrible.You may restart/redeploy DBAdapter in Weblogic Admin Console and polling should start. Ideally poller transports does not stop polling. Let us know the complete detail if you experienced such issue.
Regards,
Anuj -
How to install Oracle AS JMS Adapter on Websphere (or any J2EE server)
Hi,
We have a requirement in which the client wants to connect to the OC4J JMS running in SOA Suite (Oracle Application Server 10.1.3.4).
They are using Websphere. We are exploring ways by which they can connect from Websphere application to Oracle AS OC4J JMS.
One option is - deploy the Oracle AS JMS adapter in Websphere and then use it to connect to the OC4J JMS.
Please let us know if this is the right approach. Also, if so, kindly point to the documentation regarding how to install the JMS adapter on 3rd party J2EE servers such as websphere.
Rgds,
AmitWhile searching the knowledge base I found the following note, which seems to suggest that Oracle Adapters are not deployble on other J2EE application servers:
Support For Jca Adapter In Other Application Servers Like Jboss [ID 1114738.1]
==============================================
From the statements in documentation it may be implied that jca adapter should be deployable on any application server that is compliant with j2ee/jca. Please note that this cannot be implied at this time and jca adapter cannot be deployed on other application servers than OAS in BRM 731 due to some technical constraints. So currently we can support only OAS and not JBoss or another application server , in BRM 731. The documentation will be updated accordingly to reflect this. -
JCA adapter for MySQL or databases
Hi,
does anyone knows where to get an free/open source JCA adapter for MySQL or databases?
JurajI remember extending the ResourceAdapter helper classes from IBM's websphere server.
In most cases your application server would provide a generic class that you extend to add support for more databases.
In weblogic the resourceadapter deployed on the server includes support for mysql already and so is the case for JBoss.
If you are using any other server, then try to see how JBoss have implemented their resourceadapter...ResourceAdapters are deployed on the app server as RAR files -
Problem with DB JCA adapter in Soa suite 11g composite appl
i am testing a simple credit card validation composite with Oracle SOA suite 11g11.1.1.4.0, Jdevloper 11.1.1.3.0 and oracle universal XE DB. I am having an exception given below. I have checked that data source is properly configured and appearing at the right place in JNDI tree. Suggestion like 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/DB/DBconnection. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR) has also been tried result is same
**Any suggestion will greatly appreciated .**
java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'CreditCardDBServiceSelect' failed due to: JCA Binding Component connection issue. JCA Binding Component is unable to create an outbound JCA (CCI) connection. CreditCardValidation:CreditCardDBService [ CreditCardDBService_ptt::CreditCardDBServiceSelect(CreditCardDBServiceSelect_inputParameters,CreditcardsCollection) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510 JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/DB/DBconnection'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/DB/DBconnection. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server Please make sure that the JCA connection factory and any dependent connection factories have been configured with a sufficient limit for max connections. Please also make sure that the physical connection to the backend EIS is available and the backend itself is accepting connections. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:575) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:381) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:298) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.el.parser.AstValue.invoke(Unknown Source) at com.sun.el.MethodExpressionImpl.invoke(Unknown Source) at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53) at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256) at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:765) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:305) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emSDK.license.LicenseFilter.doFilter(LicenseFilter.java:101) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446) at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:41) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.AuditServletFilter.doFilter(AuditServletFilter.java:179) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:203) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.core.model.targetauth.EMLangPrefFilter.doFilter(EMLangPrefFilter.java:158) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.core.app.perf.PerfFilter.doFilter(PerfFilter.java:141) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:542) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111) at java.security.AccessController.doPrivileged(Native Method) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413) at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207) at weblogic.work.ExecuteThread.run(ExecuteThread.java:176) Caused by: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'CreditCardDBServiceSelect' failed due to: JCA Binding Component connection issue. JCA Binding Component is unable to create an outbound JCA (CCI) connection. CreditCardValidation:CreditCardDBService [ CreditCardDBService_ptt::CreditCardDBServiceSelect(CreditCardDBServiceSelect_inputParameters,CreditcardsCollection) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510 JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/DB/DBconnection'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/DB/DBconnection. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server Please make sure that the JCA connection factory and any dependent connection factories have been configured with a sufficient limit for max connections. Please also make sure that the physical connection to the backend EIS is available and the backend itself is accepting connections. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:260) at oracle.sysman.emSDK.webservices.wsdlparser.OperationInfoImpl.invokeWithDispatch(OperationInfoImpl.java:992) at oracle.sysman.emas.model.wsmgt.PortName.invokeOperation(PortName.java:729) at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:569) ... 79 more Caused by: javax.xml.ws.soap.SOAPFaultException: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'CreditCardDBServiceSelect' failed due to: JCA Binding Component connection issue. JCA Binding Component is unable to create an outbound JCA (CCI) connection. CreditCardValidation:CreditCardDBService [ CreditCardDBService_ptt::CreditCardDBServiceSelect(CreditCardDBServiceSelect_inputParameters,CreditcardsCollection) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510 JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/DB/DBconnection'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/DB/DBconnection. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server Please make sure that the JCA connection factory and any dependent connection factories have been configured with a sufficient limit for max connections. Please also make sure that the physical connection to the backend EIS is available and the backend itself is accepting connections. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. at oracle.j2ee.ws.client.jaxws.DispatchImpl.throwJAXWSSoapFaultException(DispatchImpl.java:1012) at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:803) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:235) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:106) at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:256) ... 82 moreHi,
The JNDI Name to use for the service connection is "eis/DB/soademoDatabase".
This Database is a requirement of the course... (Chapter 4 of Getting Started with Oracle SOA Suite 11g R1 - A Hands-On Tutorial). -
SFTP Receiver adapter error Message could not be forwarded to the JCA adapter
Hi Experts,
I'm needing help to solve a problem with an SFTP Receiver interface.
Before I was sending in the adapter configuration as "Direct" in Write Modus (File .txt) and now I changed to "Use temporary file" is occurring this error:
Message
could not be forwarded to the JCA adapter. Reason: 2: Moving
/ABCftp/To_XXX/140187613515701OUT_20140604-100214-622.TXT.tmp to /ABCftp/To_XXX/01OUT_20140604-100214-622.TXT failed.
Files as TXT they are being written to the SFTP however when as TMP returns this error ... would not rule SFTP server to accept different TXT files?
I also changed the namespace to "http://sap.com/xi/XI/System/SFTP" and "http://sap.com/xi/XI/System/File" but is not working.
Any help will be welcome!
tks.Hi Durga and Naveen...
I believe the problem is when the application's legacy system picks up the file because the log file got the "tmp", ie, was not formed yet ...
I changed to a directory without the intervention of the legacy application and it worked.
I'm waiting for the opportunity to modify the legacy system to capture only files with the extension TXT.
Tks All for help! -
File read or delete error in oracle jca adapter is not being caught in java
Hi,
I am using oracle JCA file adapter to read and process file and that jca is being used in OSB. This is working fine. But if the file is not in proper format or file is alredy opened,jca is throwing error on console and control is not going to OSB. I have to log this error in database either by OSB or before OSB using EJB. I have inserted valve in jca for preprocessing. But in the any method of abstract valve , i am not getting able to access the error thrown by jca in case of invalid xml file. If i am able to fetch error message in execute method or any other message of AbstractValve, that error may be sent to database using EJB that not able to get the error message. Please let me know if there is any way to get the errors by jca in java code.In the case of error while reading or deleting file(if file is not in write format or opened or not accessible), control is not going to OSB. from JCA default error handling mechanism is throwing error to console. That's why i tried with inserting valve in jca adapter.
-
Using JCA FTP and File Adapters to transfer files as attachments
I am trying to develop a flow that picks a file up using the JCA FTP adapter and writes it using the JCA File Adapter. I can get this to work using opaqeElement but the issue I have is that the files that will be transferred are regularly very large > 1 GB and using the opaqueElement simply results in a OutOfMemoryException.
Reading the Adapter documentation it seems that Reading/Writing file as an attachment may be an answer. I therefore did the following.
. Created FTP Read and File Write adapters in JDeveloper
. Inmported this in to OEPE
. Created Proxy Service and Business Service and wired them together
The problem i am having is that even though there is no error and the file is being read on the FTP server, the resulting file only contains that attachment details, the file is not a copy of the file that was picked up from the ftp server.
I am assuming that this behaviour is not correct and that the file should be transferred in its entirity. Unfortunatly the documentation is not very detailed and I cannot find any examples on the internet.
Can anyone offer any advice or even better suggest where I can find an example.
Regards
My JCA adapters are as follows:
FileWriteAsAttachmentAdapter_file
<adapter-config name="FileWriteAsAttachmentAdapter" adapter="File Adapter"
wsdlLocation="FileWriteAsAttachmentAdapter.wsdl"
xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
<connection-factory location="eis/HAFileAdapter"/>
<endpoint-interaction portType="Write_ptt" operation="Write">
<interaction-spec className="oracle.tip.adapter.file.outbound.FileInteractionSpec">
<property name="PhysicalDirectory" value="C:\fileserver\download\toprocess"/>
<property name="Append" value="false"/>
<property name="FileNamingConvention" value="attachment_%SEQ%.csv"/>
<property name="NumberMessages" value="1"/>
</interaction-spec>
</endpoint-interaction>
</adapter-config>
FileWriteAsAttachmentAdapter.wsdl
<wsdl:definitions
name="FileWriteAsAttachmentAdapter"
targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/AtatchmentApp/Project1/FileWriteAsAttachmentAdapter"
xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/file/AtatchmentApp/Project1/FileWriteAsAttachmentAdapter"
xmlns:imp1="http://xmlns.oracle.com/pcbpel/adapter/file/attachment/"
xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
>
<plt:partnerLinkType name="Write_plt" >
<plt:role name="Write_role" >
<plt:portType name="tns:Write_ptt" />
</plt:role>
</plt:partnerLinkType>
<wsdl:types>
<schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/attachment/" xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" >
<element name="attachmentElement" >
<complexType>
<attribute name="href" type="string" />
</complexType>
</element>
</schema>
</wsdl:types>
<wsdl:message name="Write_msg">
<wsdl:part name="body" element="imp1:attachmentElement"/>
</wsdl:message>
<wsdl:portType name="Write_ptt">
<wsdl:operation name="Write">
<wsdl:input message="tns:Write_msg"/>
</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>
FtpGetAsAttachmentAdapter_ftp.jca
<adapter-config name="FtpGetAsAttachmentAdapter" adapter="FTP Adapter"
wsdlLocation="FtpGetAsAttachmentAdapter.wsdl"
xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
<connection-factory location="eis/ftp/TlmsHAFtpAdapter"/>
<endpoint-activation portType="Get_ptt" operation="Get">
<activation-spec className="oracle.tip.adapter.ftp.inbound.FTPActivationSpec">
<property name="AsAttachment" value="true"/>
<property name="DeleteFile" value="true"/>
<property name="MinimumAge" value="300"/>
<property name="PhysicalDirectory" value="/ftp/tlms2atas"/>
<property name="Recursive" value="false"/>
<property name="FileModificationTime" value="FileSystem"/>
<property name="PollingFrequency" value="60"/>
<property name="FileType" value="ascii"/>
<property name="IncludeFiles" value=".*[_][0-9][0-9][-][0-9][0-9][-][0-9][0-9][_].*\.csv"/>
<property name="UseHeaders" value="false"/>
<property name="ModificationTimeFormat" value="dd/MM/yyyy HH:mm"/>
</activation-spec>
</endpoint-activation>
</adapter-config>
FtpGetAsAttachmentAdapter.wsdl
<wsdl:definitions
name="FtpGetAsAttachmentAdapter"
targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/AtatchmentApp/Project1/FtpGetAsAttachmentAdapter"
xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/ftp/AtatchmentApp/Project1/FtpGetAsAttachmentAdapter"
xmlns:attach="http://xmlns.oracle.com/pcbpel/adapter/file/attachment/"
xmlns:pc="http://xmlns.oracle.com/pcbpel/"
xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
>
<plt:partnerLinkType name="Get_plt" >
<plt:role name="Get_role" >
<plt:portType name="tns:Get_ptt" />
</plt:role>
</plt:partnerLinkType>
<wsdl:types>
<schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/attachment/" xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" >
<element name="attachmentElement" >
<complexType>
<attribute name="href" type="string" />
</complexType>
</element>
</schema>
</wsdl:types>
<wsdl:message name="Get_msg">
<wsdl:part name="attach" element="attach:attachmentElement"/>
</wsdl:message>
<wsdl:portType name="Get_ptt">
<wsdl:operation name="Get">
<wsdl:input message="tns:Get_msg"/>
</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>System resources are finite and have a threshold limit for processing. The Oracle SOA Suite, dependent on system resources, also has certain size limitations, largely due to the underlying resources beyond which the system cannot process incoming requests.
For example, Oracle JCA Adapters can process large payloads but the Oracle BPEL PM consumes huge memory when processing large payloads, which can cause OutOfMemory conditions and affect the whole system.
You can try File ChunkedRead option.This will read your large CSV file in chunks so chances of memory out will be less. You can define your own chunk size.
This is a feature of Oracle File and FTP Adapters that uses an invoke activity within a while loop to process the target file. This feature enables you to process arbitrarily
large files. See below link's section "4.5.5 Oracle File Adapter ChunkedRead"
http://www.orastudy.com/oradoc/selfstu/fusion/integration.1111/e10231/adptr_file.htm#BABDIABG
Thanks,
Ashu
Maybe you are looking for
-
How to execute an application on the client?
hello we have a client/server architecture, with the Oracle Discoverer running on the clients, and the rest of the applications on the server. How can we run an application that is on the client from an application that is running on the server??
-
Create a Secure Client for a Secure Web Service- is failing
Hi, This is actually with reference to the webservice tutorial.I am trying the example on Create a Secure Client for a Secure Web Service and have followed all the steps mentioned,however I am getting the following error: D:\JDev11gTp\jdk\bin\javaw.e
-
when i try to access the itunes store to buy music, it loads at the top and says connecting to itunes store..then it loads all the way and goes to a blank page. it loads and seems like it is will work, but then goes to a blank page. Why is it doing t
-
We're getting a ExternalClassNotFoundException when refreshing classes in 10g(9.0.4.9) workbench. The classes were recently compiled in JAVA 1.5. We have just migrated from RAD6 using Java 1.4 to RAD8 using Java 1.5. Is there a way to use this verion
-
Dear All, My client has a requirement that he needs two different Order types for both semi finished and Finished product..But we can assign only one order type in plant parameters for MRP...How this can be possible... Please Suggest... Regards, Pawa