ISetup new custom interface using BC4J/java class

Hi,
I am able to create new custom interface using the link :- How to setup an user to be Oracle iSetup Super user ? but I have not seen anything for BC4J filter set, as per oracle iSetup developer guide clearly explains step by step process how to create custom BC4J interface type, but they have not mention how to add filters, as per oracle developer guide we have to use 'iSetup Framework' for BC4J, if we select type as 'iSetup Framework' then we don't have option to add filter parameters.
Any idea how to see existing  iSetup interface repository values, Search shows the result, but we can't go in details? any idea to see this?
Oracle have good interface repository but most of them does not have option to filter, and  update so I want to customize them by adding new interfaces with filterable and update option
Regards
Anil

First, be sure your properties file is in the root of the classpath.
The Messages.properties or Messages_en.properties should be in the WEB-INF/classes/ directory of the war or as a root file of a jar included in the classpath (WEB-INF/lib).
If it doesn't work, try adding a "/" before the file name. The classloader will try to find it as a root file of the classpath.
For example:
          ResourceBundle messages = ResourceBundle.getBundle("/Messages", locale);
If you are using sun appserver, the classloader hierarchy is configured by default from inside the war to outside, so it will search first in the WEB-INF/classes/Messages_en.properties and then it will search the file inside each jar file in WEB-INF/lib.
If you want more information, check the classloader hierarchy of the appserver you are using.
Hope it helps.

