Extension mechanism

I have developed an applet which uses some utility classes bundled in a jar file. I didn't want the user however to have to download the utility classes in the jar file every time he wanted to use the applet so I thought of making it an optional package. Thus I used the extension mechanism so that the first time the user downloaded the applet he could install the utility jar file as an extension.
The problem that occured is this: From a utility class I load some images to display on the applet. The images reside within the utility jar file so I use the following code to load them:
1:     URL url = this.getClass().getResource(imageName);
2:     ImageIcon imageIcon = new ImageIcon(url);
When I didn't use the extension mechanism there was no problem!
When I did use extensions though a Null Pointer Exception was thrown
at line 2. Obviously the url is null.
This seems pretty strange to me because the image is loaded from within the jar file and the jar file has been downloaded (and installed). So what is the problem?
Any help would be appreciated.

You are using a JVM that supports the extension
mechanism, I hope? Not the Microsoft JVM that comes
with Internet Explorer, for example? If so, then
perhaps you don't know where the extensions directory
really is. The system property "java.ext.dirs" (I
think) will tell you where it really is.
Having gone through this, you may want to rethink your
original idea that it would be more convenient for the
user to download and install the jar file. If you had
this much trouble, how easy would it be for somebody
else?Hey there,
Wonder if you could help me sort something out while you're at it. In my older WIN95 OS I put my extension .jar files - if I remember right - in, say, C:\jdk1.3.1_03\jre\lib
. . . and things worked fine.
I just upgraded to XP and I added my extensions to both C:\jdk1.3.1_03\jre\lib & C:\Program Files\JavaSoft\JRE\1.3.1_03\lib\ext
. . . It finds the files fine, but my .jar files - that have in them some of the same files as in my extension .jar - are faultering. I'm trying to figure out if I need to add the CLASSPATH to my SYSTEM | ENVIRONMENTAL variable, or to my .jar applications. You have any ideas?
Thanks in advance;
~Bill

Similar Messages

  • JRE 7 update 51 and the extension mechanism

    I've developed an applet that uses Java extension mechanism to install an extension package. Both JARs are signed, and I have put this in the manifest:
    Permissions: all-permissions
    Codebase: *
    Application-Library-Allowable-Codebase: *
    Caller-Allowable-Codebase: *
    It works fine with the JRE 1.7 update 45, but with the last version of the JRE (1.7 update 51), I get the following error (NullPointer):
    java.lang.NullPointerException
      at com.sun.deploy.security.DeployManifestChecker.verifyCodebase(Unknown Source)
      at com.sun.deploy.security.DeployManifestChecker.verifyApplicationLibraryAllowableCodebase(Unknown Source)
      at com.sun.deploy.security.DeployManifestChecker.verify(Unknown Source)
      at com.sun.deploy.security.DeployManifestChecker.verify(Unknown Source)
      at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
      at sun.plugin.extension.ExtensionInstallationImpl.verifyJar(Unknown Source)
      at sun.plugin.extension.ExtensionInstallationImpl.access$100(Unknown Source)
      at sun.plugin.extension.ExtensionInstallationImpl$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.plugin.extension.ExtensionInstallationImpl.installExtension(Unknown Source)
      at sun.misc.ExtensionDependency.installExtension(Unknown Source)
      at sun.misc.ExtensionDependency.checkExtension(Unknown Source)
      at sun.misc.ExtensionDependency.checkExtensions(Unknown Source)
      at sun.misc.ExtensionDependency.checkExtensionsDependencies(Unknown Source)
      at com.sun.deploy.security.DeployURLClassPath$JarLoader.parseExtensionsDependencies(Unknown Source)
      at com.sun.deploy.security.DeployURLClassPath$JarLoader.getClassPath(Unknown Source)
      at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
      at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
      at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
    But if I copy the package extension in the lib/ext directory of the JRE, then the applet works.

    I tried with the latest version of java 7 (55), and I get the same error. I have set the security level to medium, and the URL is added to the list of exceptions to the JRE.

  • Jre extension Mechanism

    i have my own extension mechanism which updates the extension directory within japplet.every time i update the ext directory i have to restart the browser. is there any way to reload the jre without restarting the browser. The jar files which downloading to ext directory not used in the japplet which downloads the jar files into ext directory

    i have my own extension mechanism which updates the extension directory within japplet.every time i update the ext directory i have to restart the browser. is there any way to reload the jre without restarting the browser. The jar files which downloading to ext directory not used in the japplet which downloads the jar files into ext directory

  • Change in behaviour in the extension  mechanism in 1.1

    I am using the Georaptor extension, which adds an item in the contextual menu in the explorer window.
    Practically speaking: I right-click on a table, and the resulting menu includes a "Georaptor" option that then leads to further options.
    This mechanism worked OK in SQL Developer 1.0, but no longer in 1.1. - i.e. the "Georaptor" item no longer happens.
    Any idea what caused that change of behavior ? I can try and fix the georaptor code, but I don't really know where to start ...
    Thanks
    Albert

    Thanks for the hint, Brian.
    The extension is listed as "loaded". Actually the extension works. The only missing function is the menu item in the right-click contextual menu associated with tables in the explorer menu.
    I suspect that the extensibility API somehow evolved in such a way that setting up this contextual menu is now slightly different.
    Is there any "debug" mode for SQL Developer - something I could trigger on startup to get more details about what happens ?
    Albert

  • Java Extensions Mechanism is not working on Windows Vista

    I have installed JDK 1.6 Update 2 on Windows Vista Ultimate. Additional jar files sucha as JDBC drivers, etc were copied to $JAVA_HOME/jre/lib/ext directory to make these packages visible without specify their locations in classpath environment variable.
    This mechanism works fine on Linux and Windows XP, but in the case of Win Vista, classes aren't found. When try to run a class that has references to these packages, an exception is thrown indicating that those classes don't exist or weren't found.
    I don't know if I'm missing something or if I'm doing anything wrong. If that's true, please let me know to fix it ASAP.
    Thanks in advance for your help.
    Regards.

    Hi, Have you tried going into Device Manager and doing a scan for hardware changes through the Action menu? This should find your microphone again and fix the issue
    HP Pavilion DV9730CA - AMD Turion 64 X2 TL-64 2200MHz, 2GB (2x1024MB) SODIMM RAM, 320GB (2x160GB) Seagate 5400rpm HDD's, nVidia GeForce 8400 GS Graphics, Broadcom ABG Draft N Wireless, HD DVD SuperMulti DL DVD+RW, 4 USB 2.0, S Video, VGA, HDMI, Firewire, 5 in 1 card reader, RJ-45, RJ-11, Expansion Port 3, Expresscard 34/52.

  • Java Extensions Mechanism is not working

    I'm using Java SE SDK 1.6 update 3 on Windows XP SP2.
    I have a Java application which uses jar files from other providers. Copied those jar files to %JAVA_HOME%\jre\lib\ext directory to make these jar files search ables.
    Also JAVA_HOME environment variable is set to the full path of Java SE SDK.
    When try to run Java application an exception is thrown indicating that classes are not found.
    What could be wrong?
    Thanks in advance for your help.
    Regards.

    REFTY5_ wrote:
    After that I have enabled java in mozila and restarted the firebox.I've been having problems with my firebox, too. Nevertheless, this is a forum about Java programming. If you need support for running a third-party applet in a particular browser, I strongly recommend contacting the applet distributor or website support directly.
    ~

  • J2ee jar extension mechanism

    I use bea weblogic as webserver
    In my application directory there are 2 jar file: test0EJB.jar and test1EJB.jar
    Inside the first jar there is one ejb: test0, package of test0 is print0
    Inside the second jar there is one ejb: test1, package of test1 is print1
    test0 call some method from test1 (not vice versa)
    Inside test0EJB.jar there are 2 xml file: ejb-jar.xml and weblogic-ejb-jar.xml
    this is ejb-jar.xml:
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
    <ejb-jar>
    <enterprise-beans>
    <session>
    <description></description>
    <ejb-name>test0</ejb-name>
    <home>stampa0.test0Home</home>
    <remote>stampa0.test0</remote>
    <ejb-class>stampa0.test0EJB</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    <ejb-ref>
    <ejb-ref-name>test1</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>stampa1.test1Home</home>
    <remote>stampa1.test1</remote>
    </ejb-ref>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>test0</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    this is weblogic-ejb-jar.xml
    <?xml version="1.0"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN' 'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>test0</ejb-name>
    <stateless-session-descriptor></stateless-session-descriptor>
    <reference-descriptor>
    <ejb-reference-description>
    <ejb-ref-name>test1</ejb-ref-name>
    <jndi-name>test1</jndi-name>
    </ejb-reference-description>
    </reference-descriptor>
    <jndi-name>test0</jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    Inside META-INF directory in test0EJB.jar there is this manifest.mf:
    Manifest-Version: 1.0
    Created-By: 1.3.0_01 (WebGain, Inc.)
    Class-Path: test1EJB.jar
    When i execute my client, test0 work but when he call tes1 i have this error:
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    java.lang.NoClassDefFoundError: print1/test1Home
    I can't put the 2 jar file in one ear file
    Anybody can help me?

    Pack your EJBs into an EAR (with any common jars) and deploy the ear.
    I had a working example with Weblogic 7.0, built the EAR with ANT
    and from the build.xml file I have copied the following comment, that might clarify things a bit.
    In this case oevCalculators_common.jar was the common JAR, which was used by oevCalculators_server.jar. The expansion of the server.jar in my example is a snippet of the content of the jar within the EAR, you should not see a structur like that if you open the final EAR with Winzip.
    EAR:
    +--META-INF
    |  +--Manifest.MF
    |  +--application.xml
    +--oevCalculators_common.jar <----------------------+
    +--oevCalculators_server.jar                        |
       *--META-INF                                      |(refers to)
       |  *--Manifeast.MF                               |
       |       CLASS-PATH: oevCalculators_common.jar ---+
       *--com

  • Changes in extension data not always sent to CRM Backend

    Hi,
    In a CRM 5.0 ISA b2b scenario we run into a problem:
    <b>Short description:</b>
    Changes in extension data on basket item level are only sent to the backend if there are additional changes to that item (for example a change in quantity).
    <b>Long description:</b>
    We have added an extension field on basket item level and use the standard extension mechanism to exchange this data to the CRM backend. In order to do this we have done the following:
    - On the Java side we implemented MaintainBasketDispatcherAction and ShowBasketAction. The overridden methods are parseRequest() (from MaintainBasketDispatcherAction) and isaPerform() (from ShowBasketAction).
    - In the backend we implemented the BADI CRM_ISA_BASKET_ITEMS and implemented the methods CHANGEITEMS_SET_DATA, CLEAR, GETITEMS_GET_DATA and SAVE.
    We experience a problem when creating an order: When the only thing that changes in an item is our custom field, this is not noticed by the webshop as a change in the item. Therefore the method CHANGEITEMS_SET_DATA isn't called and the extension data isn't updated. If we change another field of an item, for example the quantity, the change is picked up and the method CHANGEITEMS_SET_DATA is being called.
    It seems that somewhere an optimization is taking place where the Webshop decides that unchanged lines should not be sent to the backend. I can't find a way to tell the webshop that the lines are modified (i.e. are dirty).
    Has anyone experienced similar behaviour or does anyone know of a solution?
    Thanks in advance.
    Wilco Menge
    Java snippet:
    parseRequest():
    ItemList itemList = preOrderSalesDocument.getItems();
    String extensionData = "";
    if (itemList!=null && itemList.size()>0)
         for (int i=0;i<itemList.size();i++)
              if (itemList.get(i)!=null);
                   extensionData = parser.getParameter("z_extension_data").getValue().getString();
                   itemList.get(i).addExtensionData("ZEXTENSION", extensionData);

    Hi Pranay,
    I need to add a new field to the ISA item sales order in B2B webshop.
    I'm trying to use the extension field in the ISA basket item.
    I have added a new field in the WEB sales order at item level.
    My collegues have changed and implemented the addExtensionData method of  the ItemSalesDoc JAVA  class.
    Moreover I have implemented CRM_ISA_BASKET_ITEMS (BAdI CHANGEITEMS_BEFORE_ORDER) in the backend system.
    In the BAdI CHANGEITEMS_BEFORE_ORDER  I have copied the extensions data values to the CT_SALES table. Specifically, I have tried to update and change the SUBMISSION field.
    It seems that this new value is stored until the GET method (GETITEMS_GET_DATA) is called.
    Indeed, when the system calls the GETITEMS_GET_DATA method, I read the CT_SALES buffer  using the ‘CRM_ORDER_READ’  function.
    But the new value is no more stored in buffer.
    So if I fill the new field in the ISA item sales order, and I click the ‘update’ button, the new value is no more valued in the screen.
    Furthermore, it could be important to know that I'm working in CRM 3.0 release.
    Do you know why? May you help me?
    Many Thanks
    Best Regards.
    Daniela

  • Where can I get more information on Cryptography Extension ??

    Hi.
    Does anyone know how to set up the Jarsafe product ?
    Another thing is, how to set security for the Cryptography Extension ??
    can anyone tell me where can i get more information on this ??
    Thank you.

    You need to download the JCE 1.2.1 that is available on the http://java.sun.com website. Once you download the software, you need to make the jar files available. It is easiest to place the JCE jar files in the extension mechanism folder since permission has already been granted, by default, to any code in that folder. That folder is JAVA_HOME\lib\ext on Windows. JAVA_HOME is where the Java Runtime Environment is installed.
    When using JarSafe with Java Web Start, make sure that the JCE jar files are placed in the extension mechanism folder of the JRE that Java Web Start is using.

  • Trying to run app as an extension

    Hello,
    I've placed my jar file in the jre\lib\bin directory and have tried to run it from the jre\bin dir and the only way I can get it to run is if I supply the
    -jar extension along with the path. I thought that once you included you jar as an extension that all you needed to type was java fName
    Thanks,
    Jeff.

    I was experimenting with the JRE and decided to run my application using the "Extension Mechanism". So, I placed my jar file in the
    jre\lib\ext sub -directory then from the command line, in the
    jre\bin sub-directory typed the following: java fName
    ....and I get the "Exception in thread 'main' java.lang.NoClassDefFoundError: fName
    jeff.

  • Win CE 6 R3 Flash Lite 3.1 - fscommand2 and ActionScript extensions?

    I have been trying to locate answers to the following questions about the Win CE R3 Adobe Flash Lite 3.1 support, but have not been successful so far:
    1) What commands are implemented and accessible via ActionScript fscommand2 API, and are there any custom commands implemented to provide any WinCE OS specific functionality?
    2) Is the Object Oriented ActionScript extension mechanism added in Flash Lite 3.1 available in the Win CE 6 R3 version for OEMs to add extension libraries, or has this capability been disabled?  If it is enabled, how can we get the header files/etc. required to build such extensions?  The first link below describes the capability mentioning that it is only available if enabled by the device manufacturer, and the second link below describes in detail how to do this on Digital Home devices referencing header files/etc. for those devices, but I haven't found anything similar for the Win CE version, and I am not sure whether the device manufacturer in this case is Microsoft or the device OEM.
    http://help.adobe.com/en_US/FlashLite/2.0_FlashLiteDevGuide2/WS78C2DA03-01F8-48ec-B690-A91 FD1E76C37.html
    http://www.adobe.com/devnet/devices/digital_home/as_extensions_flash_lite_digital_home.pdf
    3) Finally, who is responsible for officially providing support for the Win CE Flash Lite functionality to device OEMs, Microsoft or Adobe?
    Thanks,
    --Russ

    (BUMP)
    I am a Windows CE 6 Device OEM and would like to know the answer to this question myself.
    If anyone can help, this would be a great support item.
    Kind regards,
    JimR

  • Extensions and personalizations

    I am new to jdeveloper and its nuances so this may be straightforward. I have a need to just change an xml page, no logic on the page just have to hide a field that is set to be rendered irrespective and there is no method to make rendered false without editing the underlying XML. I know that I have to do this in jdeveloper. However when i am importing it, am I going to need to copy over the original page or is there a substitution section? do i put it in a custom folder? I don't see anything clear cut in the forums or the manuals. I realise (or at least think i do) that you need to substitute, so you don't get rid of the original logic, if you are making changes to the logic of the page by extending the java classes.

    There are three kinds of requirements which might arise as part of customizations,
    1. Change the look and feel of the Oracle seeded pages(this might include change any UI properties like rendered, CSS styles, required, read only, etc)
    - You should use personalization only to do this. You should not manually modify the xml files.
    2. Modify or add some functionality in Oracle seeded pages(eg adding/modifying business rules, adding new regions(static or dynamic) etc). This might need the use of personalization and extensions together.
    - you should use personalizations to add or modify anything in the UI. If something is not supported through personalization or you want to add some complex region in to your page then create the region as standalone in jdeveloper with OAExt and use personalization to add a stackLayout and attach your regionthrough extends property(however you need to wrap your region which you create in jdev in a stackLayout to do this). You can alternately use flexibleLayout to add any region directly using personalization.
    - In addition to adding or modifying the UI if you need to wire the widget to a datasource then you need extensions to create or extend existing business objects and then fill appropriate properties (like viewusage, viewattribute) when you create the UI using personalization, create substitutions and deploy them.
    3. Creating new pages or modules
    - You should use jdeveloper with OAExt to create new pages and deploy them as Oracle developers do it.
    However these are three broad categories and your requirements would either fall in one or more areas in these or outside these areas. If you have any specific requirement we can let you know how best to implement it. What is specified in the developer guide are frequently and commonly used examples, it is difficult to cover every possible use case which can arise as part of customizations. The developer guide and personalization guide specifies best ways to implement the above mentioned three categories and you should first make yourself comfortable with these terminologies and implementations so it will be easier to map your requirements to one of these easily.
    Another thumb rule you need to remember is,
    - any changes which you can do by manually modifying the xml file can be done using personalizations, if there is some restriction which is preventing you from using personalization like the adminPersonalizable flag is turned off by developer then you can achieve them using code extensions.
    - you should use extension mechanism to modify/add new business rules, create and wire new attributes to the new fileds etc.
    Anything done using personalization and extensions are upgrade safe.

  • More Than One Extension Possible?

    Hello, I am trying to install 2 jars into my lib/ext directory. (Java Plugin 1.3.1) The extension mechanism works if I specify only 1 jar in my manifest. However, if I specify 2, the mechanism always installs the second and skips the first one. Does anyone know if I'm doing this wrong? I am signing all jars and updating each jar's manifest with the jar umf command. Here are my manifest files. I don't forget to give out Duke Dollars! :)
    Main Applet's Manifest
    Manifest-Version: 1.0
    Extension-List: xmlparserv2
    xmlparserv2-Extension-Name: com.oracle.xmlparserv2
    xmlparserv2-Specification-Version: 1.2
    xmlparserv2-Implementation-Version: 1.2
    xmlparserv2-Implementation-Vendor-Id: com.mycomp
    xmlparserv2-Implementation-URL: http://16.80.196.54/java/xmlparserv2.jar
    Extension-List: jacob
    jacob-Extension-Name: com.danadler.jacob
    jacob-Specification-Version: 1.1
    jacob-Implementation-Version: 1.1
    jacob-Implementation-Vendor-Id: com.mycomp
    jacob-Implementation-URL: http://16.80.196.54/java/jacob.jar
    xmlparserv2.jar's Manifest
    Extension-Name: com.oracle.xmlparserv2
    Specification-Vendor: com.mycomp
    Specification-Version: 1.2
    Implementation-Vendor-Id: com.mycomp
    Implementation-Vendor: mycompany
    Implementation-Version: 1.2
    jacob.jar's Manifest
    Extension-Name: com.danadler.jacob
    Specification-Vendor: com.mycomp
    Specification-Version: 1.1
    Implementation-Vendor-Id: com.mycomp
    Implementation-Vendor: mycompany
    Implementation-Version: 1.1

    I am such a doughhead. I had 2 entries of Extension-List in my main applet's manifest. Therefore, the mechanism was just using the last one it encountered. Now, how can I assign myself Duke Dollars... :)

  • Schema extension [extend] and ldap v3 conformance [proprietary]

    Hi,
    am I still conform to ldap v3 spec when I extend the schema with my own attributes and object classes (with the iplanet console 5.1)?
    So, does ldap v3 only define the object classes and attributes or an extension mechanism too?
    Regards
    Kristian

    The first example was almost correct !
    The error message: "javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001C6, problem 2001 (NO_OBJECT), data 0, best match of: 'CN=Schema,CN=Configuration,DC=ric,DC=com'; " simply indicates a naming error.
    If you follow the logic of your code, you are trying to create an attribute with the distinguished name:[code]CN=fooattr,CN=Schema,CN=Configuration,DC=ric,DC=com,CN=Schema,CN=Configuration,DC=ric,DC=comIf you are wondering why, it is because you are attempting to create the subcontext from the schema naming context.schema.createSubcontext("CN=fooattr," + dn,attr);You can correct this by changing your code toschema.createSubcontext("CN=fooattr",attr); or toctx.createSubcontext("CN=fooattr," + dn,attr);One other error, you are missing one of the mandatory attributes; namely oMSyntax.attrs.put("oMSyntax","2");You can find details on the Active Directory Schema at http://technet2.microsoft.com/WindowsServer/en/library/97cae647-d996-48ff-b478-c96193abeadb1033.mspx
    A simple way of checking the mandatory attributes for any object class is to look at the values of the systemMustContain attribute of the objectClass definition. In the case of attributeSchema, the systemMustContain attribute includes: schemaIDGUID (automagically generated), oMSyntax, ldapDisplayName, isSingleValued, cn, attributeSyntax and attributeID
    Another reference that is helpful is a table of Attribute Syntax definitions at http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/distrib/dsbe_ext_dghb.mspx
    The only words of advice for extending the schema are:
    1. Test, Test, Test, before deploying in production
    2. Do not ever reuse attributeID's or make up your own! If you are extending the schema get your own OID from an appropriate standards authority, or they may be obtained from Microsoft. Refer to http://msdn2.microsoft.com/en-us/library/ms677621.aspx or http://msdn2.microsoft.com/en-us/library/ms677620.aspx

  • Custom Payment Screen

    Hi Experts,
    I'm working in the ERPCRM B2B web shop.
    At the moment I'm trying to create an in-between page where the user is able to select their payment option.
    The Page is a custom JSP wich allows the user to:
    1) Create either a new Credit card.
    2) Select a Stored Credit Card.
    3) Pay by Terms (invoice is sent).
    The screen is able to render without any problem , the issue now is how to assign the selection to the order before submitting it to the backed.
    I have checked the standard and found a class called PaymentActions which has a method called setPaymentAttributes, but I'm not sure if this is the correct object that i need to change to store the credit card information/invoice.
    Does anyone know how to do this? how can i set this information to the Basket/Order so that it can afterward be saved in the Backed.
    Thanks in Advance.
    Sheldon.

    If it just an additional information which you need to send alongwith order/basket, then you can try the extension mechanism of BO. Here you can add the additional extension data to business object which you need to send to backend.
    Please pardon me if this is not what you intend to do, or if this is not the correct direction.
    Thanks

Maybe you are looking for