Xsql servlet threading model?

does anybody know the threading model supporting by the xsql servlet? from my testing, it appears that it only supports single threaded.
environment: nt 4.0, svcpack 5/iis/servlet exec 2.2/jdk 1.1.8/xsql servlet 0.9.6
any help/info appreciated.
thanks
michael lasmanis

steve,
here are the java vm settings from servlet exec. all the other settings are in line with the install instructions.
VM Settings
Java VM: 1.1.8 from Sun Microsystems Inc.
JITC: symcjit
Host: Windows NT 4.0 on x86
Native Stack Size: 128K Bytes
Java Stack Size: 400K Bytes
Minimum Heap Size: 1024K Bytes
Maximum Heap Size: 524288K Bytes
Verbose GC: Disabled
Verbose: Disabled
JITC: Enabled
Class GC: Enabled
Async GC: Enabled
Verify: Remote
Java VM: Sun Classic
null

Similar Messages

  • Single Threaded Model JSP- Servlet

    Servelts can be set to have thread safe access (Single thread model). However, when a JSP is converted in to a servlet, is the servlet tagged as to use the single thread model?

    As of JSP specification 1.2 the default value for the "isThreadSafe" attribute of the page directive is true indicating that the container can direct multiple requests to the page simultaneously. If this value is set to false then the requests will be sent one at a time.
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems inc
    http://www.sun.com/developers/support

  • Oracle's XML Publisher in JDeveloper and XSQL Servlet

    A While ago, in this thread JDeveloper 10g, XSQL and FOP , was mentioned an ongoing effort for the "integration of Oracle's XML Publisher in JDeveloper and XSQL Servlet", Is this still happening ?, will this be something will be able to use without having to be an Oracle Apps shop? Any additional info would be appreciated.

    Hi,
    is there any progress about XML publisher integration with JDeveloper. I'm right now examining XML publisher but there is no explicit directions and explanations of using XML publisher with jdeveloper.
    any news !?
    best regards...
    --barisk                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problems installing latest XSQL Servlet

    After following the instructions for installing XSQL servlet for Apache with Jserv, I get the following error with a simple sql query.
    Oracle XSQL Servlet Page Processor 9.0.1.0.0 (Production)
    XSQL-017: Unexpected Error Occurred
    java.lang.AbstractMethodError: oracle/jdbc/driver/OracleResultSet.getStatement
    at oracle.xml.sql.dataset.OracleXMLDataSetExtJdbc.(OracleXMLDataSetExtJdbc.java:117)
    at oracle.xml.sql.core.OracleXMLConvert.initObject(OracleXMLConvert.java:345)
    at oracle.xml.sql.core.OracleXMLConvert.getXML(OracleXMLConvert.java:823)
    at oracle.xml.sql.query.OracleXMLQuery.getXMLDOM(OracleXMLQuery.java:364)
    at oracle.xml.sql.query.OracleXMLQuery.getXMLDOM(OracleXMLQuery.java:312)
    at oracle.xml.xsql.actions.XSQLQueryHandler.handleAction(XSQLQueryHandler.java:240)
    at oracle.xml.xsql.XSQLDocHandler.getDocument(XSQLDocHandler.java:132)
    at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:134)
    at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
    at org.apache.jserv.JServConnection.run(JServConnection.java:188)
    at java.lang.Thread.run(Thread.java:475)
    Can anyone help

    I have included the following libs as described in the installation notes
    ie in the jserv.properties file I have
    # Oracle XSQL
    # Oracle XML SQL Utility (XSU)
    wrapper.classpath=C:\xsql\lib\sax2.jar
    wrapper.classpath=/usr/local/src/xdk/lib/xsu12.jar
    # Oracle XSQL Servlet
    wrapper.classpath=/usr/local/src/xdk/lib/oraclexsql.jar
    # Oracle JDBC (8.1.6) -- JDBC 2.0 driver
    wrapper.classpath=/usr/local/src/xdk/lib/classes12.zip
    # Oracle XML Parser V2 (with XSLT Engine)
    wrapper.classpath=/usr/local/src/xdk/lib/xmlparserv2.jar
    # XSQLConfig.xml File location
    wrapper.classpath=/usr/local/src/xdk/xdk/admin
    # FOR Apache FOP Generation, Add
    # wrapper.classpath=C:\xsql\lib\xsqlserializers.jar
    # wrapper.classpath=FOPHOME/fop_bin_0_14_0.jar
    # wrapper.classpath=FOPHOME/lib/w3c.jar
    And in the httpd.conf file I have
    Alias /xsql/ "/usr/local/src/xdk/xdk/"
    Also in the xml config file
    <connection name="promptl">
    <username>******</username>
    <password>******</password>
    <dburl>jdbc:oracle:thin:@192.****:1521:8C</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    </connection>
    I think the problem may be with my jdbc file???
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jinyu Wang ([email protected]):
    Have include all the libs like:
    # Oracle XSQL Servlet
    wrapper.classpath=/private/orahome/lib/oraclexsql.jar
    # Oracle JDBC
    wrapper.classpath=/private/orahome/jdbc/lib/classes12.zip
    # Oracle XML Parser V2 (with XSLT Engine)
    wrapper.classpath=/private/orahome/lib/xmlparserv2.jar
    # Oracle XML SQL Components for Java
    wrapper.classpath=/private/orahome/rdbms/jlib/xsu12.jar
    Especially xsu12.jar?<HR></BLOCKQUOTE>
    null

  • Can not make XSQL servlet running under Jrun 3.1! need help

    Hi,
    I tried to run Oracle XSQL servlet under JRun 3.1,I did servlet mapping, such as
    <servlet-name>oracle-xsql-servlet</servlet-name>
    <servlet-class>oracle.xml.xsql.XSQLServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>oracle-xsql-servlet</servlet-name>
    <url-pattern>*.xsql</url-pattern>
    </servlet-mapping>
    I set classpath for XSQL related library such as oraclexsql.jar, xmlparserv2.jar,etc, I believe everything is setup correctly, however when I invoke .xsql page, I did not get data instead of getting sql text!, here is my xsql file content:
    <?xml version="1.0"?>
    <!-- reports.xsql: List of reports by user id -->
    <?xml-stylesheet type="text/xsl" href="Filter.xsl"?>
    <page connection="reports_8i" xmlns:xsql="urn:oracle-xsql">
         <dataform target="reportFilter.jsp" submit="Go">
    <xsql:set-session-param name="userid" value="{@userid}" ignore-empty-value="no"/>
         <xsql:include-param name="userid"/>
         <xsql:set-session-param name="bu_id" value="{@bu_id}" ignore-empty-value="no"/>
         <xsql:include-param name="bu_id"/>
         <xsql:set-session-param name="client_id" value="{@client_id}" ignore-empty-value="no"/>
         <xsql:include-param name="client_id"/>
         <item type="list" name="targetPage" label="Available Reports">
         <xsql:ref-cursor-function bind-params="userid">
                   reports_generation.getReportList(?)
              </xsql:ref-cursor-function>
              </item>
         </dataform>
    </page>
    What I got when I invoked this page is reports_generation.getReportList(?)!!
    It seems that JRun 3.1 did not understand xsql syntax, it means it can not find XSQL servlet related libraries, come on, I did set classpath.
    Does anyone has this experience to help me out? Highly appreicate you in advance.
    Thanks.

    i think i solved this problem by specifying the full path to javac...
    what must i do to avoid this?

  • XSQL Servlet and Dynamic SQL

    Does the XSQL servlet support dynamic SQL? Take a stock screening page as an example. In this example you want to dynamically build the where clause based on user input. Thus if a Minimum PE Ratio of 3 was entered, the where clause of "where PE_Ratio >= 3" would be appended to the query. In this case there may be up to 20 different parameters or more to be mapped dynamically, so it wouldn't be feasible to nest all of the different combinations.

    XSQL Supports lexical substitution parameters
    so any and every part of any query can be parameterized.
    The extreme case is:
    <query> {@sql} </query>
    where the entire query is passed in
    in a parameter (named "sql").
    But any combination of parameters
    and substitutions is legal and can
    be used to do what you want.
    Since the variables are not BIND
    variabled, but instead lexical
    substitution variables, you can
    do things like:
    <query>
    select {@collist}
    from {@table}
    where {@where}
    order by {@orderby}
    </query>
    You can provide default parameter values
    using XML attributes on the <query>
    element which then can be overridden
    if a value is passed in in the request...
    <query collist="ename, sal"
    orderby="sal desc"
    where="1=1"
    from="dept">
    select {@collist}
    from {@table}
    where {@where}
    order by {@orderby}
    </query>
    And then a request to the page
    can pass in a orderby=decode(comm,null,1,0)
    or something to override the defaults.
    null

  • How to install oracle xsql servlet on bea weblogic 5.1

              Hi there,
              I tried to install oracles xsql servlet (1.0.4.1) on bea weblogic 5.1 without
              any success.
              in weblogic.properties I started with:
              weblogic.httpd.webApp.xsql=c:\\weblogic\\myserver\\servletclasses\\xsql
              And in this dir I have WEB-INF with the following web.xml:
              <?xml version="1.0" encoding="ISO-8859-1"?>
              <!DOCTYPE web-app
              PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
              "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
              <web-app>
              <servlet>
              <servlet-name>oracle-xsql-servlet</servlet-name>
              <servlet-class>oracle.xml.xsql.XSQLServlet</servlet-class>
              </servlet>
              <servlet-mapping>
              <servlet-name>oracle-xsql-servlet</servlet-name>
              <url-pattern> *.xsql </url-pattern>
              </servlet-mapping>
              </web-app>
              So the xsql extension is mapped to the named servlet which is found in a jar file
              contained in subdirectory lib.
              The problem is that the general mapping of *.xsql extension to specified class
              does not work at all. And there are no errors...
              Application server just presents me with the content of the xsql file instead
              of executing servlet whith the xsql file as input.
              Any ideas??
              Thanx in advance.
              JK
              

    What kind of problem do you have?
    If it's not connected with JDBC, you'd better post your question
    in webservices newsgroup.
    Regards,
    Slava Imeshev
    "leopld goess" <[email protected]> wrote in message
    news:[email protected]..
    hy out there.
    i've been working with apache soap on wl 5.1 for a while now, and
    everything seems to be working allright- as long as i don't try to
    install a servicepack, namely sp8 or sp10. if i do that, the entire
    soap service fails to deploy.
    any ideas...
    thanx
    leopold

  • Query handled OK on Oracle server but XSQL Servlet raises OracleXMLSQLException

    After dropping and recreating certain object types, and then using ALTER TYPE on an object dependent on those object types, XSQL Servlet raises exception for a query that is handled fine in the Oracle Server itself (ie, in SQL*Plus) as in the following test case:
    create or replace type o_object_inner as object( char1 char(1) )
    create or replace type n_nested_table as table of o_object_inner
    create or replace type o_object_outer as object (nNestedTab n_nested_table)
    For above, the following query encounters no problems on Oracle Server or in XSQL servlet:
    Select o_object_outer(NULL) as "theOuterObj" from dual
    But then if object types are modified as follows:
    drop type o_object_inner force
    create or replace type o_object_inner as object( char1 char(1) ) --same as above
    drop type n_nested_table force
    create or replace type n_nested_table as table of o_object_inner --same as above
    alter type o_object_outer compile
    The above query now encounters no problems in SQL*Plus but generates exception in XSQL servlet as follows:
    oracle.xml.sql.OracleXMLSQLException: Internal Error: Unable to resolve name
    More complex cases generated the above exception and/or the following exception:
    oracle.xml.sql.OracleXMLSQLException: Internal Error: Invalid ADT attribute
    Any insight or help would be greatly appreciated!
    Other info:
    Oracle Server 8.1.7.3 on HP-UX
    XDK 9.2.0.1 (Production) for Java on NT
    JDBC/OCI8 drivers for NT (latest for 8.1.7)

    Yes,
    I changed most of the cursor functions to cast(multiset()). Sometimes i divided a big query into two or three queries (when there was cursor nested in a cursor). It was one day work for me. Don't forget to change the tags with ROW to ITEM in your xsl-stylesheets.
    Uwe

  • ANN: XSQL Servlet 0.9.8.6 Release Available

    Oracle is excited to announce the 0.9.8.6 technology preview
    release of Oracle XSQL Pages and the XSQL Servlet with major
    new functionality.
    -----------------[ Download Info ]-------------------
    http://technet.oracle.com/tech/xml/xsql_servlet/
    Click on "Software" to Download
    Click on "Release Notes" for Full Documentation
    XSQL Pages are server-side XML templates that make it easy
    to exploit the powerful combination of SQL, XML and XSLT to
    prototype and deploy dynamic, data-powered sites and web
    services.
    The XSQL Servlet installs into your favorite Java Servlet
    environment and works with your favorite relational database,
    making it dead easy to:
    -> Assemble XML "DataPages" from multiple SQL Query
    Results (including full support for Oracle8i's
    richly-structured XML Objects Views), local or remote
    XML resources, Stored Procedure Calls, etc.
    -> Transform the "DataPages" in the server using XSLT,
    optionally using stylesheets that are appropriate to
    the requesting client, including the ability to
    let the client to the stylesheet processing for IE5
    or other clients in the future that support this.
    Our online support forum for XML is at:
    http://technet.oracle.com/support/bboard/discussions.htm
    The XSQL Servlet demos (included in the release) are
    installed on Oracle's OTN site and can be tested from the
    comfort of your browser before you download if you choose:
    http://technet.oracle.com/tech/xml/demo/demo1.htm
    This new 0.9.8.6 release includes...
    More Documentation
    ==================
    More extensive documentation and new tutorial material.
    New Demos
    =========
    New and enhanced demos with additional notes describing key
    points each demo is trying to illustrate.
    New API's and JavaDoc
    =====================
    Programmatically process XSQL Pages from your own Java
    programs using a new XSQLRequest object, as well as write
    custom page "action handlers" with new JavaDoc and
    example code.
    New Features
    ============
    <xsql:query>
    The <query> element from previous releases is now part of
    the xsql namespace and is referred to using the new
    <xsql:query> syntax in your XSQL Page. A new section details
    how to use <xsql:query> to produce XML query results with
    nested structure.
    <xsql:dml>
    Do DML and call stored procedures anywhere you need to in
    your XSQL Pages.
    <xsql:stylesheet-param>
    Use parametrized XSLT Stylesheets and set the stylesheet
    parameter values from your XSQL Page.
    <xsql:insert-request>
    Automatically insert posted XML or HTML Form parameters into
    the database.
    <xsql:include-xml>
    Include arbitrary XML resources at any point in your page by
    relative or absolute URL.
    <xsql:include-request-params>
    Include key information like HTTP Parameters, Session
    Variable values and Cookies into your XSQL Page for
    addressing them in your stylesheet.
    <xsql:include-xsql>
    Include the results of one XSQL Page at any point inside
    another. This allows sophisticated combinations of multiple
    XML data sources and multiple XSLT transformations.
    <xsql:include-owa>
    Include the results of executing a stored procedure that
    makes use of the Oracle Web Agent (OWA) packages inside the
    database to generate XML.
    <xsql:action>
    Invoke a user-defined action handler, implemented in Java,
    for executing custom logic and including custom XML
    information into your XSQL Page.
    null

    That error message is outdated and should read:
    Cannot find XSQLConfig.xml in your server-side classpath. The error is definitely that it's not finding XSQLConfig.xml on your classpath. The likely cause is that you did not add the directory:
    ./xsql/lib
    to your CLASSPATH in the JRun Servlet Engine Java environment.

  • Oracle XSQL Servlet Parse Error when anchoring a link to an image

    I have a database of document links that I wish to portray in a table as graphic images. In other words, each image is a hypertext link to the document.
    From my HTML 101 I used to do this as follows:
    <IMG SRC="image.gif">
    Note, no </IMG> end tag, but this produces an image that I can click to access that document. Lousy form, but it works.
    When I run my XSL with corresponding XSQL file to create the HTML file I get the following Servlet Parse Error:
    Oracle XSQL Servlet Page Processor 1.0.1.0 (Production)
    XSQL-006: XSLT stylesheet is not well-formed: ucmDatabase3.xsl
    XML parse error at line 66, char 15
    End tag does not match start tag 'img'
    I then added the </IMG> end tag,
    <IMG SRC="image.gif"> </IMG>
    which satisfies the parser, but now I get my graphic image AND the underlined linked text together in the same table cell, which SUCKS...
    Is there a way around this madness?
    Thanks for your comments..
    Jon Kotas
    Boeing
    Canoga Park, CA

    Remember that an XSLT stylesheet is, in particular, a well-formed XML document. In a well-formed XML document, you
    cannot have an unterminated element like:
      <foo>
        <bar>  <!-- This elemenent is not closed correctly -->
      </foo>So, in your example, you're running into the problem with
    your <IMG> tag, since you have:
      <A>
        <IMG src="...">  <!-- This elt is not closed correctly -->
      </A>You just need to close the IMG tag by changing the closing > to /> instead, like this:
      <A>
        <IMG src="..."/>  <!-- This elt *IS* closed correctly -->
      </A>When it's written out to the browser, you'll see that the
    trailing slash will be removed, so the browser will be
    happy, too.

  • XSQL servlet behave strange in Websphere 5.1 but not in Jboss/tomcat

    Hi, we have been using XSQL Servlet (come with 9i) in jboss for a few years without any problem.
    (The oracle database is 10g, but I don't think this is related since the XSQL use jdbc connection.)
    Recently we try to migrate the app server to websphere app server 5.1 and the majority of xsql scripts work fine (still using the original xdk/xsql jars)
    But for a few with xsql script using:
    <xsql:include-request-params xmlns:xsql="urn:oracle-xsql"/>
    it works for simple test xsql script with just this line at the very begining.
    Then I switch to a more complicated xsql with other lines such as: update-request, delete-request, it throws exceptions all the time, and after that the simple test script also breaks.
    Here is the exception in the xml returned:
    <request>java.lang.NullPointerException at oracle.xml.xsql.XSQLHttpUtil.HttpRequestAsXMLDocument(XSQLHttpUtil.java:116) at oracle.xml.xsql.XSQLServletPageRequest.getRequestParamsAsXMLDocument(XSQLServletPageRequest.java:382) at oracle.xml.xsql.actions.XSQLIncludeRequestHandler.handleAction(XSQLIncludeRequestHandler.java:39) at oracle.xml.xsql.XSQLDocHandler.getDocument(XSQLDocHandler.java:149) at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:140) at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174) at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200) at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119) at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276) at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71) at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114) at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186) at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334) at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56) at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)</request>
    Could this be a bug?
    Did anyone have a clue?
    I also tried to use the xdk for 10g, but the library doesn't work with WAS 5.1 somehow, it complains about:
    javax.xml.namespace.QName: method <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V not found
    Really appreciate your help.
    Kai.

    The fact that XSQL servlet works in other containers suggests that this is WS problem, not the servlet problem. Probably some misimplementation of a deprecated method or something. What is exact version of XSQL servlet? Have you tried with the latest 9.2.0.9 production that comes with 9.2.0.7 db patch set? If you did and the error persists, does the error stack match the one posted (line numbers are of particular interest?)

  • Setting up the XSQL Servlet engine

    I am trying to set up the XSQL servlet component of 9iAS. From what I read all of the necessary components are included in 9iAS, there is no need to download the XSQL servlet from technet. Is this true? I try to run the demo's (e.g. hello world) but am always getting a connection refused error. I edited the XSQLConfig.xml file to include the host, port and sid but still no luck.
    I am at a loss. I have 8.1.7 SE database installed with JDBC drivers, 9iAS 1.0.2. Is this all I need or do I have to download something else.

    Steven,
    Thanks for responding. I am a DBA so I'm only 50% incompetent. The 9iAS version is 1.0.2.1.0 Solaris and the DB is 8i SE, right now on the same Solaris box. The Jserv and JSP demos on the initial install home page work fine and I was able to get Oracle Portal running etc. so I think the Server is working. When I check the installed products for the DB I see several JDBC drivers appear to be installed.
    segmet from XSQLConfig.xml:
    <connection name="demo">
    <username>scott</username>
    <password>tiger</password>
    <dburl>jdbc:oracle:thin:@192.100.146.22:1521:NPGSDEV</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    </connection>
    I can connect scott/tiger@npgsdev in sqlplus as well as tnsping npgsdev and the port is 1521 so the tnslistener is up and running.
    I can call up the demo page at: http://192.100.146.22:7777/xsql/java/xsql/index.html
    but any attempt to run them gives:
    Oracle XSQL Servlet Page Processor 1.0.0.0 (Production)
    Oracle XSQL Servlet Page Processor 1.0.0.0 (Production)
    XSQL-007: Cannot acquire a database connection to process page.
    Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135294976)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    Any help would be greatly appreciated. -quinn

  • Oracle XSQL Servlet entries in jserv.properties

    In my oracle 8.7 instllation on Win NT, the jserv.properties file has the foll entries
    # Oracle XSQL Servlet
    wrapper.classpath=D:\oracle\ora81/lib/oraclexsql.jar
    wrapper.classpath=D:\oracle\ora81/jdbc/lib/classes12.zip
    wrapper.classpath=D:\oracle\ora81/lib/xmlparserv2.jar
    wrapper.classpath=D:\oracle\ora81/rdbms/jlib/xsu12.jar
    wrapper.classpath=D:\oracle\ora81/xdk/lib
    Is this correct, or should the slashes in be changed as in D:\oracle\ora81\lib\oraclexsql.jar
    null

    I may sound stupid,
    But why does it not matter?
    null

  • How to Create an XML document from XSQL servlet which follows a particular DTD struct

    how to Create an XML document from XSQL servlet which follows a particular DTD structure.Could anyone send me a sample code for this.

    You'll need to associate an XSLT transformation with your XSQL page that transforms the canonical result into your DTD-valid format.
    For example, given an XSQL page like:
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="rss.xsl" ?>
    <xsql:query max-rows="3" connection="demo" xmlns:xsql="urn:oracle-xsql">
    select title,id,description,url,to_char(timestamp,'Mon DD') timestamp
    from site_entry
    order by id desc
    </xsql:query>and an "rss.xsl" stylesheet that looks like this:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" indent="yes" doctype-system="rss-0.91.dtd"/>
    <xsl:template match="/">
    <xsl:for-each select="ROWSET/ROW">
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    <xsl:for-each select="ITEM">
    <item>
    <title><xsl:value-of select="TITLE"/></title>
    <link><xsl:value-of select="URL"/></link>
    <description><xsl:value-of select="DESCRIPTION"/></description>
    </item>
    </xsl:for-each>
    </channel>
    </rss>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>You produce DTD-valid output against the rss-0.91.dtd DTD that looks like:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!DOCTYPE rss SYSTEM "rss-0.91.dtd">
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    </channel>
    </rss>
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    </channel>
    </rss>
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    </channel>
    </rss>

  • Retrieving lots of rows through XSQL servlet

    Hi Steve!
    I am currently trying to break XSQL-servlet in order to have some proof of usability for our customers.
    During one of these 'sessions' I discovered that the XSQL servlet throws me out with an exception error (out of memory) when I try to retrieve 70K+ rows from a table using the XSQL commandline utility. The same thing happens when requested through the webserver.
    This is definitely something I would like to be able to do without problems and (preferably) without too much programming.
    Do you know of an elegant way to handle this?
    BTW: We are trying to write a plain-and-simple export-to-XML utility, which dumps all rows of a given table to an XML file which we can feed to the XMLLoader utility from your book (which is -by the way- a great book!!)
    Would you be able to give us some suggestions?

    Here's some working code:
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    import java.util.Stack;
    import java.io.*;
    public class ExampleContentHandler extends DefaultHandler {
    PrintWriter p;
    Stack s;
    ExampleContentHandler(PrintWriter p) {
    this.p = p;
    public void startDocument() {
    s = new Stack();
    public void startElement(String uri,
    String localName,
    String qname,
    Attributes attrs) throws SAXException {
    s.push(qname);
    p.print("<"+qname);
    int numAttrs = attrs.getLength();
    for (int j = 0; j < numAttrs; j++) {
    p.print((new StringBuffer(" ")).append(attrs.getQName(j))
    .append("='")
    .append(attrs.getValue(j))
    .append("'").toString());
    p.print(">");
    public void endElement(String uri,
    String localName,
    String qname) throws SAXException {
    s.pop();
    p.print("</"+qname+">");
    public void characters(char[] p0, int p1, int p2) throws SAXException {
    p.print(quote(new String(p0,p1, p2)));
    public void endDocument() {
    p.flush();
    private String quote(String val)
    StringBuffer s = new StringBuffer();
    int len = val.length();
    for (int i = 0; i < len; i++ )
    char c = val.charAt(i);
    switch (c)
    case '\r':
    s.append('\n');
    break;
    case '&':
    s.append("&;");
    break;
    case '<':
    s.append("<");
    break;
    case '>':
    s.append(">");
    break;
    default:
    s.append(c);
    return s.toString();
    import org.xml.sax.*;
    import java.sql.*;
    import java.io.*;
    import oracle.xml.sql.query.*;
    import oracle.xml.parser.v2.*;
    class XMLForQueryResults {
    public static void main (String arg[]) throws Exception {
    Connection cn = ConnectionHelper.getConnection();
    OracleXMLQuery q = new OracleXMLQuery(cn,
    "SELECT empno as EmpNo, " +
    " ename as Name, " +
    " sal as Salary" +
    " FROM emp WHERE empno = 7839");
    String s = q.getXMLString();
    StringReader sr = new StringReader(s);
    SAXParser sp = new SAXParser();
    PrintWriter p = new PrintWriter(System.out);
    ContentHandler c = new ExampleContentHandler(p);
    sp.setContentHandler(c);
    sp.parse(sr);
    q = new OracleXMLQuery(cn,
    "SELECT empno as \"@EmpNo\", " +
    " ename as Name, " +
    " sal as Salary" +
    " FROM emp WHERE empno = 7839");
    p = new PrintWriter(System.out);
    c = new ExampleContentHandler(p);
    q.getXMLSAX(c);
    cn.close();
    }

Maybe you are looking for

  • Creating a cfhttp multi part form post for google docs upload

    Hey all, If you saw my last thread, you know I am working with google docs and uploading documents to it. Well I got basic document uploading working, but now I am trying to include meta data. Google requires you to include the metadata with the actu

  • Moving CSS to an external style sheet [was: CSS]

    Hi I have in error created all my css for a site as "this doccument only" what i meant to do was create a site wide style sheet ! Is there a way to copy my css and turn it into a .css file that applies to the whole site, without starting again. Help

  • A question about insert?

    if the two applications want to insert the same data into database at the same time? but I only expect one application execute successful. how do I prevent insert the same data into database?

  • Is device software installed when desktop manager is installed?

    If I use the BlackBerry User Tools CD that is supplied with a new BlackBerry device (81x0, 83x0, 9000 etc) to install the BlackBerry Desktop Manager will it automatically install the relevant device software at the same time? If not do I have to go t

  • Not able to parse string-xml through parseEscapedXml

    Hi all, What I am doing is, I am getting some data through polling and populating a schema variable. Because of having extra namespace in the resultant xml, I again used processXSLT and assigned the resultant xml to a string variable (after convertin