Similar Messages

  • Custom Interface using Entity Objects

    Right now, we can only define cutom interfaces using the Generic Loader. I was wondering if this functionality is going to be extended so that users can define custom interfaces using EOs instead of lct files.

    Hi Mugunthan,
    I have the exact same requirement, to know a little bit more BC4J Support, since we want to use iSetup to control the load of our Receivables Custom Database Tables also. I have opened an SR and they have forwarded to the Receivables Team, which i do not believe will help us, since our need is to know technically the iSetup Custom Interface process for BC4J. Can you point me out some documentation on this? my e-mail contact is [email protected]
    Regards
    Thiago

  • Problem with creating customer account using TCA Java API

    Hi,
    I am trying to create customer account using TCA java API. i am getting exception saying PL/SQL numeric error: character to number conversion. but this error raises when calling API method
    HzCustAccountV2Pub.createCustAccount.
    can any body help me in solving this issue, any clue why this exception raises. i have tested even the code given in TCA API user guide. that code also gets same error.

    package client;
    import java.math.BigDecimal;
    import java.sql.Timestamp;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import oracle.jdbc.driver.OracleConnection;
    import oracle.jdbc.driver.OracleCallableStatement;
    import oracle.jdbc.driver.OracleTypes;
    import oracle.apps.ar.hz.v2api.HzCustAccountV2Pub;
    import oracle.apps.ar.hz.v2api.HzPartyV2Pub;
    import oracle.apps.ar.hz.v2api.HzCustomerProfileV2Pub;
    class CreateCustAccount {
         public static void main(String[] args) throws Exception {
         HzCustAccountV2Pub.CustAccountRec p_cust_account_rec = new HzCustAccountV2Pub.CustAccountRec();
         HzPartyV2Pub.PersonRec p_person_rec = new HzPartyV2Pub.PersonRec();
         HzCustomerProfileV2Pub.CustomerProfileRec p_customer_profile_rec = new      HzCustomerProfileV2Pub.CustomerProfileRec();
         BigDecimal[] x_cust_account_id = new BigDecimal[1];
         String[] x_account_number = new String[1];
         BigDecimal[] x_party_id = new BigDecimal[1];
         String[] x_party_number = new String[1];
         BigDecimal[] x_profile_id = new BigDecimal[1];
         String[] x_return_status = new String[1];
         BigDecimal[] x_msg_count = new BigDecimal[1];
         String[] x_msg_data = new String[1];
         try
         Class.forName ("oracle.jdbc.driver.OracleDriver");
         OracleConnection conn = (OracleConnection) DriverManager.getConnection ("jdbc:oracle:thin:@ebiztst.trianz.int:1526:PATCH","apps","apps");
         HzCustAccountV2Pub custaccountV2Pub = new HzCustAccountV2Pub();
         p_cust_account_rec.account_name = "John Ac";
         p_person_rec.person_first_name = "John";
         p_person_rec.person_last_name = "Smith";
         p_cust_account_rec.created_by_module = "TCA_EXAMPLE";
         HzCustAccountV2Pub.createCustAccount(
         conn
         , "T"
         , p_cust_account_rec
         , p_person_rec
         , p_customer_profile_rec
         , "F"
         , x_cust_account_id
         , x_account_number
         , x_party_id
         , x_party_number
         , x_profile_id
         , x_return_status
         , x_msg_count
         , x_msg_data
         System.out.println( "x_return_status = " + x_return_status[0] );
         System.out.println( "x_msg_count = " + x_msg_count[0] );
         System.out.println( "x_msg_data = " + x_msg_data[0]);
         if (x_msg_count[0].intValue() > 1) {
              OracleCallableStatement ocs = null;
              for (int i=0; i<x_msg_count[0].intValue(); i++) {
              ocs = (OracleCallableStatement)conn.prepareCall(
              "begin ? := fnd_msg_pub.get( p_encoded => ’F’ ); end;");
              ocs.registerOutParameter(1, OracleTypes.VARCHAR);
              ocs.execute();
              System.out.println((i + 1) + ". " + ocs.getString(1));
              conn.close();
              } catch (ClassNotFoundException e) {
              System.out.println("Driver Not Found: " + e);
              } catch (SQLException e) {
              System.out.println("SQL Error." + e);
    }

  • How to trigger New page while using ALV with classes/oops?

    Hi All
    I am trying to print a report which has to show the data in two pages.
    I am using ALV with classes/oops.
    Though I am able to print the report but a new page is not coming. Whole of the data is coming in one single page.
    Please tell me as to how to trigger a NEW PAGE while using ALV with classes/oops.
    Please send some code samples also if available.
    Thanks in advance.
    Jerry

    using sort option you can do it. in case of grid/oo alv class ALV you can view that only in print mode/preview mode.
    in case of list you can view that directly.
    sort-fieldname = 'FIELDNAME'.
    sort-group = '*'  "triggers new page
    sort-up = 'X'.
    append sort to it_sort.

  • Start JavaFx project using a Java class

    After hours of searching, I still can't solve this problem:
    I have a pure JavaFx project but need to start it with a Java class.
    It used to work with the Interface method, but (I guess) since the javafx update to 1.3, the JavaFx code starts executing (the console outputs FX.println statements) but the stage(s) never become visible.
    Activator.java
            final Context context = FXLocal.getContext();
            final FXClassType instance = context.findClass("javafx.Launcher", this.getClass().getClassLoader());
            final ObjectValue obj = (ObjectValue) instance.newInstance();
            final LauncherInterface l = (LauncherInterface)obj.asObject();
            l.run();LauncherInterface.java
    public interface LauncherInterface {
        public void run();
    }Launcher.fx
    public class Launcher extends LauncherInterface {
        public override function run() {
    // [...] init stuff
            MainWindow.createWindow();
    }I'm using java version "1.6.0_21", javafx 1.3.0_b412, windows 7
    any ideas?
    thanks alot

    There is someting wrong in my answer that on the FX side you can keep your code but on the java side the call have to be defered to the javaFX container like that:
    com.sun.javafx.runtime.Entry.deferAction(
                    new Runnable() {
                        @Override
                        public void run() {
                              //Create javaFX Stage
                );The class is in javafxrt.jar

  • Implementing DOM Interface with existing Java classes

    I had planned on using some tree-like Java classes as a Document Object Model, which would give me access to all sorts of XML and DOM tools like parsers and XSLT transformers. Initially, I thought all that would be neccessary is to implement all the DOM Interfaces in org.w3c.dom and then I would have a set of classes that conformed to DOM Level 1. It was my understanding that interfaces such as DOMImplementation and Document would interface with various XML tools, allowing creation of a class that implements Document and then Document would have its various factory methods that know how to create the various DOM nodes such as Element, Attr, Text, NamedNodeMap, NodeList, etc.
    The problem I'm seeing now is that the JAXP specification (which is what the latest Xerces and Xalan tools conform to) has something called a DocumentBuilder and DocumentBuilderFactory that appear to be necessary to tell the framework what type of class to instantiate that implements the Document DOM interface. Those appear to have a lot of methods that deal with parsing of XML documents and I didn't really want to write or even subclass any existing Parsers in order to get the functionality of traversing and transforming a set of classes that implement the DOM interface.
    Am I missing something here? Is it possible to plug in any (set of classes for) DOMImplementation and get them to work with the various DOM and XML tools out there?
    Is there an easier way to allow parts of an application access to internal data structures but have the more generic tools or APIs, such as XSL transformers, access that same set of classes as a DOM with the generic DOM interface methods?
    Can someone provide me with some guidance here? I'm in the process of finalizing some design on a system and need to know if this is possible or if I need to alter my design.
    Thanks.

    If I understand you correctly, I think I am working on a similar issue. I am unhappy with the methods given by the DOM for retrieving data from the XML file and for building a file. Our software has a bunch of code that uses these classes and it is extremely ugly. My solution was to create a facade on top of the DOM model. Essentially I have some simple classes that store all the pertinent info (for me) about the XML structure. Essentially that is the element or attribute name, its values and in the case of the element, it's children. This makes it easier for me to build and retreive the data. What I then built was a loader class and a builder class. The loader takes an XML file and parses it in using the DOM classes and builds a structure using my classes and returns the root element. The builder takes a root element and creates a DOM object out of it. This frees me of having to code around the DOM classes all over the place and makes it simple to upgrade our XML code if the DOM changes or a better DOM is released. I am using factories to facilitate this and allow me to have loaders for specific types of XML documents so that I can have a class for each which further simplifies the XML related tasks of other developers on my team.

  • AES Algorithm error when trying to encrypt using stored Java class.

    Dear All,
    We have a specific reuirement where in we cannot use DBMS_CRYPTO package to encrypt/decrypt data using AES Algorithm
    So I am trying to use a stored Java class and I am getting "AES algorithm not available".
    I am using Oracle 10gR2 standard edition.
    Below is my code
    1. Stored Java class
    2. Stored function to access the above Java class.
    3. Test anonymus PL/SQL to test above code.
    Please help me finding the problem why I am getting "AES algorithm not available" error when I call stored Java class in Oracle.?
    **** If I use "DES" algorithm, it works. Also the Java code works well if I execute it as normal Java class from Eclipse.
    I verified the java.security file in jre/lib/security and I see that there is provider entry for SunJCE.
    The jre version in Oracle is 1.4.2.
    I appreciate your help.
    Thanks,
    Priyanka
    Step1: Stored java class to encrypt and decrypt data
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "EncryptUtil" AS
    import java.security.Key;
    import javax.crypto.Cipher;
    import javax.crypto.KeyGenerator;
    import javax.crypto.SecretKey;
    import javax.crypto.spec.SecretKeySpec;
    public class EncryptUtil
         public static String encrypt(String inStr)
         String outStr = "Test data 123";
    try
    KeyGenerator kgen = KeyGenerator.getInstance("AES");
    kgen.init(128);
    SecretKey skey = kgen.generateKey();
    byte[] raw = skey.getEncoded();
    SecretKeySpec skeySpec = new SecretKeySpec(raw, "AES");
    Cipher cipher = Cipher.getInstance("AES");
    cipher.init(Cipher.ENCRYPT_MODE, skeySpec);
    byte[] encrypted =
    cipher.doFinal(inStr.getBytes());
    outStr =new String(encrypted);
    catch (Exception e)
         outStr = outStr + "exception thrown::" + e.getMessage();
    e.printStackTrace();
    return outStr;
    Step2: Stored function to access above stored java class.
    CREATE OR REPLACE FUNCTION SF_ENCRYPTUTIL(
    pKey1 VARCHAR2
    ) RETURN VARCHAR2 AS
    LANGUAGE JAVA NAME 'EncryptUtil.encrypt(java.lang.String ) return java.lang.String';
    Step3: Test encryption and descryption
    DECLARE
    outstr VARCHAR2(2000);
    BEGIN
    DBMS_OUTPUT.PUT_LINE('outstr-->' || SF_ENCRYPTUTIL('12345'));
    END;
    Below code example using DBMS_CRYPTO. This works, but we do not want to use this.
    declare
    l_in_val varchar2(2000) := 'Test data 123';
    l_mod number := dbms_crypto.ENCRYPT_AES128
    + dbms_crypto.CHAIN_CBC
    + dbms_crypto.PAD_PKCS5;
    l_enc raw (2000);
    l_enc_key raw (2000);
    l_dec raw (2000);
    begin
    l_enc := dbms_crypto.encrypt
    UTL_I18N.STRING_TO_RAW (l_in_val, 'AL32UTF8'),
    l_mod,
    HEXTORAW('156ae12300ccfbeb48e43aa016febb36'),
    HEXTORAW('001122230405060708090a0b0c0d0e0f')
    dbms_output.put_line ('Encrypted='||l_enc);
    end;
    Edited by: user5092433 on Sep 10, 2009 12:26 AM

    I guess I'd be a bit curious about why you can't use a DBMS_CRYPTO solution that provides identical output. It seems odd to want to have a procedure running inside Oracle and then dictate that it has to be Java and not PL/SQL...
    I verified the java.security file in jre/lib/security and I see that there is provider entry for SunJCE.
    The jre version in Oracle is 1.4.2.Which java.security file are you talking about? The JVM that is inside the Oracle database does not and can not use configuration files that are outside the database. I suspect when you talk about files and paths that you're looking at a JVM outside the database, which is not the JVM that your Java stored procedure would be using.
    Looking at the error, my assumption is that some JAR file needs to be loaded into the internal JVM in order for the AES algorithm to be available. But I'm unfortunately not familiar enough with these classes to say what that would be.
    Justin

  • How to use Spatial Java Class to update spatial data?

    Hi,
    I am new to Oracle and couldn't find enough information on how to update spatial data.
    Here are my questions?
    1)Where could I find Spatial Java Class Javadoc?
    2)I'd like to update spatial data inside a ResultSet.next() loop.
    After I got the Geometry object and Point object how do I change the x and y values of Point object and save it back to the database.
    3)
    GeometryAdapter sdoAdapter = OraSpatialManager.getGeometryAdapter("SDO", "8.1.6", null, STRUCT.class, null, conn);
    Can I use the above GeometryAdapter for saving Geometry back to database?
    4)
    SpatialReference sref = srManager.retrieve(8265);
    // SRID = 8265: LAT-LON (NAD 83)
    Do I need to create a SpatialReference object and why retrieve the SRID '8256'? Do I have to create SRID '8256'?
    Thanks for any help
    Gwowen

    You can find some sample code that shows you how to do that using
    the SDOAPI java library. Look under the "Sample Code" section on
    OTN's Spatial page:
    http://otn.oracle.com/sample_code/products/spatial/content.html
    The sample file SampleNewToSDO.java is what you will need.
    hoep this helps,
    -LJ

  • New customized report using PLD or QUERY PRINT LAYOUT to show customers onl

    I am working with a Software Developing firm as an SAP Consultant.
    Please tell me how to create a new     customized     report displaying various details as required by the client in the report using PLD or Query Print Layout.
    Please help me asap.

    Hi,
    You can create queries using the Query Generator or the Query Wizard tools.
    After you have created your own queries, you can link them to a required print layout.
    for user reports.Look at:
    Tools --> Queries --> Query Print Layout
    Set there your query reports.
    Printing User-Defined Queries
    After you had linked a user-defined query to a user report template, you can now print it
    according to its linked print layout.
    There are two ways for printing your user-defined queries.
    1. Using the Query Print Layout window:
    • Select from the upper menu Tools &#1048774; Queries &#1048774; Query Print Layout.
    • Click the Reports tab page.
    • Click to highlight the required query you would like to print.
    • Click on the printer icon or select from the upper menu File &#1048774; Print.
    • The user-defined query is printed according to its linked print layout.
    2. Using the Queries Manager window:
    • Click the Queries Manager icon on the upper tool bar.
    • Click to highlight the required query you would like to print.
    • Click on the printer icon or select from the upper menu File &#1048774; Print.
    • The user-defined query is printed according to its linked print layout.
    Note! You can also print preview user-defined queries. Do so by selecting the Print
    Preview option as described in the methods above for printing your query.
    Btw, you could search the manual training files relate to query PLD in http://www.service.sap.com/smb
    Rgds,

  • How to use the java class created by  "CONTIVO" as web sevrvice?

    Hi All,
    We are creating the java class by the Contivo mapping tool, how to use that class as a web serivce?
    Very thankful if anyone gives some light on this.
    Thanks in advance.....
    rgds,
    Rajeev Pariyadathu

    com.contivo.runtime.dom.Transform
    Transform.transform(     "Transform_HotelAvailRQ_",file1, file2);, like this we can use the contivo generated class

  • Error occured when using javap (Java Class File Disassembler)

    Hi,
    I have tried to use Java Class File Disassembler by using javap and i'm getting the error shown below,
    C:\> javap abc.class
    ERROR: Could not find abc.class
    abc.class present in C:\ drive.
    Please let me know how to solve the problem
    Thanks in Advance
    Soundar

    Hi,
    Thanks for your information, it works fine. Please let me know is there any option to display the method and variable implemation in abc.class.
    I have tried javap abc it displays the method name only.
    Thanks in advance,
    Soundar

  • Re: Using simple java class in an .war file.

    Hi All,
    I have a simple question,
    Can I access an simple java class from a jsp file that I have written by putting it in the "classes" folder?? What entry should go in the web.xml file?
    Here is my directory structure:
    sample.war
    |
    ----test.jsp <file>
    |
    ----WEB-INF <folder>
    | |
    | ----classes<folder>
    | | |
    | | ----simpleJavaClass.class<file>
    | |
    | ----lib<folder>
    | |
    | ----web.xml
    I want to access the simpleJavaClass.class from the jsp test.jsp.
    Please suggest.
    Thanks and regards
    Ayusman

    It is possible to access the class in u r classes folder from u r jsp file.
    For example
    <%@ page import="com.test.service.PricingSolution,
    com.test.core.PhoneNumber
    %>
    <% PricingSolution solution = (PricingSolution)session.getAttribute("solution"); %>
    This is a simple scriplet example. You do the same using jstl tags also.
    --Shinoy

  • Evaluting BODMAS expression using a Java Class

    Hi,
    How to evaluate an BODMAS rule in java class. I will be getting some formula and i should evaluate using bodmas rule. Can any help me out in this.

    And taking some notice of the reply that was provided three times, instead of just repeating the question, also doesn't cost a thing. Some people think it is the entire point of the forum, and of posting in the first place.
    And reviving old threads just to tell someone that they need 'a lot of growing up', and to improve their 'manners', and to stop the 'hostility and nastiness', while claiming you're 'not trying to start a fight at all', is not at all convincing. In fact it is both childish and ill-mannered.

  • Using normal java classes to access database

    Dear friends,
    Is it a good practice to make database calls from a normal java class within J2EE environment.
    What I meant by a normal java class is a class which is not an enterprise bean.
    Best Regards,
    Chamal.

    it is quite normal.
    If you make your own DAOs, it may not be efficient/generic.
    JSP/Servlets can use Hibernate (which is a set of POJOs) to access DB. Thus you have a J2EE environment using a very matured DB access methodoloy, and doing away with Enterprise bean.
    regards

  • Is there any way to generate pdf from an xml file using single java class

    i m working on generating a pdf file from an xml file. i want to use only a single java class to do so. if theres any such code available please help me to find out.
    Thanks
    Gurpreet Singh

    exactly,
    here are some libraries which are open sources;
    http://java-source.net/open-source/pdf-libraries hope it's useful. :D

Maybe you are looking for

  • Skype Account contact list and skype name changed

    Hi! I have been actively using my skype account again lately and one time last week when I signed in, I just cannot. My username and password are correct. And so what I did was to reset my password. I was able to reset my password through my email an

  • IMac will not wake from sleep after 10.4.8 Update

    Recently after a couple of software updates my IMac goes to sleep and the Bluetooth keyboard and mouse will not wake it. The option for wake with Bluetooth is checked. I zapped the PRAM and also checked the HD, Nothing has changed. NOTE: No new softw

  • Visual C++ 6.0 error with Measuremen​t Studio ActiveX controls

    Hi, I'm triyng an evalutation version of Measurement Studio for VC++ 6.0 for my company. I'm working on a single document application with a menu bar. I have several dialog linked to the menu bar but, at run time, the application crash with memory le

  • To include a header in Payslip - Form Editor

    Dear Friends, It would be really great if someone could help me in this regard. My client would like to add the name of the Company on top of the payslip. Currently from Line 1 something is displayed in form editor. Where should i do the header inclu

  • EBP 5.0 integration with Third Party

    Hi We need to integrate EBP with a third part J2EE web based application INtegration touch point while creating free text requiistion(indirect material) user need to call the third party application, the thirdparty application will return an aditiona