Using Applets in ADF Web Application

Hi,
I'm building an ADF web application using JDeveloper 11. I would have to use applets which have to "communicate" with database (insert, update).
What would be considered as "the best practice" for that "JDBC flavored applet"? Is it possible to reuse a database connection?
Any suggestion would be appreciated.
Thanks.

Boris,
You could still use ADF Business Components and access them remotely (from the applet).
John

Similar Messages

  • ADF Web applications give error when parent is set to "orabpel"

    Hi all,
    i use the application server 10.1.3.1 of the SOA 10.1.3,
    i try to deploy an ADF web application that uses the BPEL APIs,
    in the server.xml, i set the application parent to 'orabpel',
    when i start the application by launching the first jspx page i got the following error
    that i found in the 'global-application.log':
    07/01/04 08:34:30.750 defaultWebApp: JspServlet: unable to dispatch to
    requested page: Exception:java.io.FileNotFoundException: C:\product\10.1.3.1
    \OracleAS_1\j2ee\home\default-web-app\TAFFirstPage-ViewController-context-
    root\faces\loginPage.jspx (The system cannot find the path specified)
    i tried to set the application parent to 'default' again and added the bpel apis libs (bpm-services.jar, bpm-infra.jar and orabpel.jar) to the applib folder in j2ee/home and now all the adf web applications deployed to the server give the same error.
    i have a normal web application with jsps pages (not jspx) with parent set to orabpel and it's working great.
    please i am stuck on this it's been 2 days does anybody have any clue?
    thanks

    Hi ,
    Firstly, let’s verify the followings:
    Please create a new library at the site, then add three managed columns into it, test again, compare the result.
    Whether this issue occurred in other sites with the same site collection.
    Please test in another site collection, check if this issue occurs.
    In addition, please make sure Managed Metadata web service is started in Mange services on server.
    And also make sure the managed metadata service is connected to the web application that you used as CA->Application management->manage web application->your web application->Service Connections.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Customize adf components in deployed ADF web applications

    Hi,
    I am using JDeveloper 11.1.1.4 and ADF-BC in my project.
    In my project,I use several jsff pages with some common adf components inside them.[ex:af:panel,af:inputText ,etc].
    For example I use a panel and some adf input and button components inside panel.
    I build a ear/war and ship it to customer.
    My question is in customer environment,if the customer wants to customize the controls in the jsff page [like  adding new adf controls to the existing panel etc],can we achieve this in adf web applications.
    Please suggest.
    Thanks,
    Praveen

    hi,
    My question is in customer environment,if the customer wants to customize the controls in the jsff page [like adding new adf controls to the existing panel etc],can we achieve this in adf web applications.You cannot edit the ear file directly to embed the controls in page,
    So you can have a database table that stores the dynamic configuration of controls, like cntrl_name,type,value,autosubmit,, etc.
    and at runtime render it accordingly dynamically.
    forexample you can have a af:iterator that iterates over vo(table) and has switcher component to determine the type of component and apply properties to it.
    Regards,

  • How to use Swing in a web Application

    Can you suggest me some good PDF/tutorial or some good site for reading about using SWING in a Web Application.
    In our web application we plan to use JSP/Struts for the presentation layer. However there are a few screens that require some advanced UI like color coded assets and a graphical version of Outstanding Vs Available limit. We are wondering whether we should use SWING for these screens. Do you think this is a good idea or is there a better apprach to deal with this
    What are the disadvantages of using SWING VS JSP/Servlet in a Web environment. Is there a site or pdf where i can get information about this.

    I'd say the biggest disadvantage is that your client machines have to download and install the bloody java plug in.
    What you write about your UI ain't half vague. What the deuce is a "color coded asset"? Is it
    interactive? If not, could it be represented by an image? If so, even if it is a non-static image, it is a simple
    matter for your webapp to generate the image on the fly. Many web app tutorials demonstrate that.

  • Need information on open source testing tools for ADF web applications

    Hi experts,
    I need to investigate on new feasible open source Java testing tools for testing ADF web applications. I have tried to google a lot but getting confused.
    My requirements as as under:
    1. The tool must be open source.
    2. It should be easy to understand and to work upon by the tester and developers.
    Selenium based testing approach is already in place for testing the application but need to search for tools other than Selenium which shall prove suitable for testing ADF applications. Kindly let me know your inputs / suggestions.
    Thanks a lot in advance.
    Neelanand

    Hi,
    Have a look at JMeter http://jakarta.apache.org/jmeter/index.html
    1. The tool must be open source.It is.
    2. It should be easy to understand and to work upon by the tester and developers.I guess it is.
    There are some specifics in configuring it for ADF, but Chris Muir wrote a nice blog about how it's done, check it out http://one-size-doesnt-fit-all.blogspot.com/2010/04/configuring-apache-jmeter-specifically.html
    Pedja

  • ADFS Web Application Proxy - Automatically authenticate another federation

    I am setting up a Web Application Proxy as a reverse proxy to publish some of our internal websites to the internet. I am going to publish
    https://portal.workplace.example as the "hub" site which will link off to various other websites hosted internally. These sites are hosted on various different servers so I want to use the WAP to take
    advantage of the SSO facility. This works nicely.
    One of the links will be to Office 365. We are using IAMCloud's Federate 365 service (which is essentially a hosted ADFS service) to authenticate our users. Using this means that users away from the workplace
    are not dependant on our internet connection being active to access O365 and that they will still be able to authenticate should our internet connection die. However, it also means that when the user clicks on the link on the portal page to Office 365 they
    are forced to re-authenticate. What I'd like to is to pass on the credentials that the Web Application Proxy collects onto the external federation service automatically. I just can't see how you'd do it.
    I have added the external ADFS farm as a relying party trust but I have no idea what I need to use as a claim rule so I've used a passthrough rule with the UPN as the claim being passed. I've also set up a
    publishing rule with the WAP with the external federation's URL and changed the hosts file on a test computer to make the external federation's address resolve to the WAP's IP address but this just results in a blank page. I fully accept that I'm not doing
    this right but I'm unsure of where to go from here. Can anyone give me some advice?
    Many thanks,
    Ian

    Hi Lan,
    Thank you for your posting!
    Regarding claims based issue, I suggest you refer to experts from the following forum to get professional support:
    Claims based access platform (CBA), code-named Geneva Forum
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=Geneva
    Thank you for your understanding and support.
    Best Regards,
    Amy

  • Communication between separate ADF Web Applications

    Using 11.1.1.5 of JDeveloper I have two Fusion Web Applications that each have a single "view" task flow. Those task flows will be dropped into regions within a WebCenter Portal application so they behave like portlets. I'd like to have a value from one app passed to the other app and have the second app respond to the change. It seems like it should take about 10 minutes but so far... two weeks without any progress. I'm incredibly frustrated. Does anyone have a simple list of the steps I need to perform to pass parameters between task flows? Please help! All I'm looking for is step 1: set up this, step 2: set up that. I can't believe it's this hard.
    All of the samples I find on line are about inter portlet communication with JSR 286 portlets, WSRP portlet producers or inter-component communication. I've read this too: http://www.oracle.com/technetwork/issue-archive/2011/11-may/o31adf-352561.html but I haven't been working with JDev and WebCenter for 5 years so it simply doesn't make sense. For example, one piece of sample code looks like this
    public void handleEventStringPayload(String customPayLoad) {
    FacesContext fctx = FacesContext.getCurrentInstance();
    ELContext elctx = fctx.getELContext();
    ExpressionFactory exprFactory =
    fctx.getApplication().getExpressionFactory();
    ValueExpression ve =
    exprFactory.createValueExpression(elctx, "#{backingBeanScope.mirrorPageBean}",
    Object.class);
    MirrorPageBean mirrorPageBean = (MirrorPageBean)ve.getValue(elctx);
    mirrorPageBean.setMirrorValue(customPayLoad);
    AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
    adfFacesContext.getCurrentInstance().addPartialTarget(mirrorPageBean.getMirrorTextField());
    Pretend I don't know the nine layers of technology involved here. Why in the world do I need all of this stuff in this order just to set a parameter... or is that NOT what this is doing? Why are they doing addPartialTarget? What does that do? Why do they have an EventObjectHandler and an EventStringHandler? The article is clearly written for an experienced WebCenter developer and that simply isn't me. If anyone has a resource that shows me how to pass parameters between web apps that actually explains the steps needed and why they need to be taken, that would be great.
    Thanks in advance for any help.

    Hi!.
    To communicate two regions (ADF Task Flows) in a WebCenter Portal Page you have "Contextual Events Framework".
    You can learn it following this Blog entries:
    http://technology.amis.nl/blog/3365/adf-11g-how-events-in-one-region-cause-other-regions-to-refresh
    http://andrejusb.blogspot.com/2010/10/contextual-events-framework-and-adf-11g.html
    http://www.oracle.com/technetwork/issue-archive/2011/11-may/o31adf-352561.html
    Video: http://www.youtube.com/watch?v=XIVom59Kq2U
    In addition, you can communicate two regions without Contextual Events following this entry:
    http://andrejusb.blogspot.com/2010/04/communicating-between-adf-regions.html
    Regards!
    Edited by: Daniel Merchán on 22-feb-2012 22:15
    Edited by: Daniel Merchán on 22-feb-2012 22:18

  • Will adding a second ADFS Web Application Proxy cause service disruption

    Today I have attempted to add a second ADFS WAP server to an existing (working) ADFS solution based on 2012 R2.
    I am able to install and configure the required role/services successfully but then I'm presented with the Remote Access Management console. This shows the two WAP servers but not the existing published application from the original WAP server and only seems
    to let me Publish a new application.
    I'm not sure if I should go ahead and run the Publish Application wizard again in case it impacts on the existing application and causes disruption to the service/users.
    Any suggestions would be much appreciated.
    Cheers for now
    Russell 

    the config for the Web Application Proxy is stored in the ADFS v3 configuration database.
    As soon as you add a new WAP to the farm it will get its config from the database
    WAP can be domain joined or not. The reason for having it be domain joined is if you need to manage the system centrally and you need to leverage Kerberos Constrained Delegation for Windows based apps
    If you have more than one WAP, you should use some kind of load balancing mechanism such as either Windows NLB or a hardware loadbalancer
    adding a new WAP should not impact, you just need to make sure it is actually used
    Cheers,
    Jorge de Almeida Pinto
    Principal Consultant | MVP Directory Services | IAM Technologies
    COMMUNITY...:
    DISCLAIMER: This post is provided "AS IS" with no warranties of any kind, either expressed or implied, and confers no rights! Always evaluate/test yourself before using/implementing this!

  • Session expiration across different adf web applications

    Version of jdeveloper is 11.1.1.4.0. I have two adf jsf applications deployed in two different weblogic servers. Web application 1 navigates web application 2 in an external window or inline popup using a url view activity. I navigate from web application 1 to web application 2 without a problem. However when navigating back from web application 2 to web application 1 any action made in the ui of web app 1 throws an exception:
    javax.faces.application.ViewExpiredException: viewId:/main.jspx - ADF_FACES-30108:The view state of the page has expired because of inactivity. Reload the page.
    This problem does not occur when the 2 web applications are deployed in the same weblogic managed server. Is there any way to overcome this session inactivity issue.
    Thanks in advance

    you can set session timeout in
    web.xml
    weblogic.xml
    weblogic-aplication.xml

  • How do I get info from Active Directory and use it in my web-applications?

    I borrowed a nice piece of code for JNDI hits against Active Directory from this website: http://www.sbfsbo.com/mike/JndiTutorial/
    I have altered it and am trying to use it to retrieve info from our Active Directory Server.
    I altered it to point to my domain, and I want to retrieve a person's full name(CN), e-mail address and their work location.
    I've looked at lots of examples, I've tried lots of things, but I'm really missing something. I'm new to Java, new to JNDI, new to LDAP, new to AD and new to Tomcat. Any help would be so appreciated.
    Thanks,
    To show you the code, and the error message, I've changed the actual names I used for connection.
    What am I not coding right? I get an error message like this:
    javax.naming.NameNotFoundException[LDAP error code 32 - 0000208D: nameErr DSID:03101c9 problem 2001 (no Object), data 0,best match of DC=mycomp, DC=isd, remaining name dc=mycomp, dc=isd
    [code]
    import java.util.Hashtable;
    import java.util.Enumeration;
    import javax.naming.*;
    import javax.naming.directory.*;
    public class JNDISearch2 {
    // initial context implementation
    public static String INITCTX = "com.sun.jndi.ldap.LdapCtxFactory";
    public static String MY_HOST = "ldap://99.999.9.9:389/dc=mycomp,dc=isd";
    public static String MGR_DN = "CN=connectionID,OU=CO,dc=mycomp,dc=isd";
    public static String MGR_PW = "connectionPassword";
    public static String MY_SEARCHBASE = "dc=mycomp,dc=isd";
    public static String MY_FILTER =
    "(&(objectClass=user)(sAMAccountName=usersignonname))";
    // Specify which attributes we are looking for
    public static String MY_ATTRS[] =
    { "cn", "telephoneNumber", "postalAddress", "mail" };
    public static void main(String args[]) {
    try { //----------------------------------------------------------        
    // Binding
    // Hashtable for environmental information
    Hashtable env = new Hashtable();
    // Specify which class to use for our JNDI Provider
    env.put(Context.INITIAL_CONTEXT_FACTORY, INITCTX);
    // Specify the host and port to use for directory service
    env.put(Context.PROVIDER_URL, MY_HOST);
    // Security Information
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.SECURITY_PRINCIPAL, MGR_DN);
    env.put(Context.SECURITY_CREDENTIALS, MGR_PW);
    // Get a reference toa directory context
    DirContext ctx = new InitialDirContext(env);
    // Begin search
    // Specify the scope of the search
    SearchControls constraints = new SearchControls();
    constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
    // Perform the actual search
    // We give it a searchbase, a filter and the constraints
    // containing the scope of the search
    NamingEnumeration results = ctx.search(MY_SEARCHBASE, MY_FILTER, constraints);
    // Now step through the search results
    while (results != null && results.hasMore()) {
    SearchResult sr = (SearchResult) results.next();
    String dn = sr.getName() + ", " + MY_SEARCHBASE;
    System.out.println("Distinguished Name is " + dn);
    // Code for displaying attribute list
    Attributes ar = ctx.getAttributes(dn, MY_ATTRS);
    if (ar == null)
    // Has no attributes
    System.out.println("Entry " + dn);
    System.out.println(" has none of the specified attributes\n");
    else // Has some attributes
    // Determine the attributes in this record.
    for (int i = 0; i < MY_ATTRS.length; i++) {
    Attribute attr = ar.get(MY_ATTRS);
    if (attr != null) {
    System.out.println(MY_ATTRS[i] + ":");
    // Gather all values for the specified attribute.
    for (Enumeration vals = attr.getAll(); vals.hasMoreElements();) {
    System.out.println("\t" + vals.nextElement());
    // System.out.println ("\n");
    // End search
    } // end try
    catch (Exception e) {
    e.printStackTrace();
    System.exit(1);
    My JNDIRealm in Tomcat which actually does the initial authentication looks like this:(again, for security purposes, I've changed the access names and passwords, etc.)
    <Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
    connectionURL="ldap://99.999.9.9:389"
    connectionName="CN=connectionId,OU=CO,dc=mycomp,dc=isd"
    connectionPassword="connectionPassword"
    referrals="follow"
    userBase="dc=mycomp,dc=isd"
    userSearch="(&(sAMAccountName={0})(objectClass=user))"
    userSubtree="true"
    roleBase="dc=mycomp, dc=isd"
    roleSearch="(uniqueMember={0})"
    rolename="cn"
    />
    I'd be so grateful for any help.
    Any suggestions about using the data from Active directory in web-application.
    Thanks.
    R.Vaughn

    By this time you probably have already solved this, but I think the problem is that the Search Base is relative to the attachment point specified with the PROVIDER_URL. Since you already specified "DC=mycomp,DC=isd" in that location, you merely want to set the search base to "". The error message is trying to tell you that it could only find half of the "DC=mycomp, DC=isd, DC=mycomp, DC=isd" that you specified for the search base.
    Hope that helps someone.
    Ken Gartner
    Quadrasis, Inc (We Unify Security, www -dot- quadrasis -dot- com)

  • Using Designer to generate Web Applications

    I'm using Designer R1.3 to generate Web applications but example in a textfield i need make a validation how ca i do this using designer without make this using schema manager to correct by hands line by line

    You can certainly do this with JWS. You will have to request full access permissions to the user's machine because you will need to start the web server (& maybe DB server) from your JWS application. Do this with:
    <security>
    <all-permissions/>
    </security>
    That means you'll have to get a certificate for your server.
    In terms of resources - When you start resin, seems to me that all you should need to do is include all of the jars that resin needs in the command line classpath variable. To get access to this information, this code by Masahiro Takatsuka was very useful for me:
    http://forum.java.sun.com/thread.jsp?forum=38&thread=71208
    We did something similar to what you are doing - we ran Apache's Xindice XML DB from the JWS client. (We have since ditched Xindice because of performance issues, but launching it worked fine from JWS)
    good luck!
    catherine

  • Error while deploying ADF web application from JDeveloper 11g to Web Logic

    Hi,
    I developed application following "Developing RIA Web Applications with Oracle ADF" tutorial.
    It works fine when started locally, from JDevelopwr 11g (11.1.1.1.0).
    I tried to deploy it to remote Oracle WebLogic Server (10.3.1, with ADF libraries installed) from JDeveloper, but got:
    +[02:29:00 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application HRDemo on AdminServer.: Failed to load webapp: 'HRDemo.war'.+
    +[02:29:00 PM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'HRDemo.war'+
    +[02:29:00 PM] Caused by: java.lang.ClassNotFoundException: oracle.adf.library.webapp.ResourceServlet+
    +[02:29:00 PM] See server logs or server console for more details.+
    +[02:29:00 PM] weblogic.application.ModuleException: Failed to load webapp: 'HRDemo.war'+
    +[02:29:00 PM] #### Deployment incomplete. ####+
    +[02:29:00 PM] Deployment Failed+
    Tried to add "ADF Common Web Runtime" to deployment profile's "Libraries selected for deployment" but than got:
    +[02:52:44 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application HRSystem_ViewController_webapp1 on AdminServer.: Failed to load webapp: 'HRSystem_ViewController_webapp1.war'.+
    +[02:52:44 PM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'HRSystem_ViewController_webapp1.war'+
    +[02:52:44 PM] Caused by: java.lang.ClassNotFoundException: oracle.jsp.runtimev2.JspServlet+
    +[02:52:44 PM] See server logs or server console for more details.+
    +[02:52:44 PM] weblogic.application.ModuleException: Failed to load webapp: 'HRSystem_ViewController_webapp1.war'+
    +[02:52:44 PM] #### Deployment incomplete. ####+
    +[02:52:44 PM] Deployment Failed+
    Regards,
    Zdravko.
    Edited by: [email protected] on Sep 10, 2009 2:58 PM

    Hi,
    We did that earlier, too (modified existing domain).
    Also, after that, we created new domain and extended it according to you suggestions but no change.
    Regards,
    Zdravko.
    Edited by: [email protected] on Sep 11, 2009 10:20 AM

  • Which is better to use: BEx query or Web Application as an iView in portal?

    Hi gurus!
    Are there any experienced opinions, which is better - publish a BEx query in portal or publish a BEx Web Application in portal? Is it easier to alter the layout attributes etc. if I create a BEx Web Application first before publishing?
    What is the way of fixing for example filter item height if I publish BEx query in portal - is there a Web Application that it uses anyhow which I can fix? Or can I use in that case iView -properties in portal?
    Thankful for advice
    Sari

    ok, means i can use jsp:useBean tag for all my
    classes that are not actually bean. so it will be
    instantiated at run time and provide efficiency .No. Jsp:useBean is used for java bean components.
    >
    but when should i use import statement in my jsp and
    it happen at translation time so will it create any
    type of burden for my code if i import multiple
    classes.For non-java beans, you need to import the classes, period.
    It's not a burden, it's a necessity.

  • Using native libraries in web application (weblogic on linux)

    I have a problem with loading native libraries for use with my web application. Where do I have to put them in order for the server to see them? The same app on windows runs perfectly fine, because it has no problems finding the dll files.
              So far I have tried modifying the weblogic startup scripts, to include the library in LD_LIBRARY_PATH environment variable. I've also tried modifying the security policy just in case, but I don't think it's the case, because like I said, the app ran fine on windows without messing with the policies. So, any ideas, how I could load the libraries?
              The system is a WebLogic 8.1SP4 installed on Linux i386 using JRockit JVM, the native library in question is JAI 1.1.3-alpha native acceleration library.
              PS. if it's in the wrong group, please direct me to the correct one.

    <p>Fukiku,</p>
              <p>Did you get this working?</p>
              <p>You can also try setting the environment variable java.library.path.</p>
              <p>Please post your stack trace to the forum as well.</p>
              <p>
              Hussein Badakhchani</br>
              </p>

  • How to use servlets in portal web application in Weblogic Portal 4.0

    We are developing a Portal Web application using Weblogic Portal 4.0 where in we
    have the following scenario. one JSP in webflow of a portlet calls the PipeLine
    which does some processing and calls the servlet which is having the typical download
    functionality. The servlet is supposed to read the data from the pipeline session
    and create a CSV String that is dumped to the client browser. The problem is even
    we are doing response.setContentType("application/save") in the servlet it is
    still displaying the content as html in the portlet. I guess since all our request
    are send to the webflow contolling servlet and it is setting the content type
    and hence our servlet is not working. How do I solve this problem? Thanks Yogesh

    Hi Renu
    Please go through the SAP Content Management here you find the documents related to Wab page Compoer and knowledge mangement. Also search for article / blog for more details.
    [http://www.sdn.sap.com/irj/sdn/nw-ecm|http://www.sdn.sap.com/irj/sdn/nw-ecm]
    Hope it will helps
    Best Regards
    Arun Jaiswal

Maybe you are looking for

  • PL/SQL report errors: ORA-01422

    Hi all, (before i you read i would like to say i have searched the net for this error code but nothing shows up like this problem..) I am getting an error problem when i select certain Schemas from a list on an apex app. page, it only works for some

  • Business Services in BPM

    HI, I have seen that all the examples related to BPM are using Business Services. Why cant we use Business Systems to send/receive messages? Priya

  • Xorg 7.0 RC0

    It looks like the X.org crew has been doing a lot of slimming down. This modularization (sp?) of the X server is definitely something I've been waiting for... Dang, I can't wait to see what 7.0 final will be like. (Strangely, the "extra" directory, w

  • Deploy custom worklist, please help!!!!!

    Hi everyone! im trying to deploy the worklistexpress app in soaSuite to modify it and use it! when i try to do this like in older version it doenst work! the README file says: To deploy on oc4j target name deploy oc4j.deploy 1. Modify orabpel.home to

  • Is there a way to delete custom presets? (Premiere Elements 11 Mac)

    I have been experimenting with different ouput options for AppleTV with 1080p and 720p video, and have created many custom presets.  I would like to get rid of several which didn't give good results.  I have not found an option to delete custom prese