Javabeans  in forms6.0

Hi
Can I use javaBean inside the oracle forms6.0(not 6i) in client/server mode(not in web form or 3 tier)?
If it is possible,can u send the sample code?Please help me to solve this problem
regards
Rama

Rama,
Java Beans only work on the Web.
Btw.: There is a Forms discussion forum on OTN that is monitored by Product Management. Forms questions have a bettre chance for an answer if asked there
Frank

Similar Messages

  • Can any one can help me in creating a javabean in forms6i?

    Actually I have no idea how to create a javabean in forms, I read much about javabean on the net and downloaded some of the tutorials but I didnt suceeded so please can any one write me the easy steps of creating a javabean in forms6i. I want to use a calendar javabean in my form. Please write briefly step by step. I will be thankful & I am using windows xp. Take Care....

    Ok dear, write me the steps of creating a javabean in forms 9i, I have it on a pc. Please write me the steps briefly of 9i, actually I am confused in creating the system variables and much the things so I cant understand it. I will be thankful to you....

  • FRM-40735 with ORA-105100 when calling JavaBean in Forms6i deployed to Web

    We are encountering an ORA_JAVA error during runtime in a new simple form when trying to call an imported JavaBean in Forms 6i.
    It works when in the Forms6i Builder Run Form Client/Server mode on Linux/Motif.
    The specific error is: FRM-40735:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-105100
    Our form incorporates the following simple example from Metalink Note:131964.1
    How to Create a Simple Java program with the ORA_JAVA Package of Forms?
    We have confirmed that we are downloading our custom JavaDev6i.jar file in the JInitiator console during runtime when deployed on the Forms Server using sockets.
    We have turned on Forms Runtime Diagnostics (FRD), which showed the following
    ORA_JAVA.LAST_ERROR: 121
    when attempting to execute the call to the JavaBean.
    I also ran strace on the forms processes:
    strace -o/tmp/f60srvm_trc.txt -afeT -p 21192 &
    strace -o/tmp/f60webmx_trc.txt -afeT -p 9172 &
    I found libjvm.so could not be found in the LD_LIBRARY_PATH,
    so I changed /d01/oracle/visappl/admin/adovars.env from:
    LD_LIBRARY_PATH=$ORACLE_HOME/network/jre11/lib/i686/native_threads:$ORACLE_HOME/network/jre11/lib/linux/native_threads:${LD_LIBRARY_PATH:=}
    to
    JDK131_HOME=/usr/java/jdk1.3.1_20
    export JDK131_HOME
    LD_LIBRARY_PATH=$JDK131_HOME/lib/i386:$JDK131_HOME/jre/lib/i386:$JDK131_HOME/jre/lib/i386/classic:$JDK131_HOME/jre/lib/i386/native_threads:${LD_LIBRARY_PATH:=}
    This solved that library problem, but it did not fix the original problem of not being able to run a JavaBean in a deployed Form.
    I've provided our environment below from txkMPcheck.sh, but please let me know what else you need to help us with this.
    Technology Validation Utility report for 11.5.9 Maintenance Pack (some info deleted to fit in forum 3.5K limit)
    Script : ./txkMPcheck.sh (115.20)
    Context : /d01/oracle/visappl/admin/VIS_hpbox.xml
    HTTP Server Node (hpbox):
    [PASS] Oracle JInitiator version from the Applications Context file is: 1.1.8.16
    [PASS] JDK version on HTTP server node is: 1.3.1_20
    [PASS] iAS version from the Applications Context file is: ias1022
    [PASS] iAS patchset version from the OUI inventory is: 1.3.19.0.0g
    [PASS] PERL is included in the PATH variable from the APPLSYS.env file.
    [PASS] DISPLAY variable from the Applications Context file is: :0.0
    Forms Server Node (hpbox):
    [PASS] Developer 6i version from f60gen executable is: 6.0.8.21.3
    [PASS] The 806 client library version from the f60gen executable is: 8.0.6.3.0
    [PASS] Checksum of file kpuex.o confirms back port 1227566 has been applied.
    [PASS] DISPLAY variable from the Applications Context file is: :0.0
    Administration Server Node (hpbox):
    [PASS] Database version from dbms_utility is: 9.2.0.3.0
    SUMMARY:
    [ALLPASS] All the technology checks on this node needed for the 11.5.9 Maintenance Pack
    have passed. You may now proceed with next steps in the Oracle
    Applications Release 11.5.9 Maintenance Pack Installation instructions.
    More env info...
    Oracle (Red Hat) Enterprise Linux Rel 4 Upd 6 (uname: 2.6.9-67.0.0.0.1.ELsmp #1 SMP)
    Forms6i Builder 6.0.8.21.3 (Production) (on Linux)
    Already posted this to Metalink forum, but no answer in 1 week.
    Thanks for your help!

    Looks like the CLASSPATH for the server is not set correctly. Does it include the directory where your JAR file resides?
    You say that the JavaDev6i.jar is downloaded the the JInitiator, which surprises me. It looks like you are trying to import/call Java from the server side, which means it is not necessary to load the JAR client side. You only have to include it in the client side JARs if you are using Pluggable Java Components (PJC) which run client side. You are using the Java Importer which creates a PL/SQL wrapper around a server side Java class.
    This might also explain why it does work in client/server mode. Then you might have a different CLASSPATH setup when starting Forms Runtime from within Forms Builder.

  • Call a javabean from forms6i

    i wanna call a javabean application from
    the form6i and wanna use it via brower in formserver.
    if any guy answer the question, please send it to my mailbox :[email protected]
    thank you very much!

    hi Scott.
    i actually developed a javabean to communicate with a mikrotik router and it works very nice on Oracle forms 10g !
    but i need to develop an mobile interface for users , so i am using apex to accomplish this task, but i will need to call the javabean from apex.
    thanks

  • Forms6i and Javabeans

    Can anyone tell me how where I can find good documentation about using Javabeans and Forms6i? I want to use a bean that communicates with another server over http.
    I don't want to load the bean it into the DB, but has to run from client-machine. Has anyone example code how to integrate existing beans into Form ????? And example of IVIEW class?
    Thanks, Brian

    see if this helps http://otn.oracle.com/sample_code/products/forms/listing.htm#jbpjc

  • Need step-by-step help on how to set up javabean on form6i

    I create a form to be run on the web,winnt server, database 8.1.7 on sun.
    I need to set up a javabean on forms6i to allow users to output their file (delimited text file) to their local pc. I used TEXT_IO it works ok but the output file is saved on the server site not on the client pc. I've completed created a javabean program called TextPJC.jar and included it on ARCHIVE tag on formsweb.cfg file when I run my form it's ok.
    On my form I have a field V_FILE_NAME (combo Box/List Item) to allow user to enter the file name, then press the button to create the file(on user's PC).this is my by WWHEN-BUTTON_PRESSED coding:
    DECLARE
    v_line VARCHAR2(2000);
    button NUMBER;
    button2 NUMBER;
    v_file_name VARCHAR2(255);
    v_prompt TEXT_IO.FILE_TYPE;
    C_EIN_NMBR C.test6.CASE_PENPLN_EIN_NMBR%TYPE;
    v_ein_count NUMBER;
    ex_ein_notmatch EXCEPTION;
    ALERT_FILE_GENERATED NUMBER;
    CURSOR cur_test IS
    SELECT
    to_char(C_EIN_NMBR)| |'!'| |
    to_char(C_OPEN_DATE)| |'!'| |
    to_char(C_CLOSE_DATE)| |'+++'
    FROM C.test
    WHERE C_EIN_NMBR = :STPROMPT.EIN;
    BEGIN
    -- checking if output file name field is null or not
    IF :STPROMPT.V_FILE_NAME IS NULL
    THEN button := SHOW_ALERT('ALERT_MISSING_PATH');
    IF BUTTON = ALERT_BUTTON1
    THEN SET_APPLICATION_PROPERTY(CURSOR_STYLE, 'DEFAULT');
    GO_item(':stprompt.V_FILE_NAME');
    END IF;
    ELSIF :STPROMPT.EIN IS NULL
    THEN button := SHOW_ALERT('ALERT_NO_EIN');
    ELSIF :STPROMPT.EIN IS NOT NULL
    THEN
    BEGIN
    SET_APPLICATION_PROPERTY(CURSOR_STYLE, 'BUSY');
    SELECT COUNT(DISTINCT(C_EIN_NMBR))
    INTO v_ein_count
    FROM C.STPROMPT
    WHERE C_EIN_NMBR C_EIN_NMBR = :STPROMPT.EIN;
    IF v_ein_count = 0
    THEN RAISE ex_ein_notmatch;
    ELSE
    v_file_name := :STPROMPT.V_FILE_NAME;
    v_prompt := TEXT_IO.FOPEN(v_file_name, 'W');
    TEXT_IO.PUT_LINE(v_prompt,
    to_char(P_EIN_NMBR)| |'!'| |
    to_char(P_OPEN_DATE)| |'!'| |
    to_char(P_CLOSE_DATE)| |'+++'
    OPEN cur_testl6;
    LOOP
    FETCH cur_testl6
    INTO v_line;
    EXIT WHEN cur_testl6%NOTFOUND;
    TEXT_IO.PUT_LINE(v_prompt, v_line);
    END LOOP;
    CLOSE cur_testl6;
    TEXT_IO.FCLOSE(v_prompt);
    SET_APPLICATION_PROPERTY(CURSOR_STYLE, 'DEFAULT');
    -- Confirms when textfile is created.
    ALERT_FILE_GENERATED := SHOW_ALERT('TEXTFILE_GENERATED');
    IF ALERT_FILE_GENERATED = ALERT_BUTTON1
    THEN GO_BLOCK('stprompt');
    END IF;
    END IF;
    END;
    END IF;
    EXCEPTION
    WHEN ex_ein_notmatch
    THEN SET_APPLICATION_PROPERTY(CURSOR_STYLE, 'DEFAULT');
    button2 := SHOW_ALERT('ALERT_NO_EIN_EXIST');
    IF button2 = ALERT_BUTTON1
    THEN go_block('stprompt');
    END IF;
    -- takes care of other exceptions such as misspelled/non-existing output file directories/path
    WHEN others
    THEN SET_APPLICATION_PROPERTY(CURSOR_STYLE, 'DEFAULT');
    button := SHOW_ALERT('ALERT_TYPO');
    IF button = ALERT_BUTTON1
    THEN go_block('stprompt');
    END IF;
    END;
    Now I want to know how to setup javabean on forms so that I can make my form work it way it should work. Please help.

    you can get samples of using javabeans in forms in the form section of the otn.
    but let me suggest something that might be simpler.
    create the file on the server and then use:
    web.show_document('url of file on server');
    this will cause the file to download to the client.

  • Forms6i

    Dear friends,
    please Answer my question as early as possible(immediately)
    1) How to debug in forms6i using tool debug menu.
    2) Is it possible to open worddocument in forms6i using editor
    object.Rather than opening an notepad (if it is system_editor)
    3) what is 6i(define)
    4) What are the Activex controls in Forms6i & how to use it?
    5) When we go for multiple forms(module) &windows?
    one module is sufficeint for the application?
    6) How to use javaBean in forms6i?
    My e-mail id is [email protected]
    thanks
    regards,
    kamala.

    Hi,
    i Think you are using Oracle 8i.
    Check if u have started the Listener. Go to Services and See if
    the Listener Service for Oracle is running.
    If Yes Then
    Did u create the Service name in tnsnames.ora Using the net8
    Configuration Utility.
    If Yes Then
    Did u Give that Service Name while connecting to the Database.
    I think the first one is your problem. Check it out and revert
    back if anything more is needed....
    Regards,
    Ganesh R

  • Forms6i and JavaBean

    Hello!
    Can i use Bean Area in forms 6i in client-server or this is possible only in web server?
    Thanks!

    This possible only in Web versions because the 6i C/S runtime process is not a Java applet.
    Francois

  • How to attach a java bean in forms6i

    Hi,
    I am new to oracle forms6i. i just want to ask on how to attach a java bean to forms6i.i did putting the full directory path to the implementation class but it has an error, bean not found. what should i do?
    Your help is highly appreciated.

    The implementation class should contain the package and class name of the bean e.g. com.groundside.beans.DateFieldBean, not a directory location. The bean itself is loaded from the JAR files specified to be downloaded with the applet.
    If you are running client server then you can't use JavaBeans this way - it's a web only feature.

  • Beans in Forms6I

    I am trying to embed a bean in Forms6I on NT4 (the supplied BeanArea bean) but whenever I try to specify the Implementation Class, I get the error "FRM-13008 Cannot find Javabean with name 'oracle.demo.BeanArea'".
    I have compiled the bean and placed it in the correct place in the directory structure...
    Does anybody know what may cause this problem?

    Have you read this collateral document ?
    http://technet.oracle.com/products/forms/pdf/269054.pdf

  • Java bean from oracle Forms6i

    Hi Guys,
    I am calling java bean from oracle Forms6i (implementation
    class property set to bean class). This java bean in turn
    calling some JNI methods written in C. The application server
    (Forms6i) is hanging at the point of calling the JNI method.
    Is oracle Forms6i supports all java functionality (JNI here)
    and if so how to solve the problem ?
    Any pointers or tips in this regard is highly appreciated ?
    Thanks & Regards
    Chandra Mohan

    To call Java from forms:
    look at the technical documents on Java integration at
    http://otn.oracle.com/products/forms
    and also look at the Javabeans and PJC samples in the sample
    code section of Forms on OTN.
    Creating a random number using a java class is an excelent
    example of how to use Java with forms.

  • Using the GetClientInfo JavaBean

    How can i get custom system property for example USER.DIR with GetClientInfo javabean, i m working with forms6i and try write this code,
    declare
    dirname varchar2(2000);
    begin
    dirname := get_custom_property('CLIENTINFOBEAN',1,'"USER.DIR"');
    :ctrl.dirname := dirname;
    end;
    but this dont work

    What do you see in the Java Console when you make the call?

  • Can not connect from Forms6i to PO8i.

    Hi,
    My PC is a NT named 'oracle'. I have first installed Forms6i in DEFAULT_HOME, c:/orant.
    PO8i is installed as:
    Oracle Home: ora8i
    Full Path: c:\orant\ora8i
    Choose Typical Install
    Global Database Name: ora8i.oracle.master.com.au
    SID: ora8i
    Then I added an entry in c:\orant\net80\admin\tnsnames.ora as:
    test.world
    (DESCRIPTION
    (ADDRESS_LIST
    (ADDRESS
    (PROTOCOL = TCP)
    (Host = 127.0.0.1)
    (Port = 1521)
    (CONNECT_DATA = (SID = ora8i)
    I can connect to PO8i from SQL*Plus using scott/tiger or scott/tiger@ora8i.
    When I tried to connect to PO8i from Forms6i using scott/tiger@test or scott/tiger@ora8i. I got ORA-12154: TNS:could not resolve service name.
    If I use scott/tiger@test from SQL*Plus, I got the same error.
    If I use scott/tiger from Forms6i, I got ORA-12203: TNS:unable to connect to destination.
    Help please.
    Sue
    null

    Try taking off the .world in the NET80 tnsnames.ora file
    Jason Pepper
    Snr Product Manager
    Oracle Enterprise Internet Tools

  • What is the diffrence between a javabean and  EJB

    hi!
    what is the diffrence between a javabean and entreprise jvaabeans! i mean which are the uitilization featires of eaxh one !

    i am seeking for a solution for my problem , in fact i ma trying to implement and develop an application with java that allows a certain range of IP adresses to be connected to a database server in order to extract the suitable data from the server .
    let me explain mor ethe suitation , in fact what i am loking for is to use javabeans to grant my application much more consistence and pertinence : si i am asking if it could be possible to use javabeans in my case especially if i am not trying to developp a web application but a cleint /server one allowing some services.
    The application is in fact dealing with a stock exchange market and what i am trying to do is to grant particilar registrated customers to have the informations that they need ( portofolio, currency's status, market indicators, .) also drawing some charts decribing rates, variations, and others specefic financial caracterestics .So , if we consider that this application is not a web application ( no HTTP request and no servers like apache or others ) how it is possible to use javabeans and not EJB to build the application? i mean what could be suitable and preferable to rely on and dvelop to ensure a good java application !!
    if you need more details to help you find the answer for me don't hesitate to answer me back !!
    Someone here gave me that answer
    use RMI to code the services and (Updateable) Value Objects to pass the information between tiers.
    RMI is an all-java distributed component framework (ie. EJB, CORBA, DCE/RPC, DCOM, etc.), that is very suitable for developing non-containerized multi-tier applications. Refer to the RMI trail in the Java Tutorial as a starting point for coding RMI solutions (http://java.sun.com/docs/books/tutorial/index.html). Under this scenario you would code the database access service as an RMI service (server-side). Client/server communication should be facilitated through the use of JavaBeans/classes that wrap the information being passed (customer information, portfolio details, market information, etc.) - these are refered to as 'Updateable Value Objects' (a design pattern). Graphing and charting would be handled in your client from the information received from the (RMI) server. GUI JavaBeans can be used to provide this functionality as well as other client-side services. There are numerous "shrink-wrapped" components for GUIs available on the market just peruse any Java magazine to find them.
    but how comes? how can i do it !! and where can i find more information please about 'Updateable Value Object "
    thanks

  • Problem retrieving javabean instance from request in JSP

    I am using WSAD and I created a javabean called confirmBean in default package which contains two private properties fname, lname and public setters and getters
    In a servlet I placed values in the bean, then placed the bean in a request and then forwarded to confirm.jsp
    confirmBean cb = new confirmBean();
    cb.setFname("testing");
    req.setAttribute("mybean", cb);     
    req.getRequestDispatcher("/confirm.jsp").forward(req,res);
    Here is my JSP, I used java syntax for retrieving javabean:
    <HTML>
    <HEAD>
    <TITLE>confirm.jsp</TITLE>
    </HEAD>
    <%@ page
    language="java"
    contentType="text/html; charset=ISO-8859-1"%>
    <%@ page import="confirmBean"%>
    <BODY>
    <% confirmBean myBean = (confirmBean)request.getAttribute("MYBEAN"); %>
    <%= myBean.getFname() %>
    </BODY>
    </HTML>
    and here is the error i am getting when executing:
    Error 500: Unable to compile class for JSP c:\testWorkspace\.metadata\.plugins\com.ibm.etools.server.core\tmp0\cache\localhost\server1\Test\TestWeb.war\_confirm.java:3: '.' expected import confirmBean; ^ An error occurred at line: 11 in the jsp file: /confirm.jsp Generated servlet error: c:\testWorkspace\.metadata\.plugins\com.ibm.etools.server.core\tmp0\cache\localhost\server1\Test\TestWeb.war\_confirm.java:78: cannot resolve symbol symbol : class confirmBean location: class org.apache.jsp._confirm confirmBean myBean = (confirmBean)request.getAttribute("MYBEAN"); ^ An error occurred at line: 11 in the jsp file: /confirm.jsp Generated servlet error: c:\testWorkspace\.metadata\.plugins\com.ibm.etools.server.core\tmp0\cache\localhost\server1\Test\TestWeb.war\_confirm.java:78: cannot resolve symbol symbol : class confirmBean location: class org.apache.jsp._confirm confirmBean myBean = (confirmBean)request.getAttribute("MYBEAN"); ^ 3 errors
    Please help!!!!

    1 - Put your bean in a proper package. As of Java1.4 classes in the default package are not visible :
    http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=c85f07c1ce8f344d787b7a5146d68:WuuT?bug_id=43615752 - As a matter of style, class names should always start with a capital letter. ie ConfirmBean
    3 - Rather than declaring the bean, and retrieving it, from the request manually, have a useBean tag:
    <jsp:useBean id="MYBEAN" class="com.mypackage.ConfirmBean" scope="request"/>
    of course the id has to be the same as the attribute in scope.
    Hope this helps,
    evnafets

Maybe you are looking for

  • Fox formula - Copy variable value to a characteristic in IP

    Hi All, I have to copy the value of a variable to a characteristic in Fox formula in IP. In this scenario I am forecasting data using copy function. Whenever new data is copied I need to save it as a new version. So in the fox formula I have mentione

  • Can't unbrick 3GS after upgrading to iOS5.1.1

    i cannot unbrick my 3GS after upgrading to iOS5.1.1 it is not giving me an option to factory reset. When i hook up with iTunes to unbrick it after 3-4 mion it says there is no SIM card please insert SIM and SIM card is inside phone which i was using

  • Windows 7 wont show

    Ive did all the updates but I still cant seen to get windows to show up in the startup disk menu on the mac side the only way I can boot into windows is to do a restart and hold the option key down

  • User defined query parameter in QLD

    Hi All, i am using query generator in SAP to print some records of user defined query. precisely, the details about sales employees are to be printed. now the columns which exist in the database (ie. sales employee code, name, cardcode) etc can be gi

  • My Headset is not recognized

                                                                                                                                                                                     The problem I'm having is that whenever im in a call with a friend, and I