WebStart and application parameters

Ok, please forgive me if I'm being stupid.
I saw the question on the JWS Unoffical FAQ but the answer is worded pretty oddly and I'm left a bit confused. ("You can add parameters as follows ... However, WebStart will then bomb badly, " etc) -- I need to pass parameters to my application. They don't really need to by dynamic (or, I can handle it through other means, anyway) -- I just need a way to specify parameters through the JNLP file. Is there an easy way to do this? (It seems like there ought to be ..)
Thanks,
xanatos

One (easy) way is to use properties, as explained in http://java.sun.com/products/javawebstart/faq.html#41

Similar Messages

  • READ APPSET / APPLICATION PARAMETERS BY VBA ?

    HI
    I WANT TO READ  APPSET / APPLICATION BY VBA
    IS THERE ANY WAY TO GET APPSET / APPLICATION PARAMETERS  INFORMATION ?
    THANKS.

    Hi,
    Please check the below help files for Appset and Application Parameters.
    http://help.sap.com/saphelp_bpc75_nw/helpdata/en/f7/d21edd2f4c4f78b0a5be2b16e19ca1/content.htm
    http://help.sap.com/saphelp_bpc75_nw/helpdata/en/27/3f72fb7c564fa189832651380c0719/content.htm
    Regards,
    Raghu

  • Another bug in Flex? (Application.parameters and query strings)

    I'm passing in two query string parameters in the source of SWFLoader and both of them are clumped together in the first parameter by application.parameters.
    But I switch the order of the parameters in the query string and both parameters are returned correctly:
    Case #1:
    Query String:  ?cfg=zzzzzzz54B&embed_div=x
    parameters.cfg: zzzzzzz54B&embed_div=x
    parameters.embed_div:  [nothing]
    Case #2:
    Query String:  ?embed_div=x&cfg=zzzzzzz54B
    parameters.cfg: zzzzzzz54B
    parameters.embed_div: x
    Here is the actual debug commands:
    Dumper.info(this.url);
    Dumper.info(this.parameters.cfg)
    Dumper.info(this.parameters.embed_div);
    And output:
    (Case #1)
    [INFO]: file:///C:/Program%20Files/WordRad234/chm/wordrad_kt/web%20pages/zzzzzzz5/rad_3xf.swf?cfg =zzzzzzz54B%26embed_div%3Dx (String)
    [INFO]: zzzzzzz54B&embed_div=x (String)
    [INFO]: (Object)
    (Case #2)
    [INFO]: file:///C:/Program%20Files/WordRad234/chm/wordrad_kt/web%20pages/zzzzzzz5/rad_3xf.swf?emb ed_div=x&cfg=zzzzzzz54B (String)
    [INFO]: zzzzzzz54B (String)
    [INFO]: x (String)
    Something I just noticed: the equal sign after embed_div is replaced by %3D but only if embed_div comes last.

    NEVERMIND:
    It was something I was doing  to the source of SWFLoader beforehand (involving encodeURIComponent).
    I have to say, I have many, many times thought something was a bug in Flex and it was in fact my code.  In general, I think Flex/AS3 is an elegant and useful product.  The sort of ad hoc  tweaks that have to be done to avoid memory leaks though is ridiculous (though I do have that figured out pretty much as well.)

  • Getting and passing parameters in standalone application

    Hi,
    I am calling one java standalone application from another standalone application like the following
    Class c=Class.forName("Ivr");
    Object obj=c.newInstance();
    Ivr h=(Ivr)obj;
    h.service(request,channel);I want to pass and get parameters in both the application.Is it possible in standalone application?
    Thanks.
    Edited by: preethaayyappan on Aug 13, 2008 10:15 PM

    DrLaszloJamf wrote:
    Why didn't you do this?
    Ivr h= new Ivr();
    Indeed much of the posted code in the OP looks like a failed attempt to be "enterprisey".
    @OP Why don't you look at the Javadocs for this Ivr or whatever thing you have there?

  • Application Parameters not working in the Transactional iViews

    We had created transactional iViews for calling the standard SAP Transaction: IQS8 and IQS9. Here the issue is that we would like to populate the default screens for these 2 transactions with different set of default values.
    So, we created variants and sending them as an application parameter to these trasnactional iViews. When we call this iView it is displaying these default values as per the variant which we are sending. But when executing that transaction, it seems those application parameters that we send through the iView are not being used to call that transaction.
    How to enforce the transaction to make it use the application parameters as default values, does any one has any idea?
    Please let me know if any one of you have a solution for this.

    Hi Venkat,
    You might want to try the following approach:
    1- Create a new transaction code in your SAP system (using transaction SE93 - maintain transaction) which would be a transaction variant of the transaction you want to call with a specific variant
    2- Create a 'SAP transaction' iview that points to the new transaction code you created (SAP information <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/88/266a3e54a2e946e10000000a114084/frameset.htm">here</a>)
    Hope this helps.
    Regards,
    Joseph

  • Upgrade to 1.6.0_14 causing Webstart launched application to fail

    Hi, I am looking for a little help with changes made to Webstart and JNLP with update 14 for 1.6. I have an application that is packaged within a war and distributed to webserver to be launched with webstart. It has been working for 3 years without change (various versions of Java from 1.5 - 1.6.0_13) until just recently...
    Stack Trace received when trying to run the app:
    java.lang.SecurityException: class "com.cu.ajent.logger.AbstractAjentLogger"'s signer information does not match signer information of other classes in the same package
    at java.lang.ClassLoader.checkCerts(Unknown Source)
    at java.lang.ClassLoader.preDefineClass(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at com.cu.ajent.client.gui.core.MainWindow.main(MainWindow.java:287)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sun.javaws.Launcher.executeApplication(Unknown Source)
    at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
    at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    The funny thing is, this particular class only exists in one jar file with that package name and it is signed. I am wondering if this is a red herring error or if I am just completely missing something.
    JNLP File that does not work with update 14 ONLY (all other versions of 5 and 6 work):
    Notes: All jar files that are pulled through this descriptor AND the 2 extension JNLP files are from the same "signed" directory and are all signed by the same certificate at build time
    <jnlp spec="1.0+" codebase="http://jeffl:8001/Ajility/" href="http://jeffl:8001/Ajility/Ajility.jnlp">
    <information>
    <title>Ajility Client</title>
    <vendor>Columbia Ultimate</vendor>
    <homepage href="http://jeffl:8001/Ajility/index.html"/>
    <description>Ajility Client Installation with Java Web Start</description>
    <description kind="short">Ajility Client</description>
    <icon href="http://jeffl:8001/Ajility/cu/images/Ajility_logo.jpg" kind="default"/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <update check="always" policy="always"/>
    <resources>
    <java version="1.6"/>
    <property name="java.naming.factory.initial" value="weblogic.jndi.WLInitialContextFactory"/>
    <property name="java.naming.provider.url" value="t3://jeffl:8001"/>
    <property name="java.security.auth.login.config" value="http://jeffl:8001/Ajility/cu/properties/jaas_client.conf"/>
    <property name="appserver.connector.class" value="com.cu.ajility.appserver.weblogic.WebLogicConnector"/>
    <jar href="http://jeffl:8001/Ajility/cu/lib/signed/AjilityGUI.jar" download="eager" main="false"/>
    <extension href="http://jeffl:8001/Ajility/JNLP/signed_client_libs.jnlp" name="Ajility_lib"/>
    <extension href="http://jeffl:8001/Ajility/JNLP/signed_wls_libs.jnlp" name="wls_lib"/>
    <nativelib href="http://jeffl:8001/Ajility/cu/lib/swt-win32-dll.jar" download="eager" main="false"/>
    </resources>
    <application-desc/>
    </jnlp>
    Here is the version of the JNLP file that works ONLY with update 14 (fails on all other versions of java 5 and 6)
    Notes: The ONLY jar files that are actually signed are the 2 that are referenced in this main JNLP file. None of the extension jars are signed.
    <jnlp spec="1.0+" codebase="http://jeffl:8001/Ajility/" href="http://jeffl:8001/Ajility/Ajility.jnlp">
    <information>
    <title>Ajility Client</title>
    <vendor>Columbia Ultimate</vendor>
    <homepage href="http://jeffl:8001/Ajility/index.html"/>
    <description>Ajility Client Installation with Java Web Start</description>
    <description kind="short">Ajility Client</description>
    <icon href="http://jeffl:8001/Ajility/cu/images/Ajility_logo.jpg" kind="default"/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <update check="always" policy="always"/>
    <resources>
    <java version="1.6"/>
    <property name="java.naming.factory.initial" value="weblogic.jndi.WLInitialContextFactory"/>
    <property name="java.naming.provider.url" value="t3://jeffl:8001"/>
    <property name="java.security.auth.login.config" value="http://jeffl:8001/Ajility/cu/properties/jaas_client.conf"/>
    <property name="appserver.connector.class" value="com.cu.ajility.appserver.weblogic.WebLogicConnector"/>
    <jar href="http://jeffl:8001/Ajility/cu/lib/AjilityGUI.jar" download="eager" main="false"/>
    <extension href="http://jeffl:8001/Ajility/JNLP/client_libs.jnlp" name="Ajility_lib"/>
    <extension href="http://jeffl:8001/Ajility/JNLP/wls_libs.jnlp" name="wls_lib"/>
    <nativelib href="http://jeffl:8001/Ajility/cu/lib/swt-win32-dll.jar" download="eager" main="false"/>
    </resources>
    <application-desc/>
    </jnlp>
    Can anyone give me an idea or a place to start?

    Hello,
    I am also having a problem with this upgrade to 1.6.0_14. Webstart was working find with us throughout java 6 but this upgrade broke it. Here is the JNLP. All of the jars are signed by our own certificate, but the error is saying that one of our jars is not signed. I am 100% positive that the jar is signed. In the release notes i saw them say that if we set an "insecure system property" that it throw this error? Here is our jnlp please help!
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+"
    codebase="http://$$app.codebase$$:8080/smartwerks/webstart"
    href="smartwerks.jnlp">
    <information>
         <title>$$app.title$$</title>
         <vendor>Tyler Retail Systems</vendor>
         <description>$$app.title$$</description>
         <homepage href="http://$$app.codebase$$:8080/smartwerks"/>
         <description kind="short">$$app.title$$</description>
         <icon href="images/smartwerks_logo_icon.jpg" width="64" height="64" kind="short"/>
         <icon href="images/smartwerks_logo.jpg" kind="splash" />
         <shortcut online="true">
              <desktop/>           
              <menu submenu="Tyler Retail Systems"/>
         </shortcut>
         <update check="always" policy="always" />
    </information>
    <security>
         <all-permissions/>
    </security>
    <resources>
              <jar href="Smartwerks-client.jar" main="true"/>
              <jar href="lib/Smartwerks-common.jar"/>
              <jar href="lib/FastInfoset-1.2.3.jar" />          
              <jar href="lib/XmlSchema-1.4.5.jar" />               
              <jar href="lib/aopalliance-1.0.jar" />
              <jar href="lib/bsf-2.4.0.jar" />
              <jar href="lib/bsh-1.3.0.jar" />
              <jar href="lib/commons-codec-1.3.jar" />
              <jar href="lib/commons-collections-3.1.jar" />
              <jar href="lib/commons-lang-2.4.jar" />
              <jar href="lib/commons-logging-1.1.1.jar" />
              <jar href="lib/cxf-2.2.1.jar" />
              <jar href="lib/cxf-manifest.jar" />
              <jar href="lib/forms-1.0.5.jar" />
              <jar href="lib/geronimo-activation_1.1_spec-1.0.2.jar" />
              <jar href="lib/geronimo-annotation_1.0_spec-1.1.1.jar" />
              <jar href="lib/geronimo-javamail_1.4_spec-1.2.jar" />
              <jar href="lib/hsqldb.jar" />          
              <jar href="lib/imaging.jar" />
              <jar href="lib/informa.jar" />          
              <jar href="lib/jaxb-api-2.1.jar" />
              <jar href="lib/jaxb-impl-2.1.9.jar" />
              <jar href="lib/jcalendar.jar" />
              <!-- jasper reporting -->          
              <jar href="lib/iText-2.1.4.jar" />
              <jar href="lib/jasperreports-3.5.0.jar" />
              <jar href="lib/poi-3.2-FINAL-20081019.jar" />
              <jar href="lib/poi-contrib-3.2-FINAL-20081019.jar" />
              <jar href="lib/poi-scratchpad-3.2-FINAL-20081019.jar" />
              <jar href="lib/jxl.jar" />          
              <!-- java desktop -->
              <jar href="lib/jdic.jar" />
              <jar href="lib/jdic_stub.jar" />
              <nativelib href="lib/jdic_dll.jar" />
              <!-- JIDE -->
              <jar href="lib/jide-action.jar" />
              <jar href="lib/jide-beaninfo.jar" />
              <jar href="lib/jide-common.jar" />
              <jar href="lib/jide-components.jar" />
              <jar href="lib/jide-dashboard.jar" />          
              <jar href="lib/jide-dialogs.jar" />
              <jar href="lib/jide-dock.jar" />
              <jar href="lib/jide-editor.jar" />
              <jar href="lib/jide-grids.jar" />
              <jar href="lib/jide-pivot.jar" />
              <jar href="lib/jide-rss.jar" />
              <jar href="lib/jide-shortcut.jar" />
              <!-- java help -->
              <jar href="lib/jsearch.jar" />
              <jar href="lib/jh.jar" />
              <jar href="lib/jhall.jar" />
              <jar href="lib/jhbasic.jar" />
              <!-- jgoodies -->
              <jar href="lib/looks-1.2.2.jar" />
              <!-- misc utils -->
              <jar href="lib/log4j-1.2.11.jar" />          
              <jar href="lib/mail.jar" />
              <jar href="lib/neethi-2.0.4.jar" />
              <jar href="lib/pixie-0.99.0.jar" />
              <jar href="lib/syndiag2.jar" />
              <jar href="lib/velocity-1.5.jar" />          
              <jar href="lib/wsdl4j-1.6.2.jar" />
              <jar href="lib/wss4j-1.5.6.jar" />
              <jar href="lib/wstx-asl-3.2.6.jar" />
              <jar href="lib/xercesImpl.jar" />
              <jar href="lib/xml-apis-1.3.02.jar" />
              <jar href="lib/xml-resolver-1.2.jar" />
              <j2se version="1.6.0_5+" href="http://java.sun.com/products/autodl/j2se" java-vm-args="-ea" initial-heap-size="128m" max-heap-size="512m" />
    </resources>
    <application-desc main-class="com.tylernet.smartwerks.client.main.Main"/>
    </jnlp>

  • MVC model in Web systems and applications

    MVC model in Web systems and applications
    Object-oriented design model is experience, MVC idea is a user interface for the original. This article discusses how the major application areas in the new Web design patterns and the use of MVC framework. The article first introduced the concept of design patterns and characteristics, and MVC architecture design concepts and analysis of the MVC framework contains several key models. Based on the characteristics of Web applications on how to use patterns and MVC framework made some design ideas.??
    1. Introduction
    1.1 design model
    Object-oriented technology and the emergence of software applications has greatly enhanced the trusted and software quality. Object-oriented programming than previous models to various programming simple and efficient, but the object-oriented design methodology than the previous design methods to complex and much more skill, a good design should be both on the issue of gender, but also to take full account of the problems and needs sufficient interoperability. In the past 10 years, people in the object-oriented technology and the practical application of research to explore certain issues in relation to the creation of a number of good solutions, the so-called object-oriented design patterns. Object-oriented technology is one of the purposes of enhancing the software trusted, and to design model, design programmes in important positions from a deeper sense of meaning and essence embodies trusted. There are many people in the design model definition, which cited Christopher Alexander is the largest design model definition : Each design model is a tripartite rule, which expresses a contextual environment (Context), a problem and a solution. Design models generally following basic elements : model name, the purpose solution effect 1995-1998 code and related design models. There are several classifications design patterns can be divided into a model based on the purpose (Creational), structural type (Structural) and the type of behaviour (Behavioral) three. It is mainly used in the creation of a model-based object model-based structure to deal primarily with the category or combination of objects, used to describe behavior-based model is the main target for the category or how stress and how to allocate responsibilities. Design patterns can be divided into categories based on the scope and target mode model type model dealing with the relationship between the categories and sub-categories, these relations through the establishment of succession in Translation moment to be finalized, are static. Model is targeted at addressing the relationship between the moment of change these relations in the operation, more dynamic. Model features : through the experience acquired in a structured format to write down, avoid encountering the same problems on the first design, exist in different abstract level, in continuous improvement, can be trusted artificial product for the design and best practice in the world to be combined to address larger issues.
    1.2 MVC framework
    MVC was first used in a user interface Smalltalk-80 China. M representative models Model, representatives maps View V, C representatives controller Controller. MVC trusted code with the aim of increasing the rate of data reduction expressed, the data describing the operation and application coupled degrees. Also makes software Keweihuxing, restorative, expansionary, flexibility and packaging of greatly enhanced. Single-user applications are usually incident-driven user interface to the organizational structure. Staff development tool with an interface painting of a user interface interface code based on user input and then prepare to implement the corresponding moves, many interactive development environment encouraged to do so, because it emphasizes first and then a functional interface. Some software design model is the strategy that will be fixed before the code into the regular system of the final. Result is that the procedures and organizations around the user interface elements in the user interface elements of those moves, data storage, applications and functions of the code is used to indicate the way intertwined. In single-user system code structure can be so, because the system will not demand frequent changes. But for a large system such as large Web systems, or e-commerce systems to be applied. Model by incorporating data from a variety of access and control data can be separated to improve distributed system design. MVC design pattern is composed of three parts. Model is the application object, no user interface. Type in the screen showing that it represents the flow of data users. Controller user interface definition response to user input, the users responsible for the action against the Model into operation. Model View data updated to reflect the adoption of data changes.
    2. MVC design pattern,
    An MVC framework for the design of the system includes many models, but with MVC is most closely related to the following three models : Observer, Cambridge and Strategy.
    2.1 Observer models
    MVC through the use of purchase / notification form and the separation of the Model View. View to ensure that their content accurately reflected Model and state. Once Model content changes, there must be a mechanism to allow notification to the relevant Model View, View can be made relevant at the appropriate time updating of data. This design is also more general problems can be solved, the target separation, making a change to the target audience affect others, which targets those who do not know the details of the object being affected. This is described as Observer in the design model. Model type : Observer model is the object-oriented model, it is behaviour-based model. Model purposes : definition of hierarchical dependence relations between objects, or when a target value of the state change, all its dependent relationship with the object are notified and automatically updated. There are a variety of data may show a way, in different ways and may also show. When a way through a changed data, then the other should be able to show immediately that the data change and do accordingly.
    Effect :
    1. Abstract coupling. I only know that it has a target audience of some observers, the observers met each abstract Observer category simple interface, does not know their specific affiliation categories. This makes the coupling between goals and observers smallest and abstract.
    2. Support radio communications. Needless to notify designated observers goals, how to deal with the observer informed decisions.
    3. Possible accidents updated. We update logic, avoiding mistakes updated.
    2.2 Faculty model
    MVC is an important feature of View can nest. Nest can be used for any type of combination of local maps available, but also management of type nest. This thinking reflects the type and mix of components will be equal treatment design. This object-oriented design ideas in the area of Cambridge has been described as a design model. Model types : Cambridge model is the object-oriented model, it is also the structure type model. Model purpose : to target portfolio into tree structures to express "part-whole" level structure. Prepared for the use and combination of individual target audiences with the use of consistency.
    Effect :
    1. Definition of a target portfolio includes simple objects and the structure of the category level. Simple objects may be complex combinations of objects, and can be targeted portfolio mix. This customer-code used in the target areas can use simple combinations target.
    2. Simplify customer-code. Needless to know their customers - a mix of target audiences is a simple target or can use these items in a consistent manner.
    3. Easier to add new types of components. New components can easily be changed to a combination of customer-targeted codes.
    2.3 Strategy model
    Another important characteristic is the MVC can not change the View of changes View response to user input. This often requires a change in response to the logic of the system is very important. MVC to respond to the logic involved in the Controller. Controller of a category level structure could easily change to the original Controller appropriate, a new Controller. View Controller son used to achieve a specific example of such a response strategy. To achieve different response strategy, as long as examples of the use of different types of replacement will Controller. Also in the running time by changing the View Controller for users to change View of response strategies. This View-Controller relationship was described as an example of Strategy design pattern. Model types : Strategy model is the object-oriented model, it is behaviour-based model. Model purposes : definition of a series of algorithms, and their packaging, and ensure that they can replace each other, making algorithms can independently use its customer-change.
    Effect :
    1. Strategy category levels for Context definition of the relevant algorithms can be trusted or behaviour.
    2. Alternative methods of succession. If the direct successor Context, with different acts will be added Context act, the realization of which would algorithm mixed up with Context, Context hard to preserve and expand, but can not dynamically changing algorithms. Will be enclosed in a separate Strategy category algorithms to enable algorithm independent Context change easily cut over expansion.
    3. Can provide the same acts different date.
    4. Strategy-must understand what customers between different.
    5. Context and Strategy communications between costs.
    6. An increase in the number of targets.
    3. MVC in Web application system
    Now some of the distributed systems such as Web-based B2B e-commerce system, suitable for use MVC framework. Through analysis from the perspective of high-level applications can be a target divided into three categories. Category is shown for the target audience consists of a group of commercial rules and data, there is a category that is receiving requests to control commercial target to complete the request. These applications often need to change is shown, such as web style, color, but also need to demonstrate the contents of the display. And the business rules and data to be relatively stable. Therefore, said that the frequent need to change the View objects that the business rules and data model to be relatively stable target, and that the control of the Controller is the most stable. When the system is usually issued after the View objects by artists, designers or HTML/JSP system managers to manage. Controller target applications development personnel from the development and implementation of rules for commercial and business development personnel from the target data, database managers and experts in the field of common completed. Show in Web?? or customers - control logic can be Servlet or JSP, dynamically generated Html. Generally used Servlet better than using JSP. JSP will be better with the Html code of separate codes for page designers and developers of separation efficiency. Servlet and JSP can complete all complete functions, actually JSP eventually converted into a Servlet. And control of the target system exists in every level, the coordination of cross-layer moves. Contain business rules and data objects exist in the EJB layer (EJB-centred model) or Web?? (Web-centred model).
    3.1 View in the Web application system
    View of the system shows that it fully exist in Web??. General by JSP, Java Bean and Custom Tag. JSP can generate dynamic web content using Java Custom Tag easier Bean, but it can show the logic of packaging, and more conducive to modular trusted. Some well-designed in a number of JSP Custom Tag can even be used in different system duplication. Model for control of JSP and Java Bean objects. JSP through Java Bean objects to retrieve the data model, the Model and Controller object is responsible for updating the data on Java Bean. In general, can we devise all possible screen that users can see all the elements of the system. Based on these elements, to identify the public part of passive components and dynamics. Can consider the use of templates means to separate the content generated JSP public, also need to change their generation Html or JSP from a JSP templates to dynamically introduce these different parts (include methods). Another issue to consider is screen option, when dealing with End users request template automatically available to show that the concern that users must know what is the screen components. So can consider all screens on the definition of a centralized document, such as a document or text document java. Taking into account the possibility of changes in future document definition screens, the best use of text documents such as a XML document, so future changes to the recompilation. According to the URL and user input parameters to shine upon the results of a screen, of course, likely to be made on the basis of the outcome of the implementation of actions to choose different results screen. Therefore, the need for a request for matching resources with document (XML), if a URL request several different results, it must specify in the document need to control the flow (a controller object), as well as the corresponding screen different flows.
    3.2 Model in the Web application system
    Model objects represent business rules and business data exist in EJB layer and Web??. In J2EE norms, the system needs some data stored in the database, such as user account information (account model), the company's data (company model), some not recorded in the database. If a user browsing the current catalogue (catalog model), the contents of his shopping (shopping cart model). Which one of these models exist in the data according to their life cycle and scope to decide. In Web?? a HttpSession and ServletContext and Java Bean objects to store data in the EJB layer is a data storage and logic EJB to. Web?? the Java Bean objects stored in the model layer model of the EJB object data copy. Because there are many different EJB tier model targets, so Web?? through a ModelManager to control the EJB layer object model in ModelManger background model can be used for packaging methods. In the EJB layer and the rules have all the data into EJB model is inappropriate. If the database can visit the Dao object model into objects. Dao can be encapsulated and the specific details of the database in the world, if we can write a different table, a number of databases, or even multiple databases. If the orders can be a model for OrderDAO, it may have to deal with Order table, table and OrderItemLines OrderStatus table. Value can also consider the use of targets. Value can be a target of securing long-range targets, because every time the remote object attributes could be a long-range redeployment process will consume network resources. EJB objects in the distance can be used instead target. In the distance, one-time items to be targeted instead of the value of all attributes.
    3.3 Controller in Web application system
    Coordination with the Model View Controller object to the request of users into the system to identify incidents. In Web?? generally a MainServlet (or Main.jsp), and receiving all requests, it can use screen flow management devices (ScreenFlowManger) decided next screen. There is a general request processors RequestProcessor contains all requests are needed to be done to deal with logic, such as the request translated into system events (RequestToEvent). Acting processors usually also includes a request for ClientControlWebImpl, it is logical to deal with the EJB layer in Web?? Acting. In EJB layer, a layer for EJB tier Web ClientController provide the CD visit. Another StateMachine used to create and delete ejb handle Web?? sent to the incident. Controller Another important function is synchronous View and Model data. ModelManger contained in a ModelUpdateManger, it puts events into a Model System assembly that all the needs of synchronous Model, and then notify Listeners do synchronous operation.
    4. Concluding remarks
    In recent years, with the Internet technology development and the emergence of new business models, the Web is based on a large number of applications. On how to design these systems architecture, and gradually there has been some convergence of opinion, the most important point is that its structure should be rational in the open. Demand than ever faster development of technology and design concepts, systems for the future, the cost of upgrading the smallest, research software systems architecture still very useful and necessary.

    Bravo. And your point is?

  • AppIntegrator - Issue with Passing Application parameters

    Hi,
    I've created a WebApplication system using 'HowTos' (com.sap.portal.howtos.webapp.par) file and set the system parameters.
    I've created a generic iView with AppIntegrator par file (com.sap.portal.appintegrator.sap.par). Where I've passing the parameters as 'ApplicationParameter'. Following are the parameters that I'm passing in the AplicationParameter..
    redirectTo=/test/ourenv/myfile.ext/($Limited)&Login
    but when I see the result through HTTP WATCH, iView passing  them as redirectTo=%2Ftest%2Fourenv%2Fmyfile.ext%2F%28%24Limited%29
    so the other application is not taking this redirectTo parameter.
    Is there any way to stop Decode/Encode the application parameters?
    Thanks in Advance,
    Satya

    hI,
    Yeah it would not.
    The url specification is very clear there are certain symbols which should not be passed in any url. The reason you see encoded url is to ensure that the symbols are preserved in your request.
    Your external program can easily decode %2f already in your url , to '/' and get the correct parameters or choose another symbol instead of '/'
    There is no other solution. As I just checked up, url specification which applies to any url across the world is very clear on this count.
    So encoding has been done to ensure your parameters are coded correctly. The client program should be able o decode it.
    The '/' is a reserved character with a specific meaning and cannot be used for anything apart from its specified purpose. You have to encode it if you need to pass it for other purpose.
    Refer to this link.
    http://www.w3.org/Addressing/URL/uri-spec.html
    This is clear on this count.
    Regards,
    Harish

  • Global Application Parameters for EJB

    Hello all, I did a search for this on these forums and there are there a TON of threads of developers wanting to implement the classic Singleton pattern so that all EJB's of an application can access "Global Application Parameters". Most of these I've been reading achieve this by workarounds that breakdown at the clustering level, since Singletons won't span multiple JVMs.
    Suppose you deploy an EAR that only has EJB jars, so you don't have access to all the convenience of the web tier (context parameters, context Initialization, etc.), so there is no way for your EJB's to detect/intercept an "Application Startup" event and load any necessary values into a Global Application parameter repository.
    This seems such a widely demanded functionality that I wonder if there now a "best practice" way to achieve equivalent of the Singleton pattern in the EJB world that works nicely in a clustered environment?

    I have the same problem
    Thanks

  • Exclude application parameters in iView

    Hallo,
    is it possible to exclude one value of an application parameter in an iView?
    The normal syntax to define the parameters is
    <Screen_field1>=<Parameter1>
    &<Screen_field1>=<Parameter2>
    But I want to exclude one value, which is in a list of 20 values.
    Otherwise I have to write the 19 concrete values in the field 'application parameters'.
    Thanks for the answers.
    Kind Regards.
    Martin

    Hi Pierre,
    we are talking about an iView, which calls a BSP-Application.
    I saw the two properties you mentioned.
    We have to differentiate between parameters and their values.
    My aim is to exclude one value of a parameter (Sorry, I thing the subject of this thread confused).
    For example:
    1. positive list without excluding the value 'blue':
    parameter = color
    color=red&color=green&color=brown&color=yellow&color=black&color=white .... and so on.
    -> So I have to define all other values.
    2. But I want to define a negative list:
    color<>blue (-> unequal or exclude)

  • SSIS - pass variables to Data Manager for Appset and Application name

    Hi folks,
    I'm building an SSIS package, and I can't work out how to set the Appset and Application names in the Convert Task item - I have created the item, and the variables, but I can't work out how to reference the two.
    Any tips or help greatly appreciated - this is one of the worst-documented pieces of software I've ever seen!
    Thanks,
    Jason

    Hi,
    Please refer to the other SSIS packages already created. We need not set these parameters while creating the SSIS package. When we link the SSIS to DM package, we can dynamically send the appset name and the application names.
    Hope this helps.

  • Another controversy: Where to store common application parameters?

    For higher flexibility, application parameters are usually set. For intranet applications, I used to store these parameters with my Oracle database. Now I'm developing a web-based internet applications, would you please advise for the following questions:
    1) The place to store common application parameters (How to set and how to retrieve?)
    (Currently, I have put such application parameters into a class file. Although it should be faster than retrieval from database, it means that I need to re-compile in case of any changes are made for those parameters. Can I set up some global constant for my application with my JDeveloper? How to set and how to retrieve?).
    2) The place to store the application configuration and application package string
    (As you see, if you have many Jsp page, it's not convenient to change the <jbo:ApplicationModule ... Configuration="MyConfig"... /> all the time. It may be better if it could be generalized by a variable. I have found the configuration in the "web.xml" file, but i don't know how to retrieve the value from it. Currently, I have made use of my old approach mentioned in Question 1 - place the configuration string in a common class ... the drawback has already been mentioned as above ... any better solutions?)
    Thanks for replying!

    Curt,
    To create an AM using the definition in the cpx file:
       JUApplication app = JUMetaObjectManager.createApplicationObject("Project2.am");
       ApplicationModule am = app.getApplicationModule();.
    This is the same call used by JClient application.
    Here is the story with BC4J runtime params:
    jbo.default.language
    This parameter is used in localization.
    jbo.default.country
    This parameter is used in localization.
    DeployPlatform
    The platform on which the business components are deployed:
    LOCAL - The web module of Oracle 9iAS
    EJB_IAS - The EJB module or Oracle 9iAS
    VB - A VisiBroker CORBA server
    WLS - a WebLogic application server
    Connection Mode
    For business components deployed to VisiBroker, the connection
    mode used:
    1 - colocate mode
    2 - remote mode
    3 - IOR mode
    4 - bind mode
    For more information, see the VisiBroker documentation.
    HostName
    For all deployment platforms except LOCAL, the name of the
    application server hosting the business components.
    ConnectionPort
    For all deployment platforms except LOCAL, the port of the
    application server hosting the business components.
    ApplicationPath
    For all deployment platforms except LOCAL, the JNDI path to the
    business components.
    java.naming.security.principal
    For all deployment platforms except LOCAL, the username for the
    IIOP connection to the business components.
    jbo.use.pers.coll
    Setting this to true enables view row spillover. If you are working
    with large rowsets and memory is a problem, this property should be
    true. For more information, see the Oracle JDeveloper documentation.
    jbo.pers.max.rows.per.node
    The maximum size of a node for view row spillover.
    jbo.pers.max.active.nodes
    The maximum number of nodes that will be cached in memory for view
    row spillover.
    jbo.fetch.mode
    AS.NEEDED causes view objects to only fetch rows when they are
    requested. ALL causes them to fetch the entire results of their
    queries.
    MetaObjectContextFactory
    The default value uses the business components framework's
    MetaObjectContext Factory, which stores business components metadata
    in XML. If you want to use a different format for business components
    metadata, you can implement your own MetaObjectContext Factory.
    IsLazyLoadingTrue
    For all deployment platofrms except LOCAL, setting this property to
    true will cause business componetns metadata to be loaded into memory
    only as needed, whereas setting it to false will cause all metadata
    to be loaded into memory immediately. Lazy loading is mandatory in
    LOCAL mode.
    Factory-Substitution-List
    The list of business components to substitute out. See the Oracle
    JDeveloper documentation for more information on substituting
    business components.
    jbo.project
    The project containing business components to be substituted for old
    ones, if Factory-Substitution-List is not empty.
    jbo.max.cursors
    The maximum number of cursors the business components may have open.
    The framework will clean up free JDBC statements as the number of
    cursors approaches this number.
    do.failover
    This property is true if application module failover is enabled.
    Setting this property to false provides better performance at the
    expense of reliability.
    jbo.doconnectionpooling
    This property is true if application modules are allowed to share
    connections. For more information about connection pooling, see the
    Oracle JDeveloper documentation.
    jbo.recyclethreshold
    The recycle threshold for application module pooling. When the number
    of application modules in the pool reaches this level, the pool
    begins to recycle application modules in stateful mode. Monitoring
    the application module pool statistics may help you decide on a good
    value for this field.
    jbo.ampool.highwatermark
    The maximum number of application modules allowed in the pool. If
    this high-water mark is reached, clients must wait for the next
    available application module.
    jbo.ampool.resetnontransactionalstate
    If this property is false, application modules will preserve their
    non-transactional state (properties and dynamically added view
    object, view link, and nested application module members) even when
    they are checked in in stateless mode. If the property is true,
    non-transactional state will be reset.
    jbo.ampool.sessioncookiefactoryclass
    This class creates the session cookies that allow clients to retrieve
    application modules in stateful mode. Change this value only if you
    need to implement your own custom session cookie factory. See the
    Oracle JDeveloper documentation for more information.
    jbo.ampool.connectionstrategyclass
    This class manages the connection strategy for the application module
    pool. Change this value only if you need to implement your own custom
    connection strategy. See the Oracle JDeveloper documentation for
    more information.
    jbo.passivationstore
    When an application module is released in stateful mode, its state is
    saved when the application module is recycled (or immediately if
    failover is enabled). If this property is 'null' or 'database', the
    state is saved to the database. If the property is 'file', the state
    is saved to a local file.
    RELEASE_MODE
    The release mode--Stateless, Stateful, or Reserved--used by data web
    beans. Other clients specify their own release mode.
    jbo.maxpoolcookieage
    The maximum age of the browser cookies used to help clients retrieve
    stateful application modules. If these cookies do not time out, the
    value is -1.
    PoolClassName
    The class that implements the application module pool. Do not change
    this value unless you are using a custom application module pool
    implementation. For more information, see the Oracle JDeveloper
    documentation.
    jbo.maxpoolsize
    The maximum size of the JDBC connection pool. If this number is
    exceeded, an application module will have to wait for a connection if
    none is available.
    jbo.initpoolsize
    The number of JDBC connections automatically created in the
    connection pool, before any requests.
    jbo.poolrequesttimeout
    The amount of time, in milliseconds, an application module will wait
    for an available connection before failing.
    jbo.assoc.consistent
    If this property is true, the entity rowsets retrieved through
    association accessors will include rows that have been added, even if
    these changes have not been posted to the database. This property can
    reduce performance and so should be turned off if not needed.
    jbo.viewlink.consistent
    If this property is true, the view object rowsets retrieved through
    view link accessors will include rows that have been added, even if
    these changes have not been posted to the database. This property can
    reduce performance and so should be turned off if not needed.
    jbo.SQLBuilder
    The SQL flavor generated by view objects:
    Oracle - for the Oracle8i or Oracle9i database
    OLite - for the Oracle Lite database
    SQL92 - for any SQL92-compliant database
    DB2 - IBM DB2 Universal Database
    jbo.ConnectionPoolManager
    The class that manges the connection pool. Do not change this value
    unless you are using a custom application module pool manager
    implementation. For more information, see the Oracle JDeveloper
    documentation.
    jbo.TypeMapEntries
    The type mappings used by business components:
    Oracle - for the Oracle8i or Oracle9i database
    OLite - for the Oracle Lite database
    SQL92 - for any SQL92-compliant database
    oracle.jbo.defineColumnLength
    If this is false, business components will not by default define
    column length for CHAR and VARCHAR2 columns. In general, this should
    only be set to false for NLS applications.
    jbo.tmpdir
    You can use this parameter to specify a directory for temporary files.
    jbo.server.internal-connection
    Specifies a connection to use when application module state is saved
    to the database. By default, the application module pool will use the
    application module's JDBC connection.
    SessionClass
    The class which implements the oracle.jbo.Session interface, used to
    load and store session context throughout a client's lifetime. By
    default, the framework uses oracle.jbo.server.SessionImpl. Do not
    change this value unless you have implemented a custom session
    implementation class.
    TransactionFactory
    The class responsible for creating database transactions. By default,
    the framework uses oracle.jbo.server.DatabaseTransactionFactory. Do
    not change this value unless you have implemented a custom
    transaction factory class.
    jbo.debugoutput
    If this property is set to 'console', debug information is displayed
    on the console. If the property is set to 'silent', debug information
    is not displayed.
    jbo.logging.show.timing
    Whether to show the time elapsed between debug calls.
    jbo.logging.show.function
    Whether to show the name of the method that triggered a debugger
    call. Setting this property to true will degrade performance.
    jbo.logging.show.level
    Show the trace level of debugger messages. The lower the trace level,
    the more important the message.
    jbo.logging.show.linecount
    Number the lines of debugger output.
    jbo.logging.trace.threshold
    Lower this number to display only the most important debugger
    messages; raise it to display a larger portion of debugger messages.
    jbo.jdbc.driver.verbose
    If this property is true, the JDBC driver will run in verbose mode.
    For more information, see the JDBC documentation.
    jbo.ejb.txn.timeout
    For EJB deployment configurations, the number of seconds after the
    last database access before the EJB transaction expires.
    jbo.ejb.txntype
    For EJB deployment configurations, the transaction type:
    global - use the JTA UserTransaction interface
    local - use straight JDBC
    jbo.xml.validation
    If true, the XML parser uses strict XML validation.
    Charles.

  • JCO details thru Application parameters

    Hi Experts,
    I have a scenario where one web dnypro application has to access data from multiple R3 systems using different JCOs.
    For example:
    System       Client
    ABV            120
    ABV             210
    ABX             120
    I have JCOs created for each systems :
    ABV 120:     
      JCO :                WD_ECC_MODELDATA_DESTABV
                              WD_ECC_METADATA_DESTABV
    ABV 210:     
      JCO :                WD_ECC_MODELDATA_DESTABV210
                              WD_ECC_METADATA_DESTABV210
    ABX 120:     
      JCO :                WD_ECC_MODELDATA_DESTABX120
                              WD_ECC_METADATA_DESTABX120
    In the webdynpro Iview I am using the property Application Parameters where Iam setting the JCOs which it has to access for.
    Like shown below:
    For ABV 120:
    sap.wdarfc.useSys=WD_ECC_MODELDATA_DEST:ABV&sap.wdarfc.useSys=WD_ECC_METADATA_DEST:ABV
    For ABV 210:
    sap.wdarfc.useSys=WD_ECC_MODELDATA_DESTABV210:ABV&sap.wdarfc.useSys=WD_ECC_METADATA_DESTABV210:ABV
    For ABX 210:
    sap.wdarfc.useSys=WD_ECC_MODELDATA_DESTABX210:ABX&sap.wdarfc.useSys=WD_ECC_METADATA_DESTABX210:ABX
    But i see this way it is not working  and every Application is using the Default JCos (WD_ECC_MODELDATA_DEST and WD_ECC_METADATA_DEST) which are pointed to ABV210.
    Can anyone pls suggest as we are going critical now.
    Regards,
    Kumar

    The new system name used in the URL must begin with the previous system name and be at most 3 characters longer than the previous name.
    So, you cannot have ABV210 as the suffix. The suffix should be at most 3 chars.
    Please use it as follows:
    sap-wd-arfc-useSys=SAP_R3_HumanResources:QAS&sap-wd-arfc-useSys=SAP_R3_HumanResources_Metadata:QAS
    It should be <Default System>:<Suffix of Mapped System>
    Your default system is - SAP_R3_HumanResources
    Mapped system is - SAP_R3_HumanResourcesQAS
    So suffix of the mapped system is - QAS
    Hope that explains it.
    Check this doc (page 17) for more info:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/526bd490-0201-0010-038e-d3ff7eb1d16e?quicklink=index&overridelayout=true
    - Shanti

  • Company and application library in Headstart 6i

    Form level triggers and corresponding event-handling procedures in the application/company library have been changed in Headstart Designer R6I
    in comparison to previous release 3.4.x. I wonder how to organize the new
    library-structure and event-handlers to maintain (implicit) standard functionality for form-level triggers on application and company level. The headstart user
    guide is not clear on this isue.

    Oscar,
    I suppose your question concerns how to customize headstart code for a specific company or application.
    The way to do it for code in the event handler (qmsevh65) is to copy the procedure that you want to change to your own application or company library and modify it ther to your own needs. By the attachment order, your changed procedure will prevail.
    For the code in the qmsevh65 library, you could go the same way but BE AWARE that you need to recompile all forms and libraries again after you made a change to the copied packages. Also keep in mind that new procedures/functions and/or parameters should always be placed after exiting ones in a package you want to modify.
    An alternative for customizations to qmsevh65 is :
    1. copy the package to your application library
    2. RENAME it
    3. Copy all procedures from qmsevh65 that call the package you want to change
    4. Change the code in these procedure to call the newly (renamed and changed) package
    With the latter approach you do not need to recompile all forms and libraries.
    Hope this helps, Marc

  • Function module for f4 help in presentaion server and application server.

    hi guys,
    I need to create a function module that will get the file or folder name by f4 help for the file in the presentation server or  application server based on the location selected.
    For this function module what are the minimum impot parametrs  and export parameters required.
    i have tried with 'f4_filename' for presentation server
    and '/SAPDMC/LSM_F4_SERVER_FILE' for application server.
    but i am not able to get this.
    can any one help me in this regard ?
    cheers,
    kumar.

    hi use like this ..
      if p_presvr = 'X'.
    *-- if the file is to be downloaded to presentation server
        call function '/SAPDMC/LSM_F4_FRONTEND_FILE'
          changing
            pathfile         = p_file
          exceptions
            canceled_by_user = 1
            system_error     = 2
            others           = 3.
        if sy-subrc <> 0.
          if sy-batch = 'X'.
            message id sy-msgid type 'S' number sy-msgno
                    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 into v_msg.
            write / v_msg.
            clear v_msg.
            stop.
          else.
            message id sy-msgid type 'S' number sy-msgno
                      with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          endif.
        endif.
      else.
    *-- if the file is to be downloaded to application server
        call function '/SAPDMC/LSM_F4_SERVER_FILE'
          exporting
            directory        = '/'
            filemask         = '*'
          importing
            serverfile       = p_file
          exceptions
            canceled_by_user = 1
            others           = 2.
        if sy-subrc <> 0.
          if sy-batch = 'X'.
            message id sy-msgid type 'S' number sy-msgno
                    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 into v_msg.
            write / v_msg.
            clear v_msg.
            stop.
          else.
            message id sy-msgid type 'S' number sy-msgno
                      with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          endif.
        endif.
      endif.

Maybe you are looking for