JMS in OC4J

I'm looking for documentation on creating/configuring JMS queues and topics in OC4J, and I'm not finding anything. Can anyone point me in the right direction?
null

<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Lance Peterson ([email protected]):
I'm looking for documentation on creating/configuring JMS queues and topics in OC4J, and I'm not finding anything. Can anyone point me in the right direction?<HR></BLOCKQUOTE>
You may want to look at www.orionserver.com and search through their mailing list. Also, there is an ATM application that comes with the download that has some JMS stuff in it. Give that a try...Coming from the Orion side - I am not sure what Oracle has - probably some of the same stuff...

Similar Messages

  • Jms on oc4j getting error

    Hi all,
    I am trying to confifure JMS on oc4j.
    I did following settings.
    1) In JMS.xml
    <jms-server port="9128">
    <queue name="FinanceQueue" location="jms/theQueue"/>
    <queue-connection-factory
    location="jms/theQueueConnectionFactory"/>
    <log>
    <file path="../log/jms.log"/>
    </log>
    </jms-server>
    2) And in code
    QueueConnectionFactory connectionFactory = null;
    connectionFactory = (QueueConnectionFactory) cxt.lookup(jms/theQueueConnectionFactory);
    to access queueconnectionfactory.
    I am getting this error
    Contecxt javax.naming.InitialContext@1fee6fc
    Could not create JNDI API context: javax.naming.NoInitialContextExcept
    to specify class name in environment or system property, or as an appl er, or in an application resource file: java.naming.factory.initial
    Please help.
    Regards
    Rohini

    Hello All,
    did no body has faced this problem?
    Hey Oracle suport people please help.
    This is urgent to decide which Application server to use.
    Already tried with weblogic and it is working fine,
    Then what is problem with OC4J standalone?
    Regards
    Rohini

  • Problem in sending JMS message on remote OC4J

    I have two OC4J standalone (10.1.3.0.0 build 041119.0001.2385)
    The containers work on Windows2000 in different machines connected by the LAN.
    The First container has deployed application from example http://www.oracle.com/technology/tech/java/oc4j/1013/howtos/how-to-jca-intro/doc/how-to-jca-intro.html
    The second container has j2ee application (Servlet) that sending JMS messages in the queue of the first container.
    Code Servlet in second OC4J:
    package mypackage2;
    import javax.servlet. *;
    import javax.servlet.http. *;
    import java.io. PrintWriter;
    import java.io. IOException;
    import javax.jms. *;
    import javax.naming. *;
    import java.util. *;
    public class Servlet1 extends HttpServlet
    private static final String CONTENT_TYPE = "text/html;charset=windows-1251";
    public void init (ServletConfig config) throws ServletException
    super.init (config);
    String QUEUE_NAME = "OracleASjms/MyQueue1";
    String QUEUE_CONNECTION_FACTORY = "OracleASjms/MyQCF";
    public void doGet (HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    response.setContentType (CONTENT_TYPE);
    PrintWriter out = response.getWriter ();
    out.println (" < html > ");
    out.println (" < head > < title > Servlet1 < /title > < /head > ");
    out.println (" < body > ");
    try
    Hashtable env = new Hashtable ();
    env.put (Context. INITIAL_CONTEXT_FACTORY, "oracle.j2ee.rmi.RMIInitialContextFactory");
    env.put (Context. SECURITY_PRINCIPAL, "admin");
    env.put (Context. SECURITY_CREDENTIALS, "admin");
    env.put (Context. PROVIDER_URL, "ormi://host_OC4J_1:23791/jcamdb");
    env.put ("dedicated.rmicontext", "true");
    InitialContext ic = new InitialContext (env);
    QueueConnectionFactory connectionFactory = (QueueConnectionFactory)ic.lookup (QUEUE_CONNECTION_FACTORY);
    QueueConnection connection = connectionFactory.createQueueConnection ();
    connection.start ();
    QueueSession queueSession =
    connection.createQueueSession (false, Session.AUTO_ACKNOWLEDGE);
    Queue queue = (Queue) ic.lookup (QUEUE_NAME);
    ic.close ();
    System.out.println (" Queue: " + queue);
    QueueSender sender = queueSession.createSender (queue);
    System.out.println (" creating Message: " + queue);
    Message message = queueSession.createMessage ();
    System.out.println (" Message created ");
    message.setJMSType ("theMessage");
    message.setLongProperty ("time", System.currentTimeMillis ());
    message.setStringProperty ("id", "11111");
    message.setStringProperty ("oamount", "55555");
    message.setStringProperty ("message", "77777");
    message.setStringProperty ("RECIPIENT", "MDB");
    System.out.println (" Sending message... ");
    sender.send (message);
    System.out.println (" Message sent ");
    sender.close ();
    queueSession.close ();
    connection.close ();
    catch (Exception e)
    System.out.println (" ** TEST FAILED ** < br > Exception: " + e);
    out.println (e.toString ());
    e.printStackTrace ();
    out.println (" < p > The servlet has received a GET. This is the reply. < /p
    ");out.println (" < /body > < /html > ");
    out.close ();
    Error: This code send message in The First container, and should send in the second OC4J !!!!
    Please answer :
    As configure (what code it is necessary to write) servlet (any J2EE the application in OC4J) to use a path to OC4J JMS (remote OC4J JMS) through the Resource Adapter (using OracleASjms.rar). ???

    I have two OC4J standalone (10.1.3.0.0 build 041119.0001.2385)
    The containers work on Windows2000 in different machines connected by the LAN.
    The First container has deployed application from example http://www.oracle.com/technology/tech/java/oc4j/1013/howtos/how-to-jca-intro/doc/how-to-jca-intro.html
    The second container has j2ee application (Servlet) that sending JMS messages in the queue of the first container.
    Code Servlet in second OC4J:
    package mypackage2;
    import javax.servlet. *;
    import javax.servlet.http. *;
    import java.io. PrintWriter;
    import java.io. IOException;
    import javax.jms. *;
    import javax.naming. *;
    import java.util. *;
    public class Servlet1 extends HttpServlet
    private static final String CONTENT_TYPE = "text/html;charset=windows-1251";
    public void init (ServletConfig config) throws ServletException
    super.init (config);
    String QUEUE_NAME = "OracleASjms/MyQueue1";
    String QUEUE_CONNECTION_FACTORY = "OracleASjms/MyQCF";
    public void doGet (HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    response.setContentType (CONTENT_TYPE);
    PrintWriter out = response.getWriter ();
    out.println (" < html > ");
    out.println (" < head > < title > Servlet1 < /title > < /head > ");
    out.println (" < body > ");
    try
    Hashtable env = new Hashtable ();
    env.put (Context. INITIAL_CONTEXT_FACTORY, "oracle.j2ee.rmi.RMIInitialContextFactory");
    env.put (Context. SECURITY_PRINCIPAL, "admin");
    env.put (Context. SECURITY_CREDENTIALS, "admin");
    env.put (Context. PROVIDER_URL, "ormi://host_OC4J_1:23791/jcamdb");
    env.put ("dedicated.rmicontext", "true");
    InitialContext ic = new InitialContext (env);
    QueueConnectionFactory connectionFactory = (QueueConnectionFactory)ic.lookup (QUEUE_CONNECTION_FACTORY);
    QueueConnection connection = connectionFactory.createQueueConnection ();
    connection.start ();
    QueueSession queueSession =
    connection.createQueueSession (false, Session.AUTO_ACKNOWLEDGE);
    Queue queue = (Queue) ic.lookup (QUEUE_NAME);
    ic.close ();
    System.out.println (" Queue: " + queue);
    QueueSender sender = queueSession.createSender (queue);
    System.out.println (" creating Message: " + queue);
    Message message = queueSession.createMessage ();
    System.out.println (" Message created ");
    message.setJMSType ("theMessage");
    message.setLongProperty ("time", System.currentTimeMillis ());
    message.setStringProperty ("id", "11111");
    message.setStringProperty ("oamount", "55555");
    message.setStringProperty ("message", "77777");
    message.setStringProperty ("RECIPIENT", "MDB");
    System.out.println (" Sending message... ");
    sender.send (message);
    System.out.println (" Message sent ");
    sender.close ();
    queueSession.close ();
    connection.close ();
    catch (Exception e)
    System.out.println (" ** TEST FAILED ** < br > Exception: " + e);
    out.println (e.toString ());
    e.printStackTrace ();
    out.println (" < p > The servlet has received a GET. This is the reply. < /p
    ");out.println (" < /body > < /html > ");
    out.close ();
    Error: This code send message in The First container, and should send in the second OC4J !!!!
    Please answer :
    As configure (what code it is necessary to write) servlet (any J2EE the application in OC4J) to use a path to OC4J JMS (remote OC4J JMS) through the Resource Adapter (using OracleASjms.rar). ???

  • OC4J JMS Message retries

    Hello,
    I'm using OC4J JMS on OC4J 9.0.4. I have a message I want to X times. (X is normally 1, but could be more :| ) We have the requirement of supporting both OracleAQ JMS and OC4J JMS.
    If there is an exception I currently rollback, but with OC4J JMS this means it attempts to redeliver again - forever.
    Is there a way to set the maxiumum retries for OC4J JMS! We badly need this functionality.
    We have it when using OJMS (OracleAS JMS), we just set the max-retries when we create the queue!
    I'm horribly tempted to throw an exception so that we can use "JVM property: oc4j.jms.listenerAttempts", which is only used when exceptions are thrown. If I do this how will this affect the way OJMS works?
    Thanks in advance.
    Mark

    Ok, so I tried throwing a RuntimeException to force a rollback. This happens, and the message is redelivered.
    However oc4j.jms.listenerAttempts appears to be ignored. Either the default, or when I specify the property as a system property starting my enqueuing client (java ... -Doc4j.jms.listenerAttempts=1 ...).
    Anyone help me out here?

  • Jmeter fails to test a BPEL with point to point JMS

    Hi all,
    Do you have any idea to Jmeter testing with Oracle BPEL. I configured my Jmeter with a point to point JMS.Then I send a request to a Oracle JMS queue using BPEL locator API.An MDB listens to that request queue pickup the message payload and initiate the BPEL using that i/p payload.BPEL itself after finishes its task call a ws which sends the result to another JMS queue listened by Jemeter.Now when I run Jmeter with this conf BPEL initiates properly by the request queue listener MDB, Jmeter listening to that receive queue appropriately receives the message from the receiving queue, but unfortunately i can't get any response in Jemeter Result view Tree.Jmeter fails to render the specific result to it's view tree.
    I have used following list of jars to send a message payload and receiving it by Jmeter to Jmeter lib.
    Apache Specific
    activemq-all-5.0.0.jar
    Oracle Specific
    javax77.jar
    jta.jar
    jms.jar
    oc4j.jar
    oc4j-internal.jar
    optic.jar
    The jars are sufficient and enough to send a request to a Jms queue.I have wriiten an alternative oracle JMS client and used those Jars and did a lot of trial and error and finally reduced to this number of Jars.But why Jmeter can't render the result to its result view tree that I can't understand where it receives the result message successfully from the receive queue.
    Any reply or suggestion is most welcome.
    Thanks in advance.

    sorry for the late reply. The problem is that Oracle XDK is not compatible with the junitreport task. I believe there are some post install steps (due to licensing issues) that you need to perform before running the ant task. This is noted in the release notes (copied below):
    1. base site for xalan is http://xml.apache.org/xalan-j/ site. to download, go to: http://www.apache.org/dyn/closer.cgi/xml/xalan-j. then from the recommended mirror site download xalan-j_2_7_0-bin.zip.
    2. unzip this file.
    3. copy unzip_dir\xalan-j_2_7_0\serializer.jar to Oracle_Home\bpel\lib\serializer_2.7.0.jar. copy unzip_dir\xalan-j_2_7_0\xalan.jar to Oracle_Home\bpel\lib\xalan_2.7.0.jar. Note the filename change
    4. no change to obsetenv is needed.

  • JMS MQ consume failed

    I have the GA version. I am able to put a message on a MQ queue. But When I try to read from the same queue. it gives me the following error..
    "<2005-05-26 16:06:08,310> <ERROR> <default.collaxa.cube.activation> <JMSAdapter::Inbound>
    javax.jms.InvalidDestinationException: MQJMS2008: failed to open MQ queue "
    I have GET enabled and I am able to get using a simple c program that can do a GET. But using the BPEL orchestration it gives me error when I start the Server.
    Any help will be greatly appreciated.

    Hi Ashwin,
    Can you forwad your Project and JMS Adapter Oc4j-ra.xml file to [email protected] and [email protected]
    Dhaval

  • Javax.jms.JMSException: QueueConnection not started

    Hi,
    I want use oc4j like jms server, so I put in jms.xml this configuration :
    <jms-server port="9127">
         <queue-connection-factory location="jms/simpleQueueConnectionFactory" port="9127" host="127.0.0.1"/>
         <queue name="Simple Queue" location="jms/simpleQueue"/>
    </jms-server>
    and I try to post a message to JMS server with my webapp, and one exception occured :
    javax.jms.JMSException: QueueConnection not started
    this is my piece of code which post the JMS message (like example on http://otn.oracle.com/sample_code/tech/java/codesnippet/j2ee/p2p/PointToPoint_in_OC4J.html) :
    QueueConnectionFactory connectionFactory = (QueueConnectionFactory)new InitialContext().lookup ("java:comp/env/jms/simpleQueueConnectionFactory");
    QueueConnection connection = connectionFactory.createQueueConnection();
    connection.start();
    QueueSession queueSession = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
    Queue queue = (Queue)new InitialContext().lookup("java:comp/env/jms/simpleQueue");
    QueueSender sender = queueSession.createSender(queue);
    Message message = queueSession.createMessage();
    message.setJMSType("theMessage");
    message.setLongProperty("time", System.currentTimeMillis());
    message.setStringProperty("subject", "Test Message Now");
    message.setStringProperty("message", "Hi");
    sender.send(message);
    How can I get more JMS log ? because in jms.log I have only :
    25/10/02 12:04 9.0.3.0.0 Started
    25/10/02 12:05 9.0.3.0.0 Stopped (JVM termination)
    My start command line for oc4j is (http://otn.oracle.com/tech/java/oc4j/htdocs/oc4j-logging-debugging-technote.html):
    java -Djms.debug=true -jar oc4j.jar -userThreads -verbosity 5
    thank you
    best regards
    jerome

    Hi Jerome,
    At this time Oracle recommends you use OJMS (AQ/JMS) as the J2EE 1.3 compatible JMS provider in Oracle9iAS v9.0.2 and v9.0.3. A future release of 9iAS will contain a lightweight JMS provider (OC4J/JMS) that is J2EE 1.3 compatible.
    See the Metalink note below...
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=205305.1

  • Javax.jms.JMSException

    I'm trying to connect to a oems jms queue from a 3rd party client to an oc4j instance. I keep getting a JMSException:
    javax.jms.JMSException: Unable to create a connection to "<server-name>" as user "oc4jadmin".
    The oc4j is running locally, and I can connect to a different oc4j server fine. I'm guessing this is a config issue, but can't figure out what it could be.
    Thanks.

    Hi Jerome,
    At this time Oracle recommends you use OJMS (AQ/JMS) as the J2EE 1.3 compatible JMS provider in Oracle9iAS v9.0.2 and v9.0.3. A future release of 9iAS will contain a lightweight JMS provider (OC4J/JMS) that is J2EE 1.3 compatible.
    See the Metalink note below...
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=205305.1

  • Which jms provider

    For some reason we cant upgrade the appserver from 9.0.2 to 9.0.3 and also we cant upgrade the database from 8i to 9i.
    with these restrictions, is it possible to use the appserver 9.0.2 for any kind of JMS with some open source providers ? We want to use JMS but not with AQ. Also any known open source JMS providers that oracle appserver can integrate with
    Thanks
    bala

    I know they will suport light weigth jms OC4J/JMS in
    oc4j 9.0.4, which suppose to be ready by May
    Ahmed

  • Embedded JMS question

    The JMS server that comes with the install of the Application Server is called OC4J, correct?
    And OJMS is part of the database product then?
    Trying to get the 2 different providers straight. I see where the documentation lists "OJMS has been integrated into OracleAS 10g using the JCA adapter while at the same time leveraging Advanced Queueing in the Oracle Database for persistence and recoverability."
    Does this mean that both are included in the Application Server, but in order to use OJMS you must use the JCA adapter and the separate Oracle Database?

    The reason I was asking was in this document:
    http://www.oracle.com/technology/tech/java/oc4j/904/collateral/OC4J-FAQ-JMS-904.html
    It says...
    "Oracle offers two JMS providers; Oracle JMS (OJMS) and OracleAS JMS. Which one should I be using?"
    And just below it...
    "Oracle offers two JMS providers; OJMS (AQ/JMS) and OC4J/JMS. Which one should I be using?"
    Those statements had lead me to believe that OJMS=AQ/JMS and OracleAS JMS = OC4J.
    Was this a typo, and shouldn't have used OC4J where it did?

  • JDev 10.1.3 - running any application results in connection pool error

    After creating a new project with a MySQL connection and since removing the project, I receive this error no matter which application I try to run through the local OC4J of JDev 10.1.3.0.4.3673.
    I can recreate this issue with a brand new app workspace & project with a single html file.
    06/07/06 14:08:19 WARNING: Application.setConfig Application: current-workspace-app is in failed state as initialization failedjava.lang.InstantiationException: Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    Jul 6, 2006 2:08:19 PM com.evermind.server.Application setConfig
    I'm guessing this is a connection pool issue, but I'm not sure how I associated this connection to the pool, or where to remove it. I've reviewed the help files and searched through this forum, and see references to the connection pool on the AS, but not JDev 10.1.3 itself.
    Any pointers are appreciated! In the mean time I'm continuing my search!

    Can you please clarify the following...
    1) Can we run MDB applications within JDeveloper 10.1.3 ? I noticed there is a jms.xml file in embedded OC4J.
    2) How can we test MDB applications within JDeveloper linked to a JMS Destination OC4J based ?

  • When running a scenario from Unix ( $ prompt)it cant found the DTD for xml

    Dear All,
    I have created an interface that extracts xml messages from JMS queue ( OC4J) successfully. After extracting the message from JMS queue, the interface parse the message and put into an oracle database.
    After when I have created a scenario from the above Interface and tried to run the scenario from $ promt in unix using startscen.sh, it is giving following error message.
    # call the configuration setup file--- Mandatory for running ODI scenario
    . $ODI_HOME/bin/odiparams.sh;
    # Call the scenario for getting Message from JMS queue
    . $ODI_HOME/bin/startscen.sh PKG_JMS_XML 001 GLOBAL "-v=5" | tee out_$$.txt;
    The error I am getting as below
    03/09/2009 05:09:40 PM(main): SnpExpTxt.getObjectLst : :
    [FirstDate:2009-03-09 17:09:40.0
    FirstUser:SUNOPSIS AGENT
    IndChange:null
    IntVersion:null
    ITxt:5194100
    LastDate:2009-03-09 17:09:40.0
    LastUser:SUNOPSIS AGENT
    Txt:0 : 08001 : java.sql.SQLException: Cannot load connection class because of underlying exception: 'java.sql.SQLException: No DTD found and no XML file provided: the XML schema cannot be created'.
    java.sql.SQLException: Cannot load connection class bec
    TxtOrd:0, FirstDate:2009-03-09 17:09:40.0
    FirstUser:SUNOPSIS AGENT
    IndChange:null
    IntVersion:null
    ITxt:5194100
    LastDate:2009-03-09 17:09:40.0
    LastUser:SUNOPSIS AGENT
    Txt:ause of underlying exception: 'java.sql.SQLException: No DTD found and no XML file provided: the XML schema cannot be created'.
         at com.sunopsis.jdbc.driver.JMSXMLDriver.connect(JMSXMLDriver.java)
         at com.sunopsis.sql.SnpsConnection.u(SnpsConnection.
    TxtOrd:1, FirstDate:2009-03-09 17:09:40.0
    FirstUser:SUNOPSIS AGENT
    IndChange:null
    IntVersion:null
    ITxt:5194100
    LastDate:2009-03-09 17:09:40.0
    LastUser:SUNOPSIS AGENT
    Txt:java)
         at com.sunopsis.sql.SnpsConnection.c(SnpsConnection.java)
         at com.sunopsis.sql.i.run(i.java)
    TxtOrd:2]
    Anybody please help ?
    regards
    Umapada

    Hello,
    Try to remove and recreate your package and scenario, I had the same issue and solved doing it.
    It seems for me that the package cannot update its contents, for example, if you change something in your interface, you must recreate your package and scenario to update the changes.
    What ODI version do you use? If you use an old version, try to update to ODI 10.1.3.5
    Regards,
    Wallace Galvão
    São Paulo - Brazil

  • Web service SOAP

    Hello,
    I have a problem with a webservices.
    I have the following message :
    <?xml version="1.0" encoding="utf-8" ?>
    - <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
    - <asx:values>
      <SYSTEMFAULT href="#o611" />
      </asx:values>
    - <asx:heap xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:abap="http://www.sap.com/abapxml/types/built-in" xmlns:cls="http://www.sap.com/abapxml/classes/global" xmlns:dic="http://www.sap.com/abapxml/types/dictionary">
    - <cls:CX_AI_SYSTEM_FAULT id="o611">
    - <CX_ROOT>
      <TEXTID>F63AFF63DBE4BB4786A7F52CC4167145</TEXTID>
      <PREVIOUS />
      <KERNEL_ERRID />
    - <INTERNAL_SOURCE_POS>
      <PROGID>208</PROGID>
      <CONTID>1080</CONTID>
      </INTERNAL_SOURCE_POS>
      </CX_ROOT>
      <CX_STATIC_CHECK />
    - <CX_AI_SYSTEM_FAULT>
      <CODECONTEXT>http://www.sap.com/xml_errorcodes</CODECONTEXT>
      <CODE>SoapFaultCode:1</CODE>
      <ERRORTEXT>no SOAPAction header!</ERRORTEXT>
      <LANGUAGE />
      </CX_AI_SYSTEM_FAULT>
      </cls:CX_AI_SYSTEM_FAULT>
      </asx:heap>
      </asx:abap>
    I don' t understand the problem
    It's on CRM ECC5.
    Thank you for you response.
    Vanessa

    The ant build.xml has following classpath set.
    Please see that you have the jar files in the specified folders in oc4j.
    A better option would be to use the oc4j version mentioned in the readme
    Also see that you set the oc4j home and struts home isi set correct in your build.xml as specified in the readme
    Classpath:
    {oc4j.home}/j2ee/home/lib/activation.jar:${oc4j.home}/j2ee/home/lib/ejb.jar:${oc4j.home}/j2ee/home/lib/jdbc.jar:${oc4j.home}/j2ee/home/lib/jndi.jar:${oc4j.home}/j2ee/home/lib/jms.jar:${oc4j.home}/j2ee/home/lib/jta.jar:${oc4j.home}/j2ee/home/lib/http_client.jar:${oc4j.home}/jdbc/lib/classes12dms.jar:${oc4j.home}/jdbc/lib/nls_charset12.jar:${oc4j.home}/soap/lib/soap.jar:${oc4j.home}/lib/xmlparserv2.jar:${oc4j.home}/j2ee/home/lib/servlet.jar:${oc4j.home}/webservices/lib/wsserver.jar:${struts.home}/lib/struts.jar:${oc4j.home}/j2ee/home/lib/mail.jar:${WebService}/proxy"
    Kelvin

  • Amazon Ecommerce Web Service (SOAP)

    Hi, I have a problem with SOAP request. The following is the SOAP request I made
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <env:Envelope xmlns:env=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0=" http://webservices.amazon.com/AWSECommerceService/2007-04-04">
    <env:Body>
    <ns0:ItemLookup>
    <ns0:AWSAccessKeyId>0N15S9KAAAYYNQ86R202</ns0:AWSAccessKeyId>
    <ns0:Shared>
    <ns0:IdType>ASIN</ns0:IdType>
    <ns0:ItemId>B00008OE6I</ns0:ItemId>
    </ns0:Shared>
    <ns0:Request>
    <ns0:IdType>ASIN</ns0:IdType>
    <ns0:ItemId>B00008OE6I</ns0:ItemId>
    </ns0:Request>
    </ns0:ItemLookup>
    </env:Body>
    </env:Envelope>
    But the response is
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <SOAP-ENV:Envelope xmlns:xsi=" http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENC=" http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=" http://www.w3.org/1999/XMLSchema" SOAP-ENV:encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/">
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode xsi:type="xsd:string">SOAP-ENV:Client</faultcode>
    <faultstring xsi:type="xsd:string">We encountered an error at our end while processing your request. Please try again
    </faultstring>
    <detail xsi:type="xsd:string">URN http://webservices.amazon.com/AWSECommerceService/2007-04-04 is not valid.</detail>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    <!-- Request ID: 11JJQ383YJ0TA9SPSQQ8 -->
    Can anyone tell me what the problem is and how to solve it? (I am using JDeveloper to build the client)
    Thank you.

    The ant build.xml has following classpath set.
    Please see that you have the jar files in the specified folders in oc4j.
    A better option would be to use the oc4j version mentioned in the readme
    Also see that you set the oc4j home and struts home isi set correct in your build.xml as specified in the readme
    Classpath:
    {oc4j.home}/j2ee/home/lib/activation.jar:${oc4j.home}/j2ee/home/lib/ejb.jar:${oc4j.home}/j2ee/home/lib/jdbc.jar:${oc4j.home}/j2ee/home/lib/jndi.jar:${oc4j.home}/j2ee/home/lib/jms.jar:${oc4j.home}/j2ee/home/lib/jta.jar:${oc4j.home}/j2ee/home/lib/http_client.jar:${oc4j.home}/jdbc/lib/classes12dms.jar:${oc4j.home}/jdbc/lib/nls_charset12.jar:${oc4j.home}/soap/lib/soap.jar:${oc4j.home}/lib/xmlparserv2.jar:${oc4j.home}/j2ee/home/lib/servlet.jar:${oc4j.home}/webservices/lib/wsserver.jar:${struts.home}/lib/struts.jar:${oc4j.home}/j2ee/home/lib/mail.jar:${WebService}/proxy"
    Kelvin

  • PLEASE : How to configure a QueueConnectionFactory

    I need to know how to configure a QueueConnectionFactory in jms.xml. I tried :
         <queue name="Queue proc" location="jms/movProcQueue">
              <description>A dummy queue</description>
         </queue>     
         <queue-connection-factory name="Queue Conn Factory" location="jms/movProcQueueConnectionFactory">
              <description>A dummy topic</description>
         </queue-connection-factory>
    but when i try to get it :
    QueueConnectionFactory conFactory =(QueueConnectionFactory) ctx.lookup("java:comp/env/jms/movProcQueueConnectionFactory");
    I get the following message:
    javax.naming.NameNotFoundException: jms/movProcQueueConnectionFactory not found in Application Client
    java.lang.Object com.evermind.naming.MapContext.lookup(java.lang.String) MapContext.java:49
    Please, I really need to know...

    Hi Marcelo,
    Obviously I can't speak for any one else on this forum -- but I'm not
    a mind reader. The lookup string you use depends on whether your queue
    client is also deployed to the OC4J container or not -- which you fail
    to mention (in fact you don't mention anything about your environment,
    this always helps -- me, at least :-)it's in the same machine (client and OC4J)
    Also, the type of InitialContext object you create also depends on your client type and how you deploy it.it'd the com.evermind.server.ApplicationClientInitialContextFactory
    So perhaps it would help you obtain an answer if you supplied the following:
    1. Platform (SUN, intel, etc.)Intel
    2. Operating system (UNIX, WinNT, linux, etc.)WinNT
    3. OC4J version (1.0.2.2.1?)R2
    4. Your JMS provider (OC4J, Swift, etc.)OC4J
    5. Your deployment descriptors (XML files).I really need to reference the QueueConnectionFactory and the QUeue itself int he application-client.xml file?
    mine:
    <?xml version="1.0"?>
    <!DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN" "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">
    <application-client>
         <resource-ref>
              <res-ref-name>jdbc/OracleDS</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
         </resource-ref>
         <resource-ref>
              <res-ref-name>jms/QueueConnectionFactory</res-ref-name>
              <res-type>jms.javax.jms.QueueConnectionFactory</res-type>
              <res-auth>Container</res-auth>
              <resource-env-ref-type>jms.javax.jms.Queue</resource-env-ref-type>     
         </resource-ref>     
         <resource-env-ref>
              <resource-env-ref-name>jms/Queue</resource-env-ref-name>
              <resource-env-ref-type>jms.javax.jms.Queue</resource-env-ref-type>
         </resource-env-ref>
    </application-client>
    6. Code showing how you are creating your "Context" object.InitialContext ctx=new InitialContext();
    // Lookup a JMS connection factory
    QueueConnectionFactory conFactory =(QueueConnectionFactory) ctx.lookup("java:comp/env/jms/QueueConnectionFactory");
    // Create a JMS connection
    QueueConnection connection = conFactory.createQueueConnection();
    // Create a JMS session object
    QueueSession session = connection.createQueueSession(true,0);
    // Lookup a JMS queue
    Queue queue= (Queue) ctx.lookup("java:comp/env/jms/Queue");
    // Create a JMS sender
    QueueSender sender = session.createSender(queue);
    Enumeration enum=vetor.elements();
    ObjectMessage message=null;
    while(enum.hasMoreElements())
    Movimento mov=(Movimento) enum.nextElement();
    message=session.createObjectMessage(mov);
    sender.send(message);
    //enviar mensagem de fim de processamento
    connection.close();
    Cheers,
    Avi.

Maybe you are looking for