Rhino API Advantages

hello !
does anyone know what advantages and/or disadvantages does rhino API have? as i jnow its faster but here is my code:
import org.mozilla.javascript.Context;
import org.mozilla.javascript.Function;
import org.mozilla.javascript.Scriptable;
public class SimpleRhino {
     public void simple() {
          int c=0;
          for (int i = 0; i < 10000000; i++) {
               c++;
     public void simpleWithRhino() {
          Context ctx = Context.enter();
          try {
               Scriptable scope = ctx.initStandardObjects(null);
               Object result = null;
               String source = "function f(){\n" +
                         "\n var i=0;" +
                         "\n var j=0;" +
                         "\n var c=0;" +
                         "\n for(i=0;i<10000000;i++) " +
                         "\n c++;"+
                         "\n return c;}";
               scope.put("name", scope,null);
               ctx.evaluateString(scope, source, "<script>", 0, null);
               Object f = scope.get("f", scope);
            result=((Function)f).call(ctx, scope, null, null);
            System.out.println(Context.toString(result));
          } catch (Exception ex) {
               ex.printStackTrace();
          } finally {
               Context.exit();
     public static void main(String[] args) {
          SimpleRhino s = new SimpleRhino();
          long l = System.currentTimeMillis();
          s.simpleWithRhino();
          System.out.println(System.currentTimeMillis() - l);
}when i test it simple() function works faster than simpleWithRhino() . can anyone tell me shortly what advantages does Rhino API have?

JS and Rhino are not a substitute for Java - it's a LOT slower and much more hassle.
You may want to use Rhino to solve a number of problems, some examples might be
1) You need dynamic code which can be changed quickly without recompilation. You could implement dynamic business rules this way.
2) It solves some problem that Java doesn't solve easily. I saw a number of examples here which take advantage of JavaScript's arithmetic processing.
Though it should be used sparingly in any of these cases. Having too much code implemented in JavaScript like this will take its toll on application performance and you also lose static typing and a number of other benefits Java offers.
Edited by: binary_coder on May 6, 2009 6:19 AM

Similar Messages

  • Java 6 Scripting API vs Rhino

    Apologies if this isn't the right place for this question, but I can't see a more appropriate forum.
    I have some classes that use the Mozilla Rhino API for invoking javascript, and I was planning to upgrade this to use the new javax.script classes in Java 6. However, there's one particular feature that seems to be missing.
    In Rhino, you invoke JS functions through the Function class (See http://www.mozilla.org/rhino/apidocs/org/mozilla/javascript/Function.html). This has a method construct() which invokes a JS function that has been implemented as a constructor, and returns the new JS object.
    I can't find an equivalent method in the javax.script API. Am I missing something? Or was this feature deliberately left out because the new API is designed to be more general purpose, and support langauges that don't have constructors?
    Thanks,
    Alasdair

    If it was me I wouldn't get all excited just because it seems like the java API implements something that previously required a third party library.
    I know that when initially the logging api showed up I thought log4j would never be needed again. That was until I actually looked at what the logging api provided. It wasn't close. So sticking with log4j was and still is by far the better choice.
    Besides the actual API you might also note that as the first version that it is more likely to have bugs than a third party library that has been around for a while.

  • Rhino

    Hello everyone,
    I've recently downloaded Rhino for implementing JavaScript in my Java Applications. The reason for this is that I want to handle events in javascript, and some other stuff (if it's fast enough). My problem, though, is that I don't know how to call a function. I load the js from a file and compile it to a Script. I get the Script object by using Context.compileScript(...). But how can I get a Function object?
    Nille

    Can't find the Context.compileScript method in the Rhino API javadoc. But check out the Context.compileFunction method ( http://www.mozilla.org/rhino/apidocs/org/mozilla/javascript/Context.html#compileFunction ).

  • How to manipulate a javascript object in java?

    Hi, I am fiddling with the java scripting interface. As I understand the rhino engine is packaged with the jdk but what I don't understand is how does one reconcile the objects one gets from their engine (e.g. sun.org.mozilla.javascript.internal.ScriptableObject) versus the ones in the rhino api (e.g. org.mozilla.javascript.ScriptableObject)?
    Is the one in the jdk heavily modified or wrappered up to suit their javax.scripting interface?
    More specifically, how do I manipulate javascript objects from java?
    e.g. suppose I have this java code:
    ScriptEngineManager mgr = new ScriptEngineManager();
    ScriptEngine js = mgr.getEngineByName("js");
    jsEngine.eval("var foo = { x : 1, y : 'hello', z : false };");
    Object o = jsEngine.get("foo");Now o is instanceof sun.org.mozilla.javascript.internal.NativeObject, which is a subclass of a bunch of other classes in the s.o.m.j.i namespace. Being internal I can't use these directly.
    Looking at the Rhino API obviously you normally get a org.mozilla.javascript.ScriptableObject and can call the .get() .getIds() methods. But I don't know how to translate the objects I am getting in my actual java code which uses the jdk engine into org.mozilla.javascript objects.
    Is this even possible? Am I misunderstanding something completely? Should I just be using the rhino js jar and not the javax.scripting interface? If so, for what reason is the javax.scripting interface implemented?

    Assuming that you DO want a deep copy, begin with a constructor that takes another hand.
    public Hand( Hand h ) { ...Then for each instance variable, within that constructor:
    this.instVar0 = h.instVar0;
    this.instVar1 = h.instVar1;
    . . .And last, for every reference, make sure there is a constructor (or copy method for arrays) that itself makes a deep copy:
    this.ref0 = new Ref0Type( h.ref0 );

  • What is purpose of Shipping APIs and advantages oveer ship confirm interface

    Any body has idea about these shipping APIs like
    WSH_TRIPS_PUB /WSH_DELIVERIES_PUB ???? At One time you can enter
    only one record through API (Like One time only one trip info
    can enter) ,so the same can be done though Transaction Window ??
    so why should i go for ship confirm API?what are the advantages?
    I am not able to find much information about it.
    If any one has idea about it ,pls let me know.

    There is no other supported way to bring shipping information
    from an external system into 11i without using the API's. There
    were shipping interfaces prior to 11i but they are now
    desupported and only the API's are supported.
    It is taking a step back but ....
    Rishi

  • How can I delete the TemporaryTopic using JMS C API or VC++

    Hello everybody,
    how can I delete the TemporaryTopic after created TemporaryTopic using JMS C API "JmsSessionCreateTemporaryTopic"?
    I checked the document about JMS C API, but I couldn't find any API for delete TemporaryTopic, it's really not existing?
    Or if there's any other way that I can delete TemporaryTopic using VC++? Any comments will be appreciated.
    Thanks for your help!
    Youbing he

    As far as I can tell, there's no C-API option for deleting a temporary topic other than to close the connection used to create the temporary topic. Note that it is inefficient to frequently create and destroy temporary topics.
    You can get pretty much equivalent performance and functionality with a shared regular topic, non-durable subscriptions, and selectors that take advantage of the "indexed subscriber" optimization. (Consumers specify a selector that is unique to them in the exact form of "MyUniqueID NOT NULL", while publishers send to a specific consumer by adding "MyUniqueID" as a message property. The "X NOT NULL" selector format activates the indexed subscriber optimization.)
    Tom
    Edited by: TomB on Apr 27, 2010 10:44 AM

  • Java card confusing Issues!!!!!!! java card architecture, advantage!!!!!

    QUESTION -1
    As I know about architecture of any application is -
                    //normal java software                          java card                                  java card
                      //  1                                               2                                      3
    1-            application program                        host application                           host application
    2-                     JVM                                   Applets                                       Applets
    3-              operating system                JCRE(which contain all classes, JVM ....)                 JCRE(act as a O.S too)
    4                    hardware                              Operating system                                 H/W
    5                                                                        hardwareWhat do u think- case 2 is right? or 3 is!!!!!!!!!!!
    I think - case 3 is right!!!!
    As i study from several sources , JCRE is complete package - it behaves as a operation system and use the functionality of component it contain. I also think if i will purchase a java card from any vendor , it would have JCRE inside it (means everthing inside it,), i only need to develop the applet according to my requirement and install it by on card installer program
    QUESTION 2- what is the advantage of java card.?
    // I think.
    as i read out , i got the line that it is platform independent and support multiple application. applicaton point of
    view , I am agree but how it is platfrom independent. if we use java card for smart card development, then
    i will purchase Java card from differnt vendor , all will provide me card with supported jcre inside it, so why
    this is advantage here?
    // in case of window based application , it really make sense  because if i will make any window application with java
    // i can run it in windows , linux , unix and most of os flavours, here i can see the beauty of java language.
    Clear me this and add some other java card advantages, which make java card goodquestion 3-
    Now I am capaple to make simple applets, so I want to check the entire java card process atleast once before
    going in deep of something, I am thinking to implement prepaid card concept , i made it applet for it ,it will
    contain a page with 2 text box ( 1- for recharge 2- for money deduction ) and two button , with button click i
    want to select the applet and want to pass the apdu.
    ( a) how i can make host window application ? (i think awt will work for me? , *
    i never make any java window application yet) *
    ( b) still i dont have any java card , i want to make it by using simulator, is it possible?
      (c) in this scenario what framework i need to study Ex. Import javacard.framework.* for making
    applet or from where i need to start.Regards:
    rohit pathak
    Edited by: rohit pathak on Feb 9, 2012 10:10 PM

    Hi,
    QUESTION -1
    As I know about architecture of any application is -
    //normal java software                          java card                                  java card
    //  1                                               2                                      3
    1-            application program                        host application                           host application
    2-                     JVM                                   Applets                                       Applets
    3-              operating system                JCRE(which contain all classes, JVM ....)                 JCRE(act as a O.S too)
    4                    hardware                              Operating system                                 H/W
    5                                                                        hardwareWhat do u think- case 2 is right? or 3 is!!!!!!!!!!! If you are using Java Card then JCRE+JVM = OS and if you put this on ein package 3 then 3 is correct according to me.
    As i study from several sources , JCRE is complete package - it behaves as a operation system and use the functionality of component it contain. I also think if i will purchase a java card from any vendor , it would have JCRE inside it (means everthing inside it,), i only need to develop the applet according to my requirement and install it by on card installer program Actually it depends. There can be following models in this regards:
    1. Buy a empty smart card, Install your own OS and then write your applets for it.
    2. As you said, Buy a card with preloaded OS and then write applets for it.
    QUESTION 2- what is the advantage of java card.?
    * Interoperable: Applets developed with Java Card technology will run on any Java Card technology-enabled smart card, independently of the card vendor and underlying hardware.
    * Secure: Java Card technology relies on the inherent security of the Java programming language to provide a secure execution environment. Designed through an open process, the platform's proven industry deployments and security evaluations ensure that card issuers benefit from the most capable and secure technology available today.
    * Multi-Application-Capable: Java Card technology enables multiple applications to co-exist securely on a single smart card.
    * Dynamic: New applications can be installed securely after a card has been issued, enabling card issuers to respond to their customer's changing needs dynamically.
    * Compatible with Existing Standards: The Java Card API is compatible with international standards for smart cards such as ISO7816, or EMV. Major industry-specific standards such as Global Platform and ETSI refer to it.
    * Developers creating Java Card applications enjoy all the advantages of working in the Java programming language:
    Object-oriented programming yields greater code modularity and reusability, leading to higher programmer productivity.
    Protection features characteristic of the Java programming language apply to Java Card applets, enforcing strong typing and protection attributes.
    Powerful off-the-shelf development tools are readily available.
    source: http://java.sun.com/javacard/overview.jsp
    And also, in case of SIM card if you are using java card then RAM is possible and native cards don't have this ability.
    question 3
    Now I am capaple to make simple applets, so I want to check the entire java card process atleast once before
    going in deep of something, I am thinking to implement prepaid card concept , i made it applet for it ,it will
    contain a page with 2 text box ( 1- for recharge 2- for money deduction ) and two button , with button click i
    want to select the applet and want to pass the apdu.
    ( a) how i can make host window application ? (i think awt will work for me? , *You can use swing for this to make interface and use smartcardIO http://docs.oracle.com/javase/6/docs/jre/api/security/smartcardio/spec/javax/smartcardio/package-summary.html for sending APDUs.
    i never make any java window application yet) * It is easy you can look here and start: http://www.roseindia.net/java/example/java/swing/
    ( b) still i dont have any java card , i want to make it by using simulator, is it possible?Actually, smartcardIO will only interact with actuall card and for simulator you will have to use console for sending APDUs.
    (c) in this scenario what framework i need to study Ex. Import javacard.framework.* for making
    applet or from where i need to start.For your current case it is enough and for host app you should study smartcardio as i mentioned above.
    Hope it helps.
    Regards
    Umer

  • READ THIS if you use the observer APIs ...

    This is just a heads up for developers who take advantage of
    the observer APIs in Spry. For the next version of Spry I plan on
    making the observer APIs for both the Data Set and the Dynamic
    Region consistent.
    Currently in Spry PR 1.1 the data set observer mechanism
    requires that you register an object with an onDataChanged method
    on it. This method is then called with a notification type
    (Spry.Data.DataSet.ODC_*) which developers have to manually check
    against and conditionally perform their action.
    In Spry PR 1.1, the observer mechanism used for the dynamic
    region requires that you register a callback function, which gets
    passed a region state (Spry.Data.Region.RS_*) whenever it is
    called, and it is up to the developer to check against the region
    state and conditionally perform their action.
    For the next release of Spry, I plan to move to the following
    model:
    - Both data set and region observer mechanisms will require
    an object which defines notification methods for which it wants to
    be notified for.
    // Create an object with notification methods.
    var myObserver = new Object;
    myObserver.onDataChanged = function (notifier, data) {
    alert("OnDataChanged called!"); };
    // Register your object as an observer on the data set.
    dsMyDataSet.addObserver(myObserver);
    - Notification methods will all have the same signature:
    function (notifier, data) {}
    The notifier is the object that is dispatching the
    notification, and the data is an object that will contain
    information regarding the notification, where necessary, or
    undefined if no additional data is necessary for the notification.
    When called, the 'this' object within the notification method
    will be the actual observer object.
    - We will publish a list of notification methods that can be
    defined on the observer object for both the data set and dynamic
    region.
    - *All* methods on the observer object are *OPTIONAL*, which
    means you only have to define the notification methods that you
    want to be called for. For example:
    var observerA = new Object;
    var observerB = new Object;
    observerA.onDataChanged = function (notifier, data) {
    alert("observerA.onDataChanged called!"); };
    observerA.onSortChanged = function (notifier, data) {
    alert("observerA.onSortChanged called!"); };
    observerB.onDataChanged = function (notifier, data) {
    alert("observerB.onDataChanged called!"); };
    myDataSet.addObserver(observerA);
    myDataSet.addObserver(observerB);
    In the example above both observerA and observerB will be
    called whenever the data changes, but only observerA will be
    notified whenever a sort happens.
    - Some events will have pre and post notifications. For
    example onPreLoad(), onPostLoad(), onPreUpdate() and
    onPostUpdate(), etc.
    If you have any opinions, concerns or feedback on this. Now
    would be the time to speak up.
    --== Kin ==--

    As one person who asked for this, I like what your planning.
    Is that onPreLoad() an event that will get fired before an Ajax
    request goes out for new data? Cuz I could really use that.
    A tagentally related thought: Notifications are great, but in
    some cases, I might want to control whether some behavior happens.
    Say, perhaps I want to control whether the load actually happens.
    In that case, I'd want a delegate object, which would have some
    methods on it that could cancel the event that is going happen.
    Just as an example:
    var delegate = {
    willFireLoad: function(...) { if (somecondition) return
    false; else return true; },
    unknownValueForKey: function(key, dataset) { ... return
    dynamic value ... },
    unknownValue_desc: "Description"
    dataSet.setDelegate(delegate);
    The first would allow me to stop the data from being loaded.
    The second would allow me to return a value for a key that isn't
    present in the dataset. And the third could be a way to hardcode a
    value for the key 'desc'.
    Just kinda an idea as far as what could be done, and I'm sure
    there might be other control points too.
    -d

  • Advantages of using Google or Bing Tile layers

    Within the Mapviewer API they allow you to use either Bing or Google tile layers for your map. I was just wondering what the functional advantages of using Mapviewer (with those layers added) would be versus just using Google or Bing directly through their own javascript APIs.
    Thanks.
    Edited by: user1175540 on Dec 29, 2010 2:16 PM

    Hello,
    if you just want to display google or bing maps, than there is no functional advantage.
    But if you want to display your own data on top of the googel or bing maps, than you get the whole advantages of mapviewer.
    Of course you can use the google api to display your own data, but you won't get the mapviewer advantages like pre rendering, caching, fois etc.

  • Advantages of using BO over tools provided in BEx

    Hi,
    I am wanting to know if there is any documentation enlisting the advantages of using BO over the tools provided in BEx.
    Also, what is the advantage of using BO analysing data from cubes in BI 7.0 than accessing data from SAP R/3 directly.
    Thank you.

    Hi
    Advantages of BO (as well as other Query/Reporting) are that they provide robust end users interfaces
    in terms of designing queries, reports and also run on a standalone desktop client. Their user interface is
    easy to use and much easier environment to design manus, drop-down boxes/lists and buttons and also provide wizards to help users guide. These tools can also work against several heterogenous data sources.
    There are several factors one needs to keep in mind when selecting 3rd Party tools for SAP BW. A few are listed below:
    BO uses OLEDB for OLAP API via BEX query. This causes extra overhead because here you have BEX resources and then you add up BO resources to manage infrmation to/from BEX query over the OLEDB interface. Some vendors, like arcplan, use OLAP BAPI to access BW data. This API has somewhat lower overhead because it bypasses the OLEDB for OLAP layer.
    As you know that BEX is MSExcel based. It is not easy to build sophisticatecd user interfaces without doing extensive VBA or Macro programming.
    Thanks & Regards
    Praveen Yagnamurthy

  • Advantages of SP13  for PI 7.0

    Hi,
       can any body give me  the documenation  about Support Pack13 for PI 7.0 ...  because  i need to give a demo on this  SP13 .. what are  the advantages of SP13 ..  and what are the new features.. these all thing i  want to know... so, can any body provide me  a brief idea abt that..
       i gone through  this link but i was unable to find the documenation .. so, plz provide me the helpful  information..
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sps/index.do?pvnr=01200615320900001250
    any help ... plz...
    Thanks
    Babu

    Hi Babu,
    Apart from the links provided these are also additions for sp13
    3.1     SP 13
    Some mapping programs require additional data from an application system to map messages to each other. Furthermore, you may want to reuse existing mapping routines from an application system.
    It was previously only possible to read values for/while executing message, Java, or XSLT mapping programs from a global value-mapping table. Also, If you wanted to execute calls to an application system during a mapping, you could use the Java Connector (JCo), for example. Calls of this kind are known as lookups, and were previously only visible in the program code of the mapping program. This Support Package Stack contains a new API for the mapping runtime that enables you to execute lookups for message mappings, Java mappings, and XSLT mappings (J2EE Engine).
    •        The lookup API contains methods for generically accessing application systems by using the RFC, JDBC, and SOAP adapters. Also included is a special API for the JDBC adapter, which simplifies the procedure for accessing application systems.
    •        You configure the access procedure by using a communication channel in the Integration Directory.
    •        When configuration is complete and the runtime is active, you can test lookups that are part of a mapping program by using the test environment of an interface mapping.
    See also:  Mapping Lookups
    Reward points if found useful.

  • API and WebServices

    What is WebServices and API in MDM? How both are linked to each other when you are doing ABAP API in the real time scenarios?
    Thanks in Advance,
    Best Regards,
    Vijay

    Hi,
    Web services for MDM are open interfaces to the MDM Server. They provide data management capabilities (create, read, update) and access to central key mapping (create, read). MDM Web Services provide synchronous access to MDM for the consumer of the Web services.
    The MDM Web services can be used to:
    &#9679;  Manage Master Data Objects
    &#9675;  Existence check of a central master object before local creation
    &#9675; Retrieve details and create a local replicate
    &#9675; Create or update master data objects on MDM
    &#9679; Manage Unique Identifiers of Master Data Objects
    &#9675; Remote system registers local object as replicate of global object
    &#9675; Key mapping during message exchange on SAP NetWeaver XI
    Also MDM Web services provides the following Web service categories:
    &#9679;  Key Mapping Web services
    To create and retrieve key mapping information for MDM records
    &#9679; CRUD (Create, Retrieve and Update; Delete not yet provided) Web services
    It exposes MDM's rich functionality in searching for records and maintaining data in records (for example, main table, lookups, qualifiers).Another category of Web services, developed to support MDM Customer Data Integration (CDI), is the Business Partner (BP) CRUD Web services. In contrast to MDM CRUD Web services that are schema-independent, the BP Web services are hard-wired to MDM’s Business Partner repository/schema. Schema changes require the adaptation of the interface and of the code of the BP Web services.
    API
    The MDM ABAP API provides an interface for accessing SAP MDM 5.5 using ABAP. The interface is easy to configure and convenient to use.It is optimized for ABAP developers and available using ABAP Objects and function modules (partly remote enabled). In addition to the core services performed on the records (create, retrieve, update, delete, query, etc), metadata (tables, fields, etc.) and administrative functions (such as repository) are delivered.
    The MDM ABAP API empowers ABAP-based applications to control MDM Servers using most of the functions available in the MDM Console and MDM Data Manager applications.
    The API is provided with:
    &#9679; Interfaces and methods (ABAP objects)
    &#9679;  Function groups and function modules
    The interfaces with the extension SIMPLE have the following advantages:
    &#9679; Simple and comfortable access
    &#9679; Generic and object-oriented
    &#9679; Methods use DDIC structures (no arrays, but tables and fields)
    Regards
    Nisha

  • BPM 11g: JAVA API and Webservice API

    Who knows BPM 11g: JAVA API and Webservice API?
    Customer want to call BPM 11g between Heterogeneous systems, such .net framework. One way is use webservice API, I think, but where can find it? thank you

    When you create a BPM application in 11g, you're actually creating a SOA composite application with a BPMN component in the composite. From within the BPMN editor, you can specify the interface (parameters) of each start node in the process. If you select a start node, look at the implementation tab, you'll see a properties group that lets you define the interface one property at a time, or by selecting an interface from the catalog.
    By defining these properties you're also defining the shape of the Web Service interface that will automatically be created in the composite. If you switch to the composite view, you'll see your BPMN process with a wire to it from a Web Service that's generated from the interface defined in the BPMN editor. The naming convention is the BPMN process name with ".service" appended. When you deploy the BPMN process, the web service will also be deployed, since it's also part of the composite. From Enterprise Manager (EM) you can test the service and get the WSDL, which could be used by other applications (e.g. .NET) to start and interact with a process instance.
    This is one of the advantages of the 11g architecture. The composite exposes services to consumers/clients. The implementation could have been BPEL, BPMN, a Mediator, Java/EJBs, or any combination working together. To the consumer, it's just a web service.
    In case your next question was about security ... you won't see properties about security in the BPMN editor. You use Web Service Manager to apply security or other constraints to the web service endpoint.

  • Bursting with JAVA APIs / MultiThreading / Errors Handling

    We are trying to use the bursting JAVA APIs 10.1.3.3.1 Standalone) to burst huge XML files and generate PDF Files from RTF templates. Here are a list of our issues with this feature:
    1. We have some problems catching the errors when bursting. We have tried to use the "oracle.apps.xdo.common.log.Logger" class, but it is not always reacting like we think it should. Could you please give us an exemple of a clean bursting error catching or a brief description of how we could do it. We have a lot of difficulties to find information about using the JAVA APIs of BIP.
    2. Is it a clean way of catching the bursting errors to use the "oracle.apps.xdo.common.log.Logger" class?
    3. When using the 10.1.3.3.1 DocumentProcessor JAVA API, the process gets killed when the RTF template is not where the control file specified it. Even when using a finally clause containing the document processor, we can't fetch the error from the "oracle.apps.xdo.common.log.Logger" class. We did not find a way to catch this error which make our program crash.
    4. How can we enable multi-threading that is included in the DocumentProcessor JAVA APIs so it can take advantage of the multi-processors environnements?

    1. Check tim d. blog, you can use the bursting listners to get the errors. It's also in the documentation.
    First, on every exception, the Bursting APIs are dumping the error in the Logger. So I can't see how we can use the listeners to catch these. We can check the hasExceptions on the Logger but still, we have some problems with this. When we deploy our application as a MDB (Message driven bean), it seems that once the hasException flag has been raised, if we call the MDB again, it is still up. Is there documentation about that Logger class? Also, I'm worried that we won't be able to call our MDB twice to run simultaneously 2 different bursting process since it seems the Logger is something static, keeping every exception in memory... That's bad.. And show me where you have found documentation about this. All I see in documentation is how to call the DocumentProcessor in a couple of lines. I don't see anything about a clean way to catch errors.
    2. Yes/No/Depends. I think it's fine. If your changing the logger options in your program that could come back to haunt you.
    I guess so, I'm not changing anything and its already haunting me...
    3. When using the 10.1.3.3.1 DocumentProcessor JAVA API, the process gets killed when the RTF template is not where the control file specified it. Even when using a finally clause containing the document processor, we can't fetch the error from the "oracle.apps.xdo.common.log.Logger" class. We did not find a way to catch this error which make our program crash.
    Even worst, when we deploy the component has an MDB, when the error happens, it kills the whole oc4j container... please correct this quick.
    4. How can we enable multi-threading that is included in the DocumentProcessor JAVA APIs so it can take advantage of the multi-processors environnements?
    We got an answer from the dev team which is to add two properties to the document processor, something like:
    enable-multithreading: true
    thread-count: >2
    We did that and what we got is that the process started and it got stuck in a dead lock at the first document processing. How nice! :)
    We got a milestone in March and I'm really worried about all those problems... Not enough documentation, a pretty bad error handling, errors making crash the whole oc4j container, Logger seems not to be handling simultaneous calls/ threads, not even handling two subsequent calls... etc.
    If anyone has the magic answer, it would be pretty welcomed!
    Thanks

  • Is there any API or standard process to create structure from backend

    Hi,
    Is there any standard process to create structure from backend.I want to create 300 options for a option feature from backend.
    Please let me know the API through which it can be done.
    Best Regards,
    AJ

    AJ --
    Configurator provides a "Custom Import" capability to automatically create structure. It is documented in Chapter 5 ("Populating the CZ Schema") of the Oracle Configurator Implementation Guide.
    However, setting up a custom import may actually take you more time than just creating the Options manually in Configurator Developer. If the Options need to be duplicated across several Models, it may be advantageous to build them as Items in the Configurator Developer Item Master instead, and then use Populators to automatically create corresponding Options within your Option Feature(s).
    Eogan

Maybe you are looking for

  • How to call a procedure with refcursor  from another  plsql unit

    example I created a pkg with the a procedure that returns a REFCURSOR. Now I need to call this procedure from another pkg and use the refcursor values in other pkg. Help please....... PROCEDURE CustomerSite_Get (p_Registry IN VARCHAR2, p_CustomerNumb

  • How to implement JSF text input down-arrow key = next record navigation?

    Hi All, I've got a small query which you experts might be able to help me through. I would not be surprised if such questions would already have been raised in this forum. Formerly, I've created an Oracle Form that allow user to quickly insert data i

  • External Floppy Disk Drivers

    Hi all, Can anyone tell me if I buy and external floppy disk drive - compatible with Mac... will it transfer photos to my Mac if the floppy were created on a Windows computer? -or- If I put the floppy disk photos on a CD-R using a Windows computer...

  • Apex 4.0 interactive reports and images

    To the community, I haven't had a chance to do a decent search before bed, but I was wondering if anyone had links to good examples on OTN, someone's blog, apex.oracle.com etc, but I thought I'd put the question out there overnight. I have a table th

  • Yosemite upgrades with os x server

    Hi everyone! I recently started working as a System Admin at a School District and I need to upgrade almost 200 MBS's to OS X 10.10 Yosemite from OS X 10.8 and 10.9. Previously they were not managed by any kind of server or central management. All pr