Function and java class problem

Hi, i`m trying to develop a function that is using java class in body and return a table. I will show some code for better understanding.
I`m creating TYPE:
CREATE TYPE TYP1 AS OBJECT (
NUMER NUMBER,
NAZWA VARCHAR2(5),
KLOB CLOB,
RESULTS VARCHAR2(255));
CREATE TYPE TYP1_TAB IS TABLE OF TYP1;
Then im creating function
CREATE OR REPLACE FUNCTION GET_TAB(P_CURS SYS_REFCURSOR) RETURN TYP1_TAB PIPELINED IS
OUT_REC TYP1:=TYP1(NULL,NULL,NULL);
BEGIN
LOOP
FETCH P_CURS INTO OUT_REC.NUMER,OUT_REC.NAZWA,OUT_REC.KLOB;
//here i need to pass some parameters to java class stored in my database,
something like:
java_class(numer,nazwa,klob) return RESULTS and fetch them to out_rec.results;
EXIT WHEN P_CURS%NOTFOUND;
PIPE ROW(OUT_REC);
END LOOP;
RETURN;
END;
Please help me..
Best regards
Radek

Hi this is the Oracle Designer forum. You would be better off asking this question over at the SQL & PL/SQL place
PL/SQL

Similar Messages

  • (261680070) Q SYNCH-11 How do my web service methods accees EJBs and java classes?

    A<SYNCH-11> How do my web service methods accees EJBs and java classes?
    A<SYNCH-11> It is simple to use java classes, just do it as you would ordinarily.
    The .jws file really contains a simple class so you can program with it in the same
    way that you would use a regular Java class.
    To use an EJB you can go and access it directly as you would with any EJB remote
    client (lookup home stub, create, etc) or if the EJB is deployed to WLS you can use
    a control to provide a very simple wrapper to the EJB. We will see this in detail
    on Thursday in the ADVC module.

    Futher information about the possibility of callback:
    It may be possible for a synchronous only web service (i.e. MS .net) to even paticipant
    in the callback functionality of asynchronous web services. If the client implements
    the appropriate methods for the callback but listens for them on a different port
    or binding than the SOAP request, then web service may be able to build a response
    if the client's "callback URL" is submitted as the beginning part of a conversation.
    Watch the BEA developer forum (http://dev2dev.bea.com) for more information about
    this approach and other tips and techniques for building web services.
    "Adam FitzGerald" <[email protected]> wrote:
    >
    Q<SYNCH-03> I heard that MS .net only implements synchrnonus method? If
    this is true.
    Does it means my async methods will only work with J2EE clients?
    A<SYNCH-03> I do not know the limitations of .net but let me point out that
    is very
    difficult to provide asynchronous web service method invocation (this is
    different
    from an asynchronous web service). HTTP as a general communication protocol
    is based
    on a request and response paradigm so your client libraries will mostly
    likely be
    expecting a response even if it is empty (check the asynchronous example
    from today
    to see that the start method still returns an empty response). You must
    distinguish
    this from the notion of an asynchronous web service which is a business
    operation
    that occurs on the server whose return value/result is not directly associated
    with
    building response to the client. An asynchronous web service can (and generally
    will)
    be started and stopped with web service operations that are invoked synchronously.
    Thus MS .net clients can still be client to WLS hosted web services.

  • JSP, Servlet, and Java Classes location in Tomcat

    In tomcat, I want to know JSP files, Servlets, and Java classes
    should put in different locations:
    I put web.xml in the following:
    C:\jakarta-tomcat-4.1.30\webapps\proj1\WEB-INF
    I put all JSP files in the following:
    C:\jakarta-tomcat-4.1.30\webapps\proj1
    I put all servlet files in the following:
    C:\jakarta-tomcat-4.1.30\webapps\proj1\WEB-INF\classes
    I put all Java classes in the following with package proj1:
    C:\jakarta-tomcat-4.1.30\webapps\proj1\WEB-INF\classes\proj1
    When I execute JSP files, it has HTTP error 404, file not found.
    The content of web.xml is:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>proj1</display-name>
    <description>
         proj1
    </description>
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>
    </web-app>
    Please advise. thanks!!!

    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>
    </web-app>Where's the servlet definition that maps to "invoker"?

  • Deploying the JSPs, Servlets and Java class files

    Hello All,
    I'm very new to the Oracle 9i AS. We are using Version 1.0.2.2.
    How do we deploy the JSPs, Servlets, and Java class files (simple class files, not EJBs)?
    plese give us the procedure and stpes how to deply or the links for the same.
    Thanks,
    Santhosh.

    Hi
    I guess u r running apache-jserv as servlet engine for your jsp and servlets. If its so, jsp files can be run without any additonal configuration by putting the jsp file under document root or any subdirectory and for running servlets u have to add classpath entries for your servlet in jserv.properties file.
    To make sure that your servlet engine is working, try
    http://servername:port/servlet/IsItWorking, if u get success msg that means servlet engine is working fine.
    Hope this will help
    Regards
    Kumaran

  • Web Service and Java Classes

    Hello,
    I have list of java classes. I have one java class which calls only the required functions from the list of java classes. When I try to create a VI on that java class I see all the functions needed but all of them are grayed.
    Can anybody please help?
    Best regards,
    Dharmi

    Has anyone else solved this problem? We too are experiencing the same problem.
    We are trying to build a .JWS file from within an ANT build script. The build script compiles the site into a single EAR file that should contain a deployable and usable JWS component, however it obviously does not.
    If anyone has a solution, please let us know. We're facing a code freeze on this project by this Friday and really need some help.

  • Importing Java class problem!

    Hello
    I have problem by Importing java class into form. When I select in Forms Builder from menu: Programs/Import Java Classes it returns error: PDE-UJI001 JVM not able to create!
    Can someone know what I must do to fix that problem?
    Thanks, Chrity

    It is a shame because it, probably, contains no special 1.5 new instruction at all.
    Maybe it would be possible to try replacing the current JDK/JRE of your <ORACLE_HOME>/jdk installation after a safe backup of course.
    You probably have a very little chance that it works, and it also won't be supported.
    Francois

  • CFObject  and java Class

    Hi,
    I am trying to call a java class using cfobject tag.
    I placed my all classes under D:\cfm\ecpay\classes folder .
    And add this path to jvm.config file.
    I am getting class Not Found Exception while running my page.
    Here is the code of cfobject
    <cfobject
    type = "java"
    name = "myObj"
    class = "ExcelToDb2"
    action = "create">
    <cfset ret = myObj.init()>
    can some help me out on this.
    Thanks

    It is pretty straight forward and I think there would be a
    problem for "Classpath". Please check it again in your CF admin.
    There would be also syntax error.
    Restarting the server is also required in case you compile a
    new class etc.
    Alternatively you can copy your classes into the directory
    "cfroot\wwwroot\WEB-INF\classes" and restart the server before
    testing them.

  • Accessing MS Sql Server with Java classes - problem connecting to socket

    I found an example at this location which uses java classes to connected to MS Sql Server.
    http://search400.techtarget.com/tip/1,289483,sid3_gci1065992,00.html
    --bummer - it is a login location - so I will include the article
    Anyway, the example is using Websphere, but I am still on Jbuilder (will get wsad soon). So I planted the classes from the example in
    C:\Borland\JBuilder\jkd1.4\jre\lib\ext\...the classes
    Then I copied the code from the example to my jpx project and got an error that it could not connect to the socket. The only thing I changed in the code was the connection string:
    --original string from example:
    Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://1433", "");
    I was getting an error with the 2 argument version of DriverManager - and the second argument here was empty (properties argument). Here was my connection string:
    Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://Myserver:1433;User=sa;Password=");
    I am only using the 1 argument version of DriverManager. Note that the password=" is blank because my RnD workstation is standalone - no one accesses the sql server except me - so no password. I also left out the last semicolon I noticed. Any suggestions appreciated how I could fix this.
    Thanks
    source of article:
    http://search400.techtarget.com/tip/1,289483,sid3_gci1065992,00.html
    iSeries 400 Tips:
    TIPS & NEWSLETTERS TOPICS SUBMIT A TIP HALL OF FAME
    Search for: in All Tips All search400 Full TargetSearch with Google
    PROGRAMMER
    Sample code: Accessing MS SQL Server database from the iSeries
    Eitan Rosenberg
    09 Mar 2005
    Rating: --- (out of 5)
    Nowadays with the help of Java the iSeries can be integrated with other databases quite easy. This tip shows you how. The code included here uses the free Microsoft driver that can be downloaded from here. (SQL Server 2000 Driver for JDBC Service Pack 3)
    If your SQL server does not include the Northwind Sample Database you can find it here.
    http://www.microsoft.com/downloads/details.aspx?familyid=07287b11-0502-461a-b138-2aa54bfdc03a&displaylang=en
    The download contains the following files:
    msbase.jar
    mssqlserver.jar
    msutil.jar
    Those files needs to be copied to the iSeries directories (/home/r_eitan/ExternalJARs).
    Here's the directory structure (on the iSeries) for this sample:
    /home/r_eitan/ExternalJARs - Microsoft files (msbase.jar,mssqlserver.jar,msutil.jar)
    /home/r_eitan/JdbcTest02 - My code (Main.java,Main.class)
    The Java code
    import java.sql.*;
    import java.io.*;
    class Main {
    * Connect to Microsoft SQL server and download file northWind.products as tab
    * seperated file. (products.txt)
    public static void main(String args[]) {
    try {
    PrintStream outPut = new PrintStream(new BufferedOutputStream(new FileOutputStream("products.txt")));
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    //Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://1433", "");
    Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://Myserver:1433;User=sa;Password=");
    System.out.println("Connection Done");
    connection.setCatalog("northWind");
    String sqlCmdString = "select * from products";
    Statement statement = connection.createStatement();
    ResultSet resultSet = statement.executeQuery(sqlCmdString);
    ResultSetMetaData resultSetMetaData = resultSet.getMetaData();
    int columnCount = resultSetMetaData.getColumnCount();
    // Iterate throught the rows in resultSet and
    // output the columns for each row.
    while (resultSet.next()) {
    for (int index = 1; index <=columnCount; ++index)
    String value;
    switch(resultSetMetaData.getColumnType(index))
    case 2 :
    case 3 :
    value = resultSet.getString(index);
    break;
    default :
    value = """ + resultSet.getString(index) + """;
    break;
    outPut.print(value + (index < columnCount ? "t" : ""));
    outPut.println();
    outPut.close();
    resultSet.close();
    connection.close();
    System.out.println("Done");
    catch (SQLException exception)
    exception.printStackTrace();
    catch (Exception exception)
    exception.printStackTrace();
    --------------------------------------------------------------------------------------------------

    My guess is that the server's host name isn't right. It necessarily (or even usually) the "windows name" of the computer. Try with the numeric IP address instead (type "ipconfig" to see it).
    First aid check list for "connection refused":
    - Check host name in connect string.
    - Check port number in connect string.
    - Try numeric IP address of server host in connect string, in case name server is hosed.
    - Are there any firewalls between client and server blocking the port.
    - Check that the db server is running.
    - Check that the db server is listening to the port. On the server, try: "telnet localhost the-port-number". Or "netstat -an", there should be a listening entry for the port.
    - Try "telnet serverhost the-port-number" from the client, to see if firewalls are blocking it.
    - If "telnet" fails: try it with the numeric ip address.
    - If "telnet" fails: does it fail immediately or after an obvious timeout? How long is the timeout?
    - Does the server respond to "ping serverhost" or "telnet serverhost" or "ssh serverhost"?

  • Process and java classes

    Hi...
    My Bpel process accesses some java objects..To keep classes and projects separate I am keepin these classes in a war/ear and deploying it on oc4j...do u think the process can access the java classes in .war file..
    I know i can have the java classes along with process source and copy the libs in BPEL-INF/lib but was trying to keep the code separate..
    The process when compiled and built is packaged into .jar archive ..If we can drop this jar in an .ear package and deploy it probablythen the process can access the java classes..Can I access samples for the same?..
    Thanks
    Bhupinder

    I don't believe you can access java objects from a war/ear, at least I wasn't able to get it working.
    We have been jar'ing the objects up and placing them in C:\OraBPELPM_1\integration\orabpel\system\appserver\oc4j\j2ee\home\applib where the apps server can find them.
    Toby

  • Invalid java class problem

    Hi , I have found this invalid java class in my schema portal30 : 3334f18_HttpProviderDispatche
    In which way can I recompile it , or eventually change it with a new one ?
    Thanks
    Max

    hi,
    Go to your portal navigator and try compiling the class. If you get compilation errors,you can load that class to your database using loadjava utility.
    --Sriram                                                                                                                                                                                                                                                                                                                                               

  • Database and java class

    Is there a tool that automatic create a java class related to a database? Similar dataset in .NET?

    create a database? nyet.
    There are relational databases written in Java and there are tools in java with which one can access a DBMS.
    Either use a search engine, look at the java.sql and javax.sql packages, or post more information.

  • Timezones and Java Classes

    I'm trying to pro-actively solve the timezone issue of
    capturing and displaying data in local time for a global audience.
    I found the timezone.cfc stuff (which looks like it should do a
    great job), but can't seem to get it to initialize.
    When it makes the call:
    variables.timeZone=loader.loadClass("com.ibm.icu.impl.OlsonTimeZone").newInstance();
    I get:
    13:07:31.031 - java.lang.ClassNotFoundException - in
    D:\Development\Serebra\TESTtimezone\REMOTEicu4jTZ.cfc : line 60
    com.ibm.icu.impl.OlsonTimeZone
    I'm initializing things with:
    tz=createObject("component","REMOTEicu4jTZ").init("D:\path\to\jarfile\TESTTimezone\icu4j- 3_6");
    I'm new to calling Java classes as objects, so it's entirely
    possible I've screwed something up. Anyone have any pointers, or
    even tips on how to ask the right question?

    1) get & install mark's javaLoader CFC from
    http://javaloader.riaforge.org/
    2) get the newest timezoneCFC from
    http://www.sustainablegis.com/projects/tz/testTZCFC.cfm
    3) read the readme file & make the modifications to the
    init method to point to
    where you put the javaLoader CFC & icu4j jar (it probably
    won't be named icu4j.jar).

  • How to find master data info objects. Partner function and customer class.

    hi,
    Can you please tell me what are the available extractors for Partner Function (PARVW from VBPA)and Customer Class (KUKLA from KNA1).
    I hope these fields are master data. I checked in 0customer. But I didn't find it. There is a info object (Business partner). Is it the same?
    pls reply

    I will admit that I am not familiar with ECC and there may be different interpretations of what KUKLA means and different means of extracting Customer information to/from ECC.
    However, for us, when extracting Customer Attributes using the 0CUSTOMER_ATTR datasource in R/3, we map KUKLA to 0CUST_CLASS.  They are both set up as 2 CHAR.  That is not to say that you should also.  You can map it to a custom infoobject in BW as long as you set it up as an attribute of 0CUSTOMER.  KUKLA is available in the standard datasource 0CUSTOMER_ATTR in R/3.  When looking at what is available in the infosource for 0CUSTOMER in BW, 0CUST_CLASS is a logical choice to map.
    As far as VBPA-PARVW, VBPA is not a source for master data for 0BPARTNER.  VBPA contains the business partners associated with Sales documents.  So if you are going to create a data provider (cube/ODS) in BW and VBPA-PARVW is part of the transactional datasource in R/3, the you can map it to 0BPARTNER in your cube/ODS.
    Hope this helps.

  • Data Pump and Java Classes

    I tried importing the data from one schema to another but the Java classes that we use (via Java Stored Procedures) are showing up as invalid. Is there any reason why? We are using Oracle 10g R2. I tried resolving them by running the following sql, but that didn't work either:
    ALTER JAVA CLASS "<java_clss>" RESOLVER (("*" <schema_name>)(* PUBLIC)) RESOLVE;
    Any thoughts will be appreciated.

    There are two ways to instantiate a target's data. One is to use a native data loader or utility. In Oracle's case, Oracle Data Pump (not the "data pump" in GG) or SQL*Loader, as an example. The other way is to use GoldenGate's data pump.
    You can configure DDL synchronization for Oracle, but you have to turn off the recycle bin. See Chapter 13 in the admin guide.

  • GME PLLs, forms and java class files???

    Hi,
    if we generate forms of GME from adadmin PLLs will also get generated but how to compile java class files of a product GME ?
    simply we need to create jar files?
    Regards

    Hi,
    if we generate forms of GME from adadmin PLLs will also get generated but how to compile java class files of a product GME ?No.
    simply we need to create jar files?What do you mean by "create jar files"? Do you want to compile java classes? If yes, then the correct syntax is as follows:
    SQL> ALTER JAVA CLASS "Object Name" RESOLVE;Regards,
    Hussein

Maybe you are looking for

  • The following remoteapp program is not in the list of authorized programs.

    Hi, Iam in a pickle at the moment. My RDS 2012 R2 environment was working successfully previously, arrived from holiday and it is not longer working. My setup: **RDS01 ( Session Host and Connection Broker Roles ) **RDS02 ( Web Access, Gateway and Lic

  • Iphone's not recongnised either on my iMac or my PC

    Hello, When i plug my iphone into both my Vaio and my iMac it's not regonised by iTunes now!! It charged well but no interacts what so ever with the computers. I try with several cable and on another iMac also. Can anybody help me please!! Thank you!

  • STUCK thread equals elevated CPU

    Agile PLM 9.3.0.1 Weblogic 10.0 Solaris 10 Recently installed Agile 9301 in production. Three times in the week since go-live CPU has elevated up to 100% (twice on one managed host, once on the other), forcing me to kill Agile on that managed host an

  • Problem related to ALV dispaly

    Hi Gurus, Actually i need to display records in ALV and i am using    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'     EXPORTING       it_fieldcat = lt_fieldcat[]     TABLES       t_outtab    = lt_zca_serv_techlog but since my internal table will be carryi

  • Black jpegs - can they be made to come alive again?

    I have a lot of black & white jpeg photos that must have been exported from photoshop in grayscale format as they only show up in iphoto 08 as black thumbnails and blotched when full size. Is there some way I can add whatever is necessary to make the