J2EE Connectors

Hi,
I know it seems a little strange but my application has to use a J2EE Connector for CICS communication without an Application Server.
The connector makes use of JNDI service to find a connection generator object. Can I bypass this condition and instantiate a ConnectionFactory without a look up action?
Thanks in advance.

Hi,
The J2EE Connector Architecture states that the ConnectionFactory object should be retrieved by making a JNDI lookup, rather than explicitly creating it in the code.
I found that if you need not to use JNDI lookup, you could use the code for communication with CICS:
//create and set values for a managed connection factory for EPI
EPIManagedConnectionFactory mcf =new EPIManagedConnectionFactory();
mcf.setConnectionURL("<url>");
mcf.setServerName("<ServerName>");
//create a connection object
ConnectionFactory cxf=(ConnectionFactory)mcf.createConnectionFactor();
Connection connection =cxf.getConnection();
Best regards.

Similar Messages

  • How Weblogic used in Integration using J2EE Connector architecture??? need more info

              Hi xperts,
              Would like to know more about weblogic integration in EAI zone using J2EE
              I checked on
              http://java.sun.com/j2ee/connector/
              http://java.sun.com/j2ee/white/connector.html
              Can anyone elaborate more on it? give me relevent more links??
              thnxs in advance
              --harshal
              

    http://www.bea.com/solutions/integration/index.shtml
              Harshal Pendse wrote:
              > Hi xperts,
              >
              > Would like to know more about weblogic integration in EAI zone using J2EE
              >
              > I checked on
              > http://java.sun.com/j2ee/connector/
              > http://java.sun.com/j2ee/white/connector.html
              >
              > Can anyone elaborate more on it? give me relevent more links??
              >
              > thnxs in advance
              > --harshal
              

  • Announcing J2EE Connector for Weblogic 6.0 SP1

              The Weblogic J2EE Connector Architecture Beta 2 is now available
              for download. This release supports the recently released Weblogic
              Server 6.0 SP1.
              To download the Weblogic J2EE Connector Beta, refer to either the
              Developer Center (http://developer.bea.com/code/wls.jsp) or Product
              Center (http://commerce.bea.com/downloads/weblogic_server.jsp)
              

    Edit the registry.xml file and change "6.0 Beta" to "6.0"
    -Greg
    On 12 Mar 2001 10:02:19 -0800, "Raman Trikkur" <[email protected]>
    wrote:
    >
    Hello Kumar,
    Here is my registry.xml.
    <?xml version="1.0" encoding="UTF-8"?>
    <bea-product-information>
    <host name="ramantrik2pc">
    <product name="WebLogic Server" format="1.0">
    <release level="6.0 Beta" Status="installed" InstallDir="D:\bea\wlserver6.0"
    InstallTime="Mar 1, 2001 5:18:57 PM" InstallSet="Server">
         <component name="Program" />
         <component name="Samples" />
    </release>
    </product>
    </host>
    </bea-product-information>
    Thanks for helping me figure this out. If this doesn't work,
    I'll just try installing the whole package (WLS 6.0 with SP1
    applied) as Xiang suggested.
    Regards,
    Raman
    Kumar Allamraju <[email protected]> wrote:
    could you post your registry.xml ?
    Raman Trikkur wrote:
    Hi,
    I'm trying to get the service pack SP1 ((wls60sp1_upgrade_win.exe)
    ) installed on my NT box. I have wls 6.0 installed andworking.
    After unpacking and choosing my bea home directory (D:\bea),I
    get an error that says "Weblogic Server Service Pack1 Installation
    failed. You do not seem to have Weblogic server 6.0installed for
    BEAHOME D:\bea".
    But that is untrue. I DO have it installed in D:\bea,and I have
    the environment shell up by running setEnv.cmd and Iinvoked the
    service pack installer from within that shell.
    Is there anything I'm missing? Has anyone else encounteredthis
    problem? Any help with this would be much appreciated.
    Regards,
    Raman

  • J2EE connector API in WLS6.1 and listening to CMP/CMR

              Hi,
              I am interested in knowing any of your experience using J2EE CONNECTOR architecture
              in WLS6.1, especially;
              [1] Using it to obtain transaction events on CMP /CMR on business objects (s.a
              EJBS) that employ webLogic CMP engine,
              [2] Whether the J2EE connector APIs in WebLogic allow third party plugins (like
              TopLink) to subscribe, s.t. other plugins (like the adapter which I may develon),
              would be able to "listen" to the transaction events from the third party adapters,
              [3] Any examples in WLS6.1 on using and configuring J2EE connector APIs,
              [4] Other possibilities exist in WLS for obtaining CMP events notifying modifications
              to application object state
              Thanks in advance,
              -hari
              

    Hi. It is possible to package native code along with a RAR. Further, in J2EE 1.4, it is possible to write MDBs that implement arbitrary message listener types, return values, throw exceptions, etc.

  • How can I use log4j-1.2.x in a J2EE connector?

    My J2EE connector internally uses log4j-1.2.6. Although the log4j.jar file is part of the .rar file and a Class-Path entry has been added to the manifest, I get the following error message when trying to deploy the connector to WLS 7.0: " javax.resource.spi.ApplicationServerInternalException: Error loading class ManagedPayAdvConnectionFactory
              . Reason: org/apache/log4j/Logger"
              Any help is appreciated.
              

              I have only had success using the Class-Path: manifest header using an EAR deployment.
              With a standalone RAR, it seems to be ignored.
              The EAR structure should be similar to the following
              /META-INF/Manifest.mf - standard manifest
              /log4j-1.2.6.jar
              /foo.rar
              Then, in foo.rar's Manifest.mf, set the Class-Path relative to the EAR root (i.e.
              - Class-Path: log4j-1.2.6.jar). Naturally, the down side is that everything using
              this connector must now be in the EAR with the connector, due to isolation issues.
              -Jason
              Hubert Windl <[email protected]> wrote:
              >My J2EE connector internally uses log4j-1.2.6. Although the log4j.jar
              >file is part of the .rar file and a Class-Path entry has been added
              >to the manifest, I get the following error message when trying to deploy
              >the connector to WLS 7.0: " javax.resource.spi.ApplicationServerInternalException:
              > Error loading class ManagedPayAdvConnectionFactory
              >.. Reason: org/apache/log4j/Logger"
              >
              >Any help is appreciated.
              

  • J2ee Connector basic questions

              Hi all,
              I have a few basic questions about j2ee technology and legacy systems.
              In the past year I have used Bea Jolt to "talk" with Tuxedo legacy code,now I
              read about weblogic j2ee Connector and I have the following question: they are
              2 technology in competition, or they can be collaborative ? I mean If I want to
              "talk" to legacy system I can choose between:
              1) "portable" solution (so I keep j2ee Connector)
              2) Vendor tecnology (Bea Jolt or Tuxedo connector)
              Please correct me if I'm wrong...I'm a bit confused on this topic....
              Thanks
              Francesco
              

    Hello folks, please share your experience working with the lotus notes connector.
    Thanks, M

  • J2EE Connector Architecture(Omni Portlet)

    Hello,
    In the Developer Guide ,(http://download-west.oracle.com/docs/cd/B14099_10/portal.1012/b14134/pdg_matrix.htm#CEGFBJEC)
    it is mentioned about J2EE Connector Architecture as a data source. In the omni portlet data source type it is not listed. How can I configure and use it for data source?
    I am using 9.0.4 version of Portal
    Any help is highly appreciable.
    Thanks

    We are trying to do a JCA Adapter and are running into the same type of questions as you. Clearly, no one is watching this topic. Have you found a reference application to test the RA against?
    Please feel free to contact me at [email protected]

  • Does j2ee connector support socket connection?

    Can I write a resource adapter to connect with a socket server?
              

    Thanks a lot. I think I will also be a beaer, since I was borlander before.
              This problem cause by I installing wls7.0 and wls6.1 together. After I
              remove wls7.0, everything ok! I think you should check this problem.
              May I introduce our project at first? Now our team is developing Telecom OSS
              system. there is lots of legancy system written by unknown language and in
              unknown tier. The Telecom customer want to put new system into execution
              smoothly. I think about WLI. As you said, I can use adapter in weblogic,
              aren't I? I am not very clear. I will check by myself.
              I have also asked another question in other group, but no answer. it is:
              How to use weblogic.j2eeclient.Main? I really want to have a general test
              ejb client. That is, given ejb classes name and method name and method
              parameter value, I can get any ejb object method result. How can I do it?
              Can reflection and classloader do it?
              "Timothy Potter" <[email protected]> дÈëÏûÏ¢ÐÂÎÅ
              :[email protected]...
              > Dear airwing,
              >
              > Looks like you are attempting to run WLI within a cluster. At this point,
              I
              > recommend opening a case with BEA technical support. It may end up back on
              > my queue, but our technical support can help you through debugging the
              > basics.
              >
              > Best regards,
              >
              > Timothy Potter
              > Senior Software Engineer
              > eCommerce Server Division
              > BEA Systems, Inc.
              >
              > "airwing" <[email protected]> wrote in message
              > news:[email protected]...
              > > error infomation:
              > > <2002-3-12 ÏÂÎç02ʱ47·Ö19Ãë> <Critical> <WebLogicServer> <Failed to
              invoke
              > > shutd
              > > own class "WLAI_ShutdownClass", java.rmi.RemoteException: EJB Exception:
              > > neste
              > > d exception is:
              > > java.lang.IllegalStateException: Server 'myserver' has not been
              > > register
              > > ed with the Admin server>
              > > "Timothy Potter" <[email protected]> дÈëÏûÏ¢ÐÂÎÅ
              > > :[email protected]...
              > > > Dear airwing,
              > > >
              > > > As Cameron indicates this is possible. The ManagedConnection will most
              > > > likely wrap a java.net.Socket instance. I wrote a J2EE Connector
              > resource
              > > > adapter for FTP which should give you some pointers on how to do this.
              > > Have
              > > > a look at the WLI 2.1 File Adapter on:
              > > >
              > > >
              > >
              >
              http://dev2dev.bea.com/code/codedetail.jsp?productType=weblogic+integration&
              > > > codeType=code+sample&highlight=none
              > > >
              > > > Best regards,
              > > >
              > > > Timothy Potter
              > > > Senior Software Engineer
              > > > eCommerce Server Division
              > > > BEA Systems, Inc.
              > > >
              > > > "airwing" <[email protected]> wrote in message
              > > > news:[email protected]...
              > > > > Can I write a resource adapter to connect with a socket server?
              > > > >
              > > > >
              > > >
              > > >
              > >
              > >
              >
              >
              

  • J2EE Connector? Java Messages?  which?

    I am designing our J2EE product that will put our legacy data into
    the J2EE environment. We have a J2SE API to access the data.
    We want clients to have access to the legacy system without
    each client needing to make their own connection directly to the system.
    The API for our J2SE has synchronous and asynchronous calls.
    I have read about J2EE Connectors and I see our data server being
    an Enterprise Information System (EIS) and a need for a Resource Adapter.
    Is this right? Is this how others have brought data from legacy systems to the
    J2EE environment?
    Should I use Java Messages to send the asynchronous data?
    Since the queues are static and multiple clients will want the data,
    a set of static queues could become bottlenecks for several clients.

    >
    I have read about J2EE Connectors and I see our data
    server being
    an Enterprise Information System (EIS) and a need for
    a Resource Adapter.
    Is this right? Is this how others have brought data
    from legacy systems to the
    J2EE environment?
    Yes, this is correct. Your backend system is exactly what the connector architecture authors had in mind as an EIS. A resource adapter would be, in my opinion, the best way to connect your J2EE app to the EIS data.
    Should I use Java Messages to send the asynchronous
    data?
    Since the queues are static and multiple clients will
    want the data,
    a set of static queues could become bottlenecks for
    several clients.If I remember the spec for the JCA 1.5 correctly, the application server should 'publish' (i.e. deliver) the message to all message driven beans that are configured (by means of the deployment descriptor) to accept messages of a given type. So delivering the message to multiple clients should be no problem.

  • J2EE Connector

    Do any of you guys having a clear idea of J2EE Connector?
    I need help in writing Resource Adapters for a specific EIS.
    Plz let me know about your suggestions.
    Thanks in advance.
    with regards,
    NRK.

    Steps to write a JCA resource.
    1. Write the code. This code should implement the interfaces that the application server will expect, and any custom stuff related to your EIS.
    2. Put the code in a .jar file.
    3. Write a ra.xml file for the resource. This will say what actual classes that you have written implement the interfaces that the app server will expect to find, some parameters and some meta data.
    4. Put the .jar file and the ra.xml file into a .rar file ( which is a .jar file under a different name.)
    5. Deploy this. I don't know about Weblogic - how you'd deploy this, so check the docs.
    The sites on the internet and the Sun book on JCA will say exactly which interfaces you will need to implement, and I strongly recommend you get the book.

  • J2EE Connector JCA 1.5 and JMS to behave like a telnet session

    Hi, I'm trying to develop an application that sends messages to cellular (SMS) through a gateway that works with a proprietary protocol.
    A sample telnet session for sending messages works this way:
    Me:
    telnet server 8000
    login:****
    password:****
    [I write some commands for setting up the way I am working, the connection use a proprietary protocol]
    SendMode
    Report=true
    Server:
    OK
    Me: [now I send a new message]
    Send
    Dest=391241241
    Body=Hello Everybody
    Server:
    MsgID=1254515 [a unique ID assigned by the server]
    OK
    Me: [send some other messages]
    Send
    Dest=28709217
    Body=bla foo bar
    Server:
    MsgID=3097519
    OK
    [Now I stay logged in and when the status of a message changes the server notifies me with a message preceeded by"!"]
    Server:
    !StatusInd
    !MsgID=1254515
    !Status=in queue
    ![other informations about the message]
    !OK
    Me:
    Logout
    And the connection finishes.
    I thought about resolving the problem with JMS because it was studied to resolve asynchronous message delivery, which is what I'm trying to achieve.
    I think one solution could be the following:
    1- my customer decides to send some SMS messages he wants to send through the interface I developed
    2- a new JMS Message is created
    3- a MDB wake up and performs the initial steps to connect throught native calls
    4- new MDB wake up and, using the connection, send created SMS
    5- another process use the connection to read the StatusInd and create a new JMS Message to describe the message status and registers it in a database
    The main question is: how can I implement the "native calls"? Is there a way with the new Connectors 1.5?
    But aboveall, does this API helps me creating an asynchronous message listener for StatusInd?
    Another implementation doubt is that I must send a lot of SMS (around 4000 SMS in one action), so, in pass 4, should I create 4000 MDB instances? It should be a clean implementation, maybe this way I could use also correlation id/replyto headers in passage 5, but would it waste many resources?
    Thank everybody, J2EE it's a huge infrastructure and I'd like to know if I'm moving the right way!:)
    Andrea

    Hi. It is possible to package native code along with a RAR. Further, in J2EE 1.4, it is possible to write MDBs that implement arbitrary message listener types, return values, throw exceptions, etc.

  • J2ee connector deployment

    hi,
    I am testing and deploying mailadapter example from sun site on my OC4J, infact i only deploy it outbound part because my requirments are synchronous connectivity with EIS
    But i am getting following error
    Unable to set up connection factory to location eis/MyEmail for a resource adapter deployed as stand-alone:
    Unable to find managedconnectionfactory-class class com.warid.connectors.emailconnector.outbound.ManagedConnectionFactoryImpl.
    Unable to set up connection factory to location eis/MyEmail for a resource adapter deployed as stand-alone.
    Regards,
    Imran

    Looks like you need to tell us more...
    How is your adapter packaged?
    Which files are included (deployment descriptors, etc)?
    --olaf                                                                                                                                                                                                                                                                                   

  • Need Help with J2EE Connector Architecture!! Please!

    Scenario:
    We are trying to establish connectivity to a CTG using the new JCA connector specifications.
    We have our input in the form of a string but the Interaction.execute(ioRecord, ioRecord object specifies record object as parameters.
    How do we create a record that correctly represents our current input string?
    Is there a predetermined record format that we must use for out connection or can we create our own record?
    If we can create our own record how is it converted and padded properly for a byte stream that is required by the CTG?

    Send a message to [email protected] they help answer tough questions for a fee.

  • Name of Adapter JCA(J2EE CONNECTOR ARCHITECTURE)  for SAPNetWeaver

    hi
        i'm faceing problem with JCA adapters . i want to connect sap netweaver(km) from my java code for this i need one jca adapter which supports sap netweaver...... pls tell me which adapter supports this.... thanks in advance...

    Hi Rupesh,
    If you want to access your KM resources from your Java code then you can use the KM API.
    Here are some Blogs that you can refer to:
    Creating folders in KM dynamically
    Uploading files to KM repository using Webdynpro APIs
    Some Code Samples and Tutorials
    Knowledge Management Code Samples
    and the most important, KM API reference
    https://media.sdn.sap.com/javadocs/NW04/SPS15/km/index.html - 2004
    & https://media.sdn.sap.com/javadocs/NW04s/SPS7/km/index.html - 2004s

  • Bug getting handle to 'setLogLevel' in Connector

    This is version 7 of S1AS.
    There appears to be a bug at IASMCFFactory.java:346.
    At this line, the class is trying to get a handle to
    the method 'setLogLevel' of the managed-connection-factory;
    as specified in the j2ee connector specification ra.xml
    file.
    IASMCFFactory appears to be using the reflection method
    that only returns methods of the derived class; and not those defined in any super class.
    For the Siebel J2EE Connector (v7.5), the 'setLogLevel'
    class is defined in the super class SiebelConnectionFactory of the derived class
    SiebelNoTxManagedConnectionFactory; and IASMCFFactory
    is throwing:
    [03/Dec/2002:19:30:34] FINE ( 7525): Method setlogLevel was not found in class com.siebel.integration.jca.spi.notx.SiebelNoTxManagedCon
    nectionFactory
    java.lang.NoSuchMethodException: com.siebel.integration.jca.spi.notx.SiebelNoTxManagedConnectionFactory.setlogLevel(java.lang.String)
    at java.lang.Class.getMethod0(Class.java:1756)
    at java.lang.Class.getMethod(Class.java:963)
    at com.iplanet.ias.connectors.deployment.IASMCFFactory.getManagedConnectionFactory(IASMCFFactory.java:346)
    at com.iplanet.ias.connectors.deployment.IASMCFFactory.loadOneMCF(IASMCFFactory.java:504)
    at com.iplanet.ias.server.ConnectorModuleLoader.load(ConnectorModuleLoader.java:68)
    at com.iplanet.ias.server.StandAloneConnectorModulesManager.moduleDeployed(StandAloneConnectorModulesManager.java:84)
    at com.iplanet.ias.server.StandAloneConnectorModulesManager.moduleDeployed(StandAloneConnectorModulesManager.java:162)
    at com.iplanet.ias.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:464)
    at com.iplanet.ias.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:451)
    at com.iplanet.ias.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:294)
    at com.iplanet.ias.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:99)
    at com.iplanet.ias.admin.server.core.channel.AdminChannelServer.sendNotification(AdminChannelServer.java:84)
    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:324)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
    at sun.rmi.transport.Transport$1.run(Transport.java:148)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    at java.lang.Thread.run(Thread.java:536)
    '

    OK, there appears to be a different cause for this rather
    than the reflection method (which looks like the right one).
    Rather, S1AS is looking for the method 'setlogLevel'
    (notice the lower case 'l' in Log).
    My connector has the method 'setLogLevel'.
    I see no mention of this method in the J2EE Connector Architecture Specification 1.5; but it seems like
    setLogLevel is better.

Maybe you are looking for