JCA Resource Adapters

Hi
I want to use JCA to integrate with Microfocus Cobol. I have the Microfocus resource adapter (mfcobol-notx.rar).
I want to embed this in an application, the JDeveloper help says add the rar to the project and then include the rar in the ear.
I have done this but everytime I edit the EAR deployment profile and tick the rar to include it, it is not included and next time I look the rar is not selected anymore.

Hello Dheeraj,
Check the kba 1942002 Deleting JCA Connection Factory fails with "it is not allowed to
remove the last connection definition". This covers this same topic.
Regards
Mark

Similar Messages

  • Unable to delete JCA resource adapters

    Hi All,
    I am unable to delete resource adapter. Please help
    Here is the error "Deleting JCA Connection Factory: InboundRA_QN1_100 failed due to: Removing or adding connection definition "InboundRA_QN1_100" failed because "It is not allowed to remove the last connection definition.""

    Hello Dheeraj,
    Check the kba 1942002 Deleting JCA Connection Factory fails with "it is not allowed to
    remove the last connection definition". This covers this same topic.
    Regards
    Mark

  • Problems polling two mailboxes using JCA 1.5 - inbound resource adapters.

    Hello,
    I have a requirement to poll two or more mailboxes from my application for unread messages using inbound resource adapters.
    Whilst I'm successful in implementing the above for a single mailbox, I 'm facing problems when tried for 2.
    Here is a snippet of code that worked for single mailbox.
    ejb-jar.xml :
    <ejb-jar version="2.1" 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/ejb-jar_2_1.xsd">
    <display-name>JavaMailMDB</display-name>
    <enterprise-beans>
    <message-driven>
    <display-name>JavaMailMDB</display-name>
    <ejb-name>JavaMailMDB</ejb-name>
    <ejb-class>samples.connectors.mailconnector.ejb.mdb.JavaMailMessageBean</ejb-class>
    <messaging-type>samples.connectors.mailconnector.api.JavaMailMessageListener</messaging-type>
    <transaction-type>Container</transaction-type>
    <activation-config>
    <activation-config-property>
    <activation-config-property-name>serverName</activation-config-property-name>
    <activation-config-property-value>xxx</activation-config-property-value>
    </activation-config-property>
    <activation-config-property>
    <activation-config-property-name>userName</activation-config-property-name>
    <activation-config-property-value>xxx</activation-config-property-value>
    </activation-config-property>
    <activation-config-property>
    <activation-config-property-name>password</activation-config-property-name>
    <activation-config-property-value>xxx</activation-config-property-value>
    </activation-config-property>
    <activation-config-property>
    <activation-config-property-name>protocol</activation-config-property-name>
    <activation-config-property-value>imap</activation-config-property-value>
    </activation-config-property>
    <activation-config-property>
    <activation-config-property-name>folderName</activation-config-property-name>
    <activation-config-property-value>Inbox</activation-config-property-value>
    </activation-config-property>
    <activation-config-property>
    <activation-config-property-name>interval</activation-config-property-name>
    <activation-config-property-value>1</activation-config-property-value>
    </activation-config-property>
    </activation-config>
    <resource-ref>
    <res-ref-name>TheMailSession</res-ref-name>
    <res-type>javax.mail.Session</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    </message-driven>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>JavaMailMDB</ejb-name>
    <method-name>onMessage</method-name>
    <method-params>
    <method-param>javax.mail.Message</method-param>
    </method-params>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    I 'm using four Java classes - ActivationSpecImpl.java,DeliveryThread.java,EndpointConsumer.java,MailServerFolder.java,PollingThread.java.
    I'm newbie to resouce adapters & JCA. Can someone help me how to replicate the functionality for two mailboxes or more.
    Many thanks

    Hema wrote:
    How does it decide which files to pickup ? It will pick up files with modification dates more recent than the last processed file.
    sometimes it picks up all old files from FTP directoryIf it is picking up the same files, probably it is not being able to calculate the modification dates.
    That can be a configuration problem, take a look at this:
    http://docs.oracle.com/cd/E17904_01/integration.1111/e10231/adptr_file.htm#BABECEGD
    Note: We are not deleting already read files from the folderProbably, not a good thing to do. May you can archive them instead.
    Cheers,
    Vlad
    Give points - it is good etiquette to reward an answerer points (5 - helpful; 10 - correct) for their post if they answer your question. If you think this is helpful, please consider giving points

  • BINDING.JCA-12510 JCA Resource Adapter location error in SOA 11g Suite

    Hi,
    I am just testing one simple SOA Application in SOA 11g Suite. Created a SOA Composite Application with one DB Adapter at designtime all worked fine with DB Adapter. But when I deploy the Application on the server I get the following error:
    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/soademoDatabase'. 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/soademoDatabase. 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 ".Do I need to jndi-name in weblogic-ra.xml if so what is the exact location. Any help is appreciated.
    Thanks

    I did but still not able to connect now getting the following error. I went to the Weblogic Console, clicked on deployments, selected DBAdapter, clicked on configuration ,
    and then I don't see outbound configurations instead it shows Outbound Connection Pools, Under Outbound Connection Pools tab I clicked on New and it asked to select Outbound Connection Group I selected the one that was already there (with JNDI eis/DB/SOADemo) and then created my JNDI which was added to the default Outbound Connection Group and in the end it asked to save the Plan.xml which I saved it under a new directory created under soa directory. But still am not able to connect.
    How do I create my own Connection Group as don't want to use the defualt one out there.
    After creating the JNDI Name it asks for saving the Plan.xml file. Where exactly we save this file. Are there any standards.
    Why can't I update any properties when I click on the new JNDI name it takes to Settings for javax.resource.cci.ConnectionFactory --> Outbound Connection Properties but there I see a save buttn but I can't make any changes.
    BINDING.JCA-12563 Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'getCreditValidationSelect' failed due to: Could not create/access the TopLink Session. This session is used to connect to the datastore. Caused by javax.resource.spi.InvalidPropertyException: Missing Property Exception. Missing Property: [DBManagedConnectionFactory.userName]. You may have set a property (in _db.jca) which requires another property to be set also. Make sure the property is set in the interaction (activation) spec by editing its definition in _db.jca. . ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. Is there any documentation that lists all these steps as I couldn't find it anywhere. The guide only talks abou DBAdapter but how to configure etc can't find any info. Any help is appreciated.
    Thanks.

  • JCA Resource Adapter Deployment in OAS 10.1.2

    Hi,
    I have installed the Oracle Application Server 10g Release 2 (10.1.2) (j2ee & web cache) and I want to know how I can deploy a JCA Resource Adapter. Until now I have work with Oracle Application Server 10g Release 3 (10.1.3.1.0) and this version has a section in the administration web (applications->Standalone Resource Adapters) where I can deploy the RA.
    But now, I have to deploy a Resource adapter in OAS 10.1.2 and I don't know how to do it. Any help?
    Thanks,
    Miquel

    Is there any error or warning message in WLS server log related to your adapter? WLS may ignore some properties if found non-fundamental error.

  • JCA resource adapter

    Hi,
    I haven't been able to access enterprise-connector group so I'll post my
    question here.
    Does iPlanet support JCA and can we use resource adapters to connect to SAP
    as stated on http://java.sun.com/j2ee/connector/products.html ? If we can
    which version of iPlanet is required ?
    Does anybody have suggestions, ideas regarding implementation ?
    Thank you,
    Dragan Zutic
    EDS - Telecom New Zealand

    Are you working on a decentral AE? Does the channel point to the correct AE? Does the cache refresh work?
    What do you means, with having no effect: Is the channel not visible to the adapter or does it work with previous values?
    Stefan

  • Resource Adapters for email drivers...

    All,
    I am going through JCA architecture and Fusion middleware "Oracle Integration Adapter". My requirement is to write an email driver using resource adapter.
    Can I use "Oracle Integration Adapter" directly with few parameter settings or do I need to develop a new resource adapter for my requirement ?...
    Please let me know the details. TIA...
    -- prabaa !

    This question falls outside of JMS-land. Perhaps you can try the EJB newsgroup?
              Just in case your trying to use an adapter to receive JMS messages: There's no need to use resource adapters for WebLogic MDBs driven by JMS destinations.

  • I need Fusion help creating a demo of BRM JCA Resource Adapter

    I need Fusion help creating a demo of BRM JCA Resource Adapter.
    I know BRM well but am clueless with Fusion.
    I am trying to figure out what Fusion products to download and install and how I manipulate the Fusion side to manipulate BRM.
    My BRM docs say:
    Installing the BRM JCA Resource Adapter ->
    Software requirements
    (yada yada install a bunch of BRM stuff I know how to do)
    The adapter must be deployed on a J2EE 1.4-compliant application server that has implemented the JCA 1.5 specification. The adapter runs only in a managed environment. (Does this imply some particular Fusion package?)
    (more yada yada about installing more BRM packages I know how to do)
    Deploying and configuring the BRM JCA Resource Adapter ->
    Overview of the BRM JCA Resource Adapter configuration procedure
    The procedure for setting up the BRM JCA Resource Adapter includes the following tasks:
    Installing the adapter on your BRM system, if you have not already done so. See Installing the BRM JCA Resource Adapter.
    Generating the schema files for the adapter. See Generating the schema files for your system. (links to some BRM commands np)
    Specifying how to construct XML tags. See Specifying the XML tags for extended fields. (links to an oob file included with directions on how to address BRM customizations np)
    Generating the WSDL files for the adapter. See Generating the WSDL files for your system. (links to an oob file with directions to configure. I could use some help if/when I get this far)
    The last two look pretty important but I haven't a clue. I pasted the text from the docs below.
    Deploying the adapter on your application server. See Deploying the BRM JCA Resource Adapter on an Oracle application server.
    Connecting the adapter to the BRM software. See Connecting the adapter to BRM in Oracle AS.
    Deploying the BRM JCA Resource Adapter on an Oracle application server
    The adapter is dependent on Java Archive (JAR) files to deploy properly. The following table lists the JAR files that the adapter requires from each application in your system.
    Application
    JAR files
    J2EE application server
    classes12.jar, connector15.jar, and jta.jar
    Oracle BPEL process
    bpm-infra.jar, orabpel-thirdparty.jar, orabpel.jar, and xmlparserv2.jar
    BRM J2EE Resource Adapter
    pcm.jar and pcmext.jar
    Apache
    xercesImpl.jar
    If you are deploying the adapter in a standalone Oracle Containers for Java EE (OC4J) instance, make sure these JAR files are available to the class loader that is loading the adapter.
    If you are deploying the adapter by using Oracle SOA Suite, these JAR files are available as part of the oracle.bpel.common code source. You import these libraries as follows:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Add the oracle.bpel.common entry (shown in bold below) to the imported-shared-libraries section of the file:
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Restart the application server or the J2EE instance.
    After you make the JAR files available, deploy the adapter on the Oracle application server by using either the Oracle Application Server (Oracle AS) Application Server Control (ASC) or the Oracle admintool.jar file. Copy the adapter archive file (BRM_home/apps/brm_integrations/jca_adapter/OracleBRMJCA15Adapter.rar) from the installation directory to a location that is accessible to the adapter deployment tool. You can then open and deploy the archive file on your application server.
    After successful deployment, return the applications.xml file to its original settings and add the oracle.bpel.common codesource to the BRM Adapter oc4j-ra.xml file:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Remove the following oracle.bpel.common entry (shown in bold below):
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Open the JCA Resource Adapter oc4j-ra.xml file from the Oracle_home/j2ee/Instance/application-deployments/default/BRMAdapterDeploymentName directory.
    Add the oracle.bpel.common entry (shown in bold below) to the oc4j-connector-factories section of the file:
    <oc4j-connector-factories...>
    <imported-shared-libraries>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    <oc4j-connector-factories>
    Save and close the file.
    Restart the application server or the J2EE instance.
    For more information about deploying the adapter, see your application server’s documentation.
    Connecting the adapter to BRM in Oracle AS
    You connect the adapter to the BRM software by creating connection pools and connection factories. As part of the adapter deployment, the application server creates oc4j-ra.xml from the packaged ra.xml. The ra.xml file is located in the Oracle_home/j2ee/Instance/connectors/AdapterDeploymentName/AdapterDeploymentName/META-INF directory. For example, Oracle_home/j2ee/home/connectors/BRMAdapter/BRMAdapter/META-INF/ra.xml.
    Use the resource adapter home page from the Oracle AS ASC page to create connection pools and connection factories.
    Create your connection pool by following the performance and tuning guidelines in Configuring Connection Pooling in OC4J in Oracle Containers for J2EE Resource Adapter Administrator's Guide. See download.oracle.com/docs/cd/B31017_01/web.1013/b28956/conncont.htm.
    Make sure you set the pool’s Maximum Connections parameter (maxConnections XML entity) equal to or greater than the Oracle BPEL process manager’s dspMaxThreads parameter. For more information, see Oracle BPEL Process Manager Performance Tuning in Oracle Application Server Performance Guide for 10g Release 3 (10.1.3.1.0) at download.oracle.com/docs/cd/B31017_01/core.1013/b28942/tuning_bpel.htm.
    Note To set up JCA Resource Adapter transaction management in BPEL, you must create a private connection pool and set its Inactive Connection Timeout property (inactivity-timeout XML entity) to 0. See About JCA Resource Adapter transaction management in BPEL for more information.
    Create as many connection factories as your system needs. For each connection factory, specify the following:
    The JNDI location for the connection factory.
    The connection pool to use.
    How to connect to BRM by using these entries:
    Entry
    Description
    ConnectionString
    Specify the protocol, host name, and port number for connecting to the BRM software. For example: ip Server1 12006.
    DBNumber
    Specify the database number for the BRM database. For example, enter 1 or 0.0.0.1 for database 0.0.0.1.
    InputValidation
    Specifies whether to validate the input XMLRecord:
    True — The adapter validates the input XMLRecord against the opcode schema.
    False — The adapter does not validate the input XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    OutputValidation
    Specifies whether to validate the output XMLRecord:
    True — The adapter validates the output XMLRecord against the opcode schema.
    False — The adapter does not validate the output XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    LoginType
    Specifies the authentication method:
    1 — The adapter logs in to BRM by using the specified login name and password.
    0 — The adapter logs in to BRM by using the specified service type and POID ID.
    The default is 1.
    UserName
    Specifies the login name the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    Password
    Specify the password the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    PoidID
    Specifies the POID ID. This entry should be set to 1.
    ServiceType
    Specifies the service the adapter uses to log in to the BRM software.
    The default is /service/pcm_client.
    You have successfully configured the adapter to connect to BRM.

    I need Fusion help creating a demo of BRM JCA Resource Adapter.
    I know BRM well but am clueless with Fusion.
    I am trying to figure out what Fusion products to download and install and how I manipulate the Fusion side to manipulate BRM.
    My BRM docs say:
    Installing the BRM JCA Resource Adapter ->
    Software requirements
    (yada yada install a bunch of BRM stuff I know how to do)
    The adapter must be deployed on a J2EE 1.4-compliant application server that has implemented the JCA 1.5 specification. The adapter runs only in a managed environment. (Does this imply some particular Fusion package?)
    (more yada yada about installing more BRM packages I know how to do)
    Deploying and configuring the BRM JCA Resource Adapter ->
    Overview of the BRM JCA Resource Adapter configuration procedure
    The procedure for setting up the BRM JCA Resource Adapter includes the following tasks:
    Installing the adapter on your BRM system, if you have not already done so. See Installing the BRM JCA Resource Adapter.
    Generating the schema files for the adapter. See Generating the schema files for your system. (links to some BRM commands np)
    Specifying how to construct XML tags. See Specifying the XML tags for extended fields. (links to an oob file included with directions on how to address BRM customizations np)
    Generating the WSDL files for the adapter. See Generating the WSDL files for your system. (links to an oob file with directions to configure. I could use some help if/when I get this far)
    The last two look pretty important but I haven't a clue. I pasted the text from the docs below.
    Deploying the adapter on your application server. See Deploying the BRM JCA Resource Adapter on an Oracle application server.
    Connecting the adapter to the BRM software. See Connecting the adapter to BRM in Oracle AS.
    Deploying the BRM JCA Resource Adapter on an Oracle application server
    The adapter is dependent on Java Archive (JAR) files to deploy properly. The following table lists the JAR files that the adapter requires from each application in your system.
    Application
    JAR files
    J2EE application server
    classes12.jar, connector15.jar, and jta.jar
    Oracle BPEL process
    bpm-infra.jar, orabpel-thirdparty.jar, orabpel.jar, and xmlparserv2.jar
    BRM J2EE Resource Adapter
    pcm.jar and pcmext.jar
    Apache
    xercesImpl.jar
    If you are deploying the adapter in a standalone Oracle Containers for Java EE (OC4J) instance, make sure these JAR files are available to the class loader that is loading the adapter.
    If you are deploying the adapter by using Oracle SOA Suite, these JAR files are available as part of the oracle.bpel.common code source. You import these libraries as follows:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Add the oracle.bpel.common entry (shown in bold below) to the imported-shared-libraries section of the file:
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Restart the application server or the J2EE instance.
    After you make the JAR files available, deploy the adapter on the Oracle application server by using either the Oracle Application Server (Oracle AS) Application Server Control (ASC) or the Oracle admintool.jar file. Copy the adapter archive file (BRM_home/apps/brm_integrations/jca_adapter/OracleBRMJCA15Adapter.rar) from the installation directory to a location that is accessible to the adapter deployment tool. You can then open and deploy the archive file on your application server.
    After successful deployment, return the applications.xml file to its original settings and add the oracle.bpel.common codesource to the BRM Adapter oc4j-ra.xml file:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Remove the following oracle.bpel.common entry (shown in bold below):
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Open the JCA Resource Adapter oc4j-ra.xml file from the Oracle_home/j2ee/Instance/application-deployments/default/BRMAdapterDeploymentName directory.
    Add the oracle.bpel.common entry (shown in bold below) to the oc4j-connector-factories section of the file:
    <oc4j-connector-factories...>
    <imported-shared-libraries>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    <oc4j-connector-factories>
    Save and close the file.
    Restart the application server or the J2EE instance.
    For more information about deploying the adapter, see your application server’s documentation.
    Connecting the adapter to BRM in Oracle AS
    You connect the adapter to the BRM software by creating connection pools and connection factories. As part of the adapter deployment, the application server creates oc4j-ra.xml from the packaged ra.xml. The ra.xml file is located in the Oracle_home/j2ee/Instance/connectors/AdapterDeploymentName/AdapterDeploymentName/META-INF directory. For example, Oracle_home/j2ee/home/connectors/BRMAdapter/BRMAdapter/META-INF/ra.xml.
    Use the resource adapter home page from the Oracle AS ASC page to create connection pools and connection factories.
    Create your connection pool by following the performance and tuning guidelines in Configuring Connection Pooling in OC4J in Oracle Containers for J2EE Resource Adapter Administrator's Guide. See download.oracle.com/docs/cd/B31017_01/web.1013/b28956/conncont.htm.
    Make sure you set the pool’s Maximum Connections parameter (maxConnections XML entity) equal to or greater than the Oracle BPEL process manager’s dspMaxThreads parameter. For more information, see Oracle BPEL Process Manager Performance Tuning in Oracle Application Server Performance Guide for 10g Release 3 (10.1.3.1.0) at download.oracle.com/docs/cd/B31017_01/core.1013/b28942/tuning_bpel.htm.
    Note To set up JCA Resource Adapter transaction management in BPEL, you must create a private connection pool and set its Inactive Connection Timeout property (inactivity-timeout XML entity) to 0. See About JCA Resource Adapter transaction management in BPEL for more information.
    Create as many connection factories as your system needs. For each connection factory, specify the following:
    The JNDI location for the connection factory.
    The connection pool to use.
    How to connect to BRM by using these entries:
    Entry
    Description
    ConnectionString
    Specify the protocol, host name, and port number for connecting to the BRM software. For example: ip Server1 12006.
    DBNumber
    Specify the database number for the BRM database. For example, enter 1 or 0.0.0.1 for database 0.0.0.1.
    InputValidation
    Specifies whether to validate the input XMLRecord:
    True — The adapter validates the input XMLRecord against the opcode schema.
    False — The adapter does not validate the input XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    OutputValidation
    Specifies whether to validate the output XMLRecord:
    True — The adapter validates the output XMLRecord against the opcode schema.
    False — The adapter does not validate the output XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    LoginType
    Specifies the authentication method:
    1 — The adapter logs in to BRM by using the specified login name and password.
    0 — The adapter logs in to BRM by using the specified service type and POID ID.
    The default is 1.
    UserName
    Specifies the login name the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    Password
    Specify the password the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    PoidID
    Specifies the POID ID. This entry should be set to 1.
    ServiceType
    Specifies the service the adapter uses to log in to the BRM software.
    The default is /service/pcm_client.
    You have successfully configured the adapter to connect to BRM.

  • Resource.adapters attribute

    The IDM documentation states you must add your new custom resource to the waveset.properties file in $WSHOME/config. It states it must be placed under the resource.adapters entry or it will not be recognized.
    However, when I look through the Waveset.properties file, the only mention of "resource.adapters" is in a comment area for ResourceManagerVersion:
    # ResourceManagerVersion
    # Specifies the version of the Resource Manager to be used. The
    # Resource Manager controls the list of available resources.
    # Additional resources are specified in the resource.adapters
    # attribute above.
    However, there is NO resource.adapters attribute in this file. Is there a sample of how this attribute needs to be formatted and the syntax one should use?

    Here's the context diff of the changes I made to AIXResourceAdapter:
    $ diff -c AIXResourceAdapter.java  MyAIXResourceAdapter.java
    *** AIXResourceAdapter.java     Thu Jul 21 12:14:38 2005
    --- MyAIXResourceAdapter.java   Thu Jul 21 12:33:27 2005
    *** 46,58 ****
       * Resource adapter supporting AIX version 4.3 (and possibly other versions)
       * by using shell script commands through a scripted connection.
    ! public class AIXResourceAdapter
          extends UnixResourceAdapter
          implements Constants {
    !     public static final String code_id = "$Id: AIXResourceAdapter.java,v 1.2.6
    .2 2005/04/08 04:42:54 rsanchez Exp $";
    !     private static final String CLASS = "com.waveset.adapter.AIXResourceAdapte
    r";
          // Resource attribute name of the host used to communicate with the
          // resource.
    --- 46,58 ----
       * Resource adapter supporting AIX version 4.3 (and possibly other versions)
       * by using shell script commands through a scripted connection.
    ! public class MyAIXResourceAdapter
          extends UnixResourceAdapter
          implements Constants {
    !     public static final String code_id = "$Id: MyAIXResourceAdapter.java,v 1.2
    .6.2 2005/04/08 04:42:54 rsanchez Exp $";
    !     private static final String CLASS = "com.waveset.adapter.MyAIXResourceAdap
    ter";
          // Resource attribute name of the host used to communicate with the
          // resource.
    *** 147,154 ****
          // Prototype xml for resource.
          static final String prototypeXml =
    !         "<Resource name='AIX' class='com.waveset.adapter.AIXResourceAdapter'"
    !             + " typeString='AIX' typeDisplayString='"+RAMessages.RESTYPE_AIX+"
    ' supportsScanning ='true'>\n"
                  + "  <ResourceAttributes>\n"
                  + "    <ResourceAttribute name='"+RA_HOST+"' displayName='"+RAMess
    ages.RESATTR_HOST+"' type='string' multi='false'"
                  + " description='" + RAMessages.RESATTR_HELP_115 + "'>\n"
    --- 147,154 ----
          // Prototype xml for resource.
          static final String prototypeXml =
    !         "<Resource name='MyAIX' class='com.waveset.adapter.MyAIXResourceAdapte
    r'"
    !             + " typeString='MyAIX' typeDisplayString='My AIX' supportsScanning
    ='true'>\n"
                  + "  <ResourceAttributes>\n"
                  + "    <ResourceAttribute name='"+RA_HOST+"' displayName='"+RAMess
    ages.RESATTR_HOST+"' type='string' multi='false'"
                  + " description='" + RAMessages.RESATTR_HELP_115 + "'>\n"
    *** 311,324 ****
           *  No argument constructor.
    !     public AIXResourceAdapter() {
              super();
           *  Constructor
    !     public AIXResourceAdapter(Resource res, ObjectCache cache) {
              super(res, cache);
    $
           *  No argument constructor.
    !     public MyAIXResourceAdapter() {
              super();
           *  Constructor
    !     public MyAIXResourceAdapter(Resource res, ObjectCache cache) {
              super(res, cache);
    *** 3886,3898 ****
              private ArrayList _userList;
              private int _userIndex = 0;
              private String _error = "";
    !         private AIXResourceAdapter _adapter = null;
              private ScriptToken.Capture _blockCaptureToken = rootPromptCaptureToke
    n;
              private final int USERSTOITER = 20;
    !          * @deprecated Use BlockAcctIter(AIXResourceAdapter, CaptureList) inst
    ead.
              public BlockAcctIter(int blockSize, CaptureList captureList)
                  throws WavesetException
    --- 3886,3898 ----
              private ArrayList _userList;
              private int _userIndex = 0;
              private String _error = "";
    !         private MyAIXResourceAdapter _adapter = null;
              private ScriptToken.Capture _blockCaptureToken = rootPromptCaptureToke
    n;
              private final int USERSTOITER = 20;
    !          * @deprecated Use BlockAcctIter(MyAIXResourceAdapter, CaptureList) in
    stead.
              public BlockAcctIter(int blockSize, CaptureList captureList)
                  throws WavesetException
    *** 3904,3910 ****
                  start();
    !         public BlockAcctIter(AIXResourceAdapter adapter,
                                   CaptureList captureList)
                  throws WavesetException
    --- 3904,3910 ----
                  start();
    !         public BlockAcctIter(MyAIXResourceAdapter adapter,
                                   CaptureList captureList)
                  throws WavesetException
              {

  • JNDI name for resource adapters

    When I look up a connection factory via the initial context, which JNDI name should I be using? How do I know which namespace my JCA resource adapter is in?
    I have registered the standalone JCA resource adapter via the command
    C:\OraHome_2\dcm\bin>dcmctl deployApplication -f my.rar -a my_jca
    Can I access it like this from my EJB?
    Context initialContext = new InitialContext();
    jcaConnectionFactory = (ConnectionFactory)initialContext.lookup("my_jca");
    or does it have to be java:comp/env?
    The default oc4j-ra.xml that was generated by dcmctl looks like this:
    <?xml version="1.0"?>
    <!DOCTYPE oc4j-connector-factories PUBLIC "-//Oracle//DTD Oracle Connector 9.04//EN" "http://xmlns.oracle.com/ias/dtds/oc4j-connector-factories-9_04.dtd">
    <oc4j-connector-factories>
    <connector-factory location="" connector-name="my_jca">
    </connector-factory>
    </oc4j-connector-factories>

    What is the correct way of looking up a resource adapter from another resource adpater? The JNDI name of my resource adapter is "StorageFactory" and I am doing a lookup like:
              Context ctx = new InitialContext();
              ctx.lookup("StorageFactory")
              Is this a correct way to lookup?

  • Resource Adapters in clustered environment

    Hi All,
              Can anybody throw some light on how resource adapters will behave in
              weblogic clustered environment ?
              thanks and regards
              vedant.
              

    This question falls outside of JMS-land. Perhaps you can try the EJB newsgroup?
              Just in case your trying to use an adapter to receive JMS messages: There's no need to use resource adapters for WebLogic MDBs driven by JMS destinations.

  • Resource Adapters in clustered env..

    Hi All,
              Can anybody throw some light on how resource adapters will behave in
              weblogic clustered environment ?
              thanks and regards
              vedant.
              

    This question falls outside of JMS-land. Perhaps you can try the EJB newsgroup?
              Just in case your trying to use an adapter to receive JMS messages: There's no need to use resource adapters for WebLogic MDBs driven by JMS destinations.

  • BINDING.JCA-12510 JCA Resource Adapter - Cannot call rollback when using di

    Hi,
    i'm facing a simillar issue with dbadapter while trying to insert a record.
    The issue that I'm facing is: (BINDING.JCA-12563)
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception. insert failed. Descriptor name: http://InsertEmployee.TestEmp. Caused by java.sql.SQLException: Cannot call rollback when using distributed transactions. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    I faced the same issues that have been posted in this thread before but this is a new one I'm seeing.
    Following are the configurations that I'm using.
    WEBLOGIC ADMIN CONSOLE
    JDBC datasources
    General tab:
    JNDI Name: jdbc/SOADataSource
    Connection Pool tab:
    URL - jdbc:oracle:thin:@localhost:1522/XE
    Driver Class Name - oracle.jdbc.xa.client.OracleXADataSource
    Properties - user=SATRA_SOAINFRA
    oracle.net.CONNECT_TIMEOUT=10000
    Deployments
    Inside DbAdapter - Configuration
    The general tab shows blank values for 'Native lib dir' and 'JNDI name' fields. Is this normal or I need to populate values into these.
    Inside Outbound Connection Pools the javax.resource.cci.ConnectionFactory created an entry 'eis/DB/10gXE_DBCon'
    following is the settings for dataSourceName property
    dataSourceName java.lang.String jdbc/SOADataSource
    I have kept the value for xADataSourceName as blank as giving the same value of 'jdbc/SOADataSource' throws error.
    The JNDI value that I'm using while creating the database adapter from Jdev is eis/DB/10gXE_DBCon where 10gXE_DBCon is the database connection name.
    Can you please tell me what is the issue and where I'm going wrong.
    Thanks in advance,
    Satrajit

    Hi Sunil,
    I followed your advice and did the changes, that error has gone but a new error is popping up.
    BINDING.JCA-12563 Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception. insert failed. Descriptor name: [InsertEmployee.TestEmp]. Caused by java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist . ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    The name of the table i'm inserting to is test_emp and it exists in the database.
    the .jca file for dbadsapter is like
    <adapter-config name="FileToDB_DBAdp" adapter="Database Adapter" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/DB/10gXE_DBCon" UIConnectionName="10gXE_DBCon" adapterRef=""/>
    <endpoint-interaction portType="FileToDB_DBAdp_ptt" operation="insert">
    <interaction-spec className="oracle.tip.adapter.db.DBWriteInteractionSpec">
    <property name="DescriptorName" value="FileToDB_DBAdp.TestEmp"/>
    <property name="DmlType" value="insert"/>
    <property name="MappingsMetaDataURL" value="FileToDB_DBAdp-or-mappings.xml"/>
    <property name="DetectOmissions" value="true"/>
    <property name="GetActiveUnitOfWork" value="false"/>
    </interaction-spec>
    </endpoint-interaction>
    </adapter-config>
    and the .xsd file for dbadapter is
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <xs:schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/FileToDB_DBAdp" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/FileToDB_DBAdp" elementFormDefault="qualified" attributeFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="TestEmpCollection" type="TestEmpCollection"/>
    <xs:complexType name="TestEmpCollection">
    <xs:sequence>
    <xs:element name="TestEmp" type="TestEmp" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="TestEmp">
    <xs:sequence>
    <xs:element name="empid" type="xs:decimal" nillable="true"/>
    <xs:element name="name" type="xs:string" minOccurs="0" nillable="true"/>
    <xs:element name="designation" minOccurs="0" nillable="true">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="50"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="salary" type="xs:decimal" minOccurs="0" nillable="true"/>
    <xs:element name="deptno" type="xs:decimal" minOccurs="0" nillable="true"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    If I change element name from 'TestEmp' to 'Test_Emp' in the .xsd file,
    I'm getting the following issue ...
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: Could not create/access the TopLink Session. This session is used to connect to the datastore. Caused by java.lang.NullPointerException. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    I'm confused why does it take the table name as TestEmp and not as Test_Emp.
    Regards,
    Satrajit

  • JCA Resource Adapter CCI

    Has anyone found a reference application that properly uses the JCA CCI specification? I would like to test a Resource Adapter against the standard rather than against my understanding of the standard.

    try:
    http://www.fawcette.com/javapro/2002_02/magazine/features/tmodi/

  • ADF BC not working in a JCA Resource Adapter. Setting classpaths?Libraries?

    Hi,
    I have a JCA connector which is supposed to use Businiess Components for accessing the EIS. When I try to bootstrap Application Module through some of Configuration.createRootApplicationModule I'm getting StackOverflow:
    06/12/19 15:17:54 WARNING: DeployerRunnable.run java.lang.StackOverflowErrororacle.oc4j.admin.internal.DeployerException: java.lang.StackOverflowError
         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:139)
         at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
         at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.StackOverflowError
         at java.lang.ClassLoader.findBootstrapClass(Native Method)
         at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:891)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:301)
         at oracle.classloader.PolicyClassLoader.findJREClass(PolicyClassLoader.java:1153)
         at oracle.classloader.JVMSearchPolicy.getClass(JVMSearchPolicy.java:27)
         at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:645)
         at oracle.classloader.PolicyClassLoader.askParentForClass(PolicyClassLoader.java:1289)
         at oracle.classloader.SearchPolicy$AskParent.getClass(SearchPolicy.java:68)
         at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
         at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:645)
         at oracle.classloader.PolicyClassLoader.askParentForClass(PolicyClassLoader.java:1289)
         at oracle.classloader.SearchPolicy$AskParent.getClass(SearchPolicy.java:68)
         at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
         at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:645)
         at oracle.classloader.PolicyClassLoader.askParentForClass(PolicyClassLoader.java:1289)
         at oracle.classloader.SearchPolicy$AskParent.getClass(SearchPolicy.java:68)
         at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
         at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:645)
         at oracle.classloader.PolicyClassLoader.askParentForClass(PolicyClassLoader.java:1289)
         at oracle.classloader.SearchPolicy$AskParent.getClass(SearchPolicy.java:68)
         at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1674)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
            ....I tried to isolate further the problem and found out that probably it is in the inablity of connector's ClassLoader to find the ADF BC classes. I tried to instantiate Application pool directly as it is done in PoolMgr.createPool using the following code:
             Class  poolClass = JBOClass.forName(sClass);
             ApplicationPool pool = (ApplicationPool)poolClass.newInstance();This time the exception was:
    06/12/19 15:11:04 oracle.classloader.util.AnnotatedClassNotFoundException:
           Missing class: oracle.jbo.common.ampool.ApplicationPoolImpl
         Dependent class: oracle.jbo.common.java2.JDK2ClassLoader
                  Loader: adf.oracle.domain:10.1.3.1
             Code-Source: /C:/oracle/product/10.1.3.1/BC4J/lib/adfm.jar
           Configuration: <code-source> in /C:/oracle/product/10.1.3.1/j2ee/home/config/server.xml
    This load was initiated at system.root:0.0.0 using the Class.forName() method.
    The missing class is available from the following locations:
         1. Code-Source: /C:/oracle/product/10.1.3.1/BC4J/lib/bc4jct.jar (from <code-source> in /C:/oracle/product/10.1.3.1/j2ee/home/config/server.xml)
            This code-source is available in loader adf.oracle.domain:10.1.3.1. This shared-library can be imported by the "system" application.
            This code-source is available in loader adf.generic.domain:10.1.3.1. This shared-library can be imported by the "system" application.
         2. Code-Source: /C:/oracle/product/10.1.3.1/BC4J/lib/bc4jmt.jar (from <code-source> in /C:/oracle/product/10.1.3.1/j2ee/home/config/server.xml)
            This code-source is available in loader adf.oracle.domain:10.1.3.1. This shared-library can be imported by the "system" application.
            This code-source is available in loader adf.generic.domain:10.1.3.1. This shared-library can be imported by the "system" application.Are there any classpath or library variables accros Aplication Server configuration files which I can configure in order to solve the problem?
    Thank you!
    Simeon

    repost

Maybe you are looking for

  • After installing new operating system software, my user account name has been changed and i don't know the password.

    i need help! I just installed Mac OS Maverick in my laptop, but when i checked the Users&Groups There are only 2 User name 1 is  "Apple(admin) and 2 is Guest, my user account name has been changed even the password. how can i retrieve my old user acc

  • BEx WAD -- Creating Chart And Table on the same page

    Hi All. I am creating a new Web Application. This contains a dropdown with 2 reports to select. When the user selece report from the dropdown list, it has to display both Table and Chart for the report. Could you pls explain me how can I do this. Tha

  • Documentation on settings up DP, MP in non trusted domain USING HTTPS

    Is there any documentation that specifically talks about setting up a site system in a non trusted domain with management point and distribution point and communication using HTTPS. I see some examples but none of them talk about the certificates tha

  • How can I drag points ?

    hi, all I am trying to achieve the following: I want to draw two points on a picture in the Jpanel with mouse, and wenn I release the mouse, there must be a line between the two points. if I just use mouse draged anyone of the point , it should be mo

  • View options won't stick

    I work for radio and use iTunes to rate tracks for broadcast. Every time I pop in a new CD, I have to select View > View Options > My rating... Is there a way to make this the default view or to make this columns stick? Thanks a zillion