Results 1 to 2 of 2
  1. #1
    oshoarun is offline Member
    Join Date
    Mar 2010
    Posts
    2
    Rep Power
    0

    Default Create a CLOB object with the string value

    Hello Friends,

    This problem, I am facing while sending objects to ORACLE-AQ (message queueing) using SPRINGS

    I have a String value with me (XML). and I have a method like


    public void setPayLoad(oracle.sql.CLOB payload) {
    this.payload=payload ;
    }

    I need to convert the string to a CLOB and set the same in above method

    I very well know that CLOB can be created by using the below way

    CLOB.createTemporary(conn, true, CLOB.DURATION_SESSION);

    but the problem is, I am using spring's frame work to handle the JMSConnections


    Not able to get the connection object from springs.. :(



    Is there anyother way to create CLOB from java ??? Pleaes help me friends !!


    Thanks in Advance !!

  2. #2
    oshoarun is offline Member
    Join Date
    Mar 2010
    Posts
    2
    Rep Power
    0

    Default

    Guys !!!

    I myself found the answer, on how to get the dbConnection of JMS session :-)


    its session.getDbConnection()



    Anyways, Thanks for the people who attempted to help me !!!!

Similar Threads

  1. create object with name from string
    By skandalouz in forum New To Java
    Replies: 7
    Last Post: 12-05-2009, 11:40 PM
  2. How to create object dinamically and call methods.
    By Gelembjuk in forum New To Java
    Replies: 8
    Last Post: 10-26-2008, 09:28 AM
  3. how to create an object at runtime
    By sireesha in forum New To Java
    Replies: 8
    Last Post: 10-01-2008, 12:52 PM
  4. Replies: 1
    Last Post: 04-09-2008, 02:15 AM
  5. Automation server can't create object
    By katie in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 08-06-2007, 10:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •