Configuration.createRootApplicationModule and dynamic credentials

Hi,
I'm trying to access business services of an ApplicationModule (AM B) from another ApplicationModule (AM A) (all in layer Model), using the static method oracle.jbo.client.Configuration.createRootApplicationModule.
The problem that I've doing this, is that I do some initializations in Database (VPD, user context, ...) using prepareSession(SessionData) and UserData information acquired in the SessionCookie creation (with HttpSession information).
Now with Configuration.createRootApplicationModule, I don't know how to pass the information that I need with EnvInfoProvider (if this is the way), or maybe I'm following a wrong way, and exists another better way to do what I pretend.
Another question. Seems that createRootApplicationModule tries to use AM Pool, to obtain the AM, if exists any previous instance of the AM created by ADFBindingFilter/DataControl, this method will obtain the same instance or a new one?
And the last one question about this theme, there's any way to obtain this AM in stateless mode release if the AM configuration file says that this will be released in Stateful mode? maybe using another additional configuration for the AM?
Anybody could help me and rescue me from my ignorance of this world?
Thanks a lot!!!

repost

Similar Messages

  • Differend between JAZN and Dynamic Credentials

    Please dose someone hase an article about this?? I want a clear article where it describes the differend between these two.
    thank you

    Hi,
    I don't think that this topic is worth an article.
    The difference is that JAZN performs J2EE container managed authentication in OC4J, whereas dynamic credentials allows ADF BC users to have their own database connection to their own schema (instead of sharing a database connection which then could be database pooled). So we are talking about comparing apples and beans here
    Frank

  • Configuring NetFlow and Dynamic Vulnerability Scanning

    Hi All,
    Configuring of NetFlow and Vulnerability Scanning are done.Where and how to check the netflow and Vulnerabilty scanning?
    Thanks.

    After enabling network scanning, you can view individual scan reports from Device Management > Clean Access > Network Scanner > Reports. The report shown here is the full administrator report (Figure 13-13). The report shown to end users contains only the vulnerability results for the enabled plugins. (Users can access their version of the scan report by clicking the Scan Report link in their Logout page.)
    for more information follow up on this link:
    http://www.cisco.com/en/US/docs/security/nac/appliance/configuration_guide/418/cam/m_netsca.html#wp1050604

  • Variable Substitution and Dynamic Configuration

    Hi All,
    In Variable Substitution , the name that should be given the the receiver payload should be part of the Source Payload unlike the Dynamic Configuration wherein the file name can be generated dynamically during mapping.
    I have the following questions
    1.Dont we need to write the UDF for the Variable substitution?
    2.Cant we do the Dynamic configuration without writing UDF?If so then how?
    3.In Dynamic Configuration the file name is generated dynamically.But where does the file name come from if it is not the part of the source payload?
    Thanks in advance

    Hi Shwetha,
    1.Dont we need to write the UDF for the Variable substitution?
    No. Here we are accessing the contents of the payload to the target. So no UDF required.
    2.Cant we do the Dynamic configuration without writing UDF?If so then how?
    Yes and No.
    Because we can set only few Dynamic configuration  values without UDF.
    If both source and target are File, then check ASMA on both sender and receiver. Then u can get the source directory name and source file name for target also without any UDF.Also some other parameters.
    3.In Dynamic Configuration the file name is generated dynamically.But where does the file name come from if it is not the part of the source payload?
    The file name comes along with the source in the payload as a attribute in header. U can view this in SXMB_MONI, and Dynamic Configuration.
    In Dynamic Configuration the file name is generated dynamically.
    No the file name is taken as it is from the source, if u want to change dynamically that u have to do in a UDF.
    I hope this will clear all doubts,
    If nt pl post
    Babu

  • What is the difference btwn Variable Substitution and Dynami Configuration

    Hi Gurus
    Could you please explain the difference between the Variable Substituion and Dynamic Configuration.
    whn shall we use them and in what scenarios?
    thanx in advance

    Please go through this blog
    /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name
    Also this
    /people/madanmohan.agrawal/blog/2009/05/20/combining-three-different-aspects-of-pi-asma-af-module-and-variable-substitution-in-one-shot
    Edited by: Baskar Gopal on Mar 31, 2011 9:04 AM

  • Clearing an Dynamic Cluster -HSRP and Dynamic Cluster -NAT ACL configuration

    I am trying to upgrade a 2950-24 Catalyst Switch that wa previously configured with both Dynamic HSRP and NAT  ACL as shown in the following extract below.
    I would like to remove this configuration but it is proving so difficult, this is because, I dont understand how the configuration got here in the first place, please  help
    =========================================================
    SW1#show access-list
    Extended IP access list CMP-NAT-ACL
        Dynamic Cluster-HSRP deny   ip any any
        Dynamic Cluster-NAT permit ip any any
    =========================================================
    interface Vlan1
     ip address 192.168.87.2 255.255.255.0
     no ip route-cache
    ip http server
    ip access-list extended CMP-NAT-ACL
     dynamic Cluster-HSRP deny   ip any any
     dynamic Cluster-NAT permit ip any any
    line con 0
     exec-timeout 0 0
    line vty 0 4

    I am trying to upgrade a 2950-24 Catalyst Switch that wa previously configured with both Dynamic HSRP and NAT  ACL as shown in the following extract below.
    I would like to remove this configuration but it is proving so difficult, this is because, I dont understand how the configuration got here in the first place, please  help
    =========================================================
    SW1#show access-list
    Extended IP access list CMP-NAT-ACL
        Dynamic Cluster-HSRP deny   ip any any
        Dynamic Cluster-NAT permit ip any any
    =========================================================
    interface Vlan1
     ip address 192.168.87.2 255.255.255.0
     no ip route-cache
    ip http server
    ip access-list extended CMP-NAT-ACL
     dynamic Cluster-HSRP deny   ip any any
     dynamic Cluster-NAT permit ip any any
    line con 0
     exec-timeout 0 0
    line vty 0 4

  • Dynamic Credentials and Web Service Data Controls

    I've followed Steve Muench's post on using Dynamic Credentials (14.     Dynamic JDBC Credentials for Model 1 and Model 2 [10.1.3.2] 2006, Upd: 17-MAY-2007), which works fine with the ADF BC part of the project. However, the project also contains Data Controls created from web services. I'm getting the following exception. Why are the web services being effected by the credentials and how can I fix it?
    Aug 31, 2007 12:38:41 PM oracle.adf.model.adapter.DataControlFactoryImpl createSession
    SEVERE: Exception:
    oracle.adf.model.adapter.AdapterException: DCA-40012: Failed to create a connection to the Web Service.
         at oracle.adfinternal.model.adapter.webservice.WSDefinition.loadFromMetadata(WSDefinition.java:659)
         at oracle.adf.model.adapter.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:163)
         at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:76)
         at oracle.adf.model.BindingContext.get(BindingContext.java:457)
         at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:280)
         at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:248)
         at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:383)
         at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)
         at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:60)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.<init>(JUMethodIteratorDef.java:138)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef.createIterBinding(JUMethodIteratorDef.java:93)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef.createIterBinding(JUMethodIteratorDef.java:84)
         at oracle.adf.model.binding.DCIteratorBindingDef.createExecutableBinding(DCIteratorBindingDef.java:277)
         at oracle.adf.model.binding.DCBindingContainerDef.createExecutables(DCBindingContainerDef.java:296)
         at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java:425)
         at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:54)
         at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:44)
         at oracle.adf.model.BindingContext.get(BindingContext.java:483)
         at oracle.adf.model.BindingContext.findBindingContainer(BindingContext.java:313)
         at oracle.adf.model.BindingContext.findBindingContainerByPath(BindingContext.java:633)
         at oracle.adf.controller.v2.context.LifecycleContext.getBindingContainer(LifecycleContext.java:150)
         at com.awiweb.om.view.fwkExts.OMS_FacesPageLifecycleContext.initControllerClass(OMS_FacesPageLifecycleContext.java:23)
         at oracle.adf.controller.v2.context.LifecycleContext.<init>(LifecycleContext.java:53)
         at oracle.adf.controller.v2.context.PageLifecycleContext.<init>(PageLifecycleContext.java:48)
         at oracle.adf.controller.faces.context.FacesPageLifecycleContext.<init>(FacesPageLifecycleContext.java:37)
         at com.awiweb.om.view.fwkExts.OMS_FacesPageLifecycleContext.<init>(OMS_FacesPageLifecycleContext.java:17)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at oracle.adf.controller.v2.context.LifecycleContext.getInstance(LifecycleContext.java:86)
         at oracle.adf.controller.v2.context.LifecycleContext.getInstance(LifecycleContext.java:65)
         at oracle.adf.controller.faces.lifecycle.ADFPhaseListener$1.before(ADFPhaseListener.java:404)
         at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.beforePhase(ADFPhaseListener.java:77)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:228)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.awiweb.om.view.fwkExts.OMS_ADFBindingFilter.doFilter(OMS_ADFBindingFilter.java:79)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

    Please ignore this post. The problem was not related to the Web Service.

  • Cascade 2 PLL_ADV in spartan-6 FPGA and dynamic configure

    Can I cascade 2 PLL_ADV in spartan-6(XC6SLX25T) FPGA  and dynamic configure them?

    Hi, , Of course the two PLL_ADV meet the requirements for VCO frequency. The output of first PLL_ADV connect to a BUFG and then to the CLKIN of the second PLL_ADV.
    You mean that if change the first PLL_ADV output with dynamic reconfigure, I must reset the second PLL_ADV and then dynamic reconfigure it ?

  • Dynamic Credentials with Webservice

    I'm developing a web service and need to establish a database connection based on a heavyweight user in the database. (Please...no discussion on that design...it is what it is at least for now.)
    So far I've created a class defining the service method. (This will be converted to a webservice later using the wizard.) I've created a separate project containing an AppModule through which I'll access the datasource.
    Use of dynamic credentials for web apps is discussed here: http://www.oracle.com/technology/products/jdev/howtos/bc4j/howto_dynamic_jdbc.html. However the example depends on the lifecycle's calling a subclass of SessionCookieFactory and passing of the UID/password via HttpSession object attributes. I'm assuming that a webservice would not have a call to the SessionCookieFactory in its lifecycle.
    Is there a way in a webservice design to dynamically set the username and password for the connection? I'm using an AppModuleImpl subclass in my project, but I haven't seen any methods for changing the username/password before or after my call to Configuration.createRootApplicationModule(String a, String b). {My connection string is defined in a database connection in the Connections Navigator.}
    I'm developing in JDev 10.1.3.1.

    OK...I was able to make this work by modifying the dynamic JDBC example:
    public Element serviceMethod(String username, String password, String parameter) {
    String amDef="mypkg.AppModule";
    String config="AppModuleLocal";
    ServiceEnvInfoProvider envInfo = new ServiceEnvInfoProvider(username, password);
    AppModuleImpl module = (AppModuleImpl)Configuration.createRootApplicationModule(amDef, config, envInfo);
    Element resultElement = processingMethod(parameter);
    return resultElement;
    }

  • VPN Client and Dynamic isakmp keys not working

    Hi,
    I'm trying to enable DMVPN endpoints from dynamic IP addresses, e.g. adding in:
    crypto isakmp key XXXXXXX address 0.0.0.0 0.0.0.0 no-xauth
    The problem is when I add this line, it breaks our remote VPN Client.  Removing the line makes everything work fine again, except I can't add a DMVPN endpoint that has a dynamic IP.
    Presently all DMVPN spokes have static IP addresses configured and individual keys for each (I'm trying to simply/cut down our config and use a single key for all of them plus enable staff from home on dynamic IP's).
    I can't tell if this is an IOS bug, or if I need to configure something differently.
    Our VPN client is configured as a dynamic map, e.g.:
    crypto isakmp client configuration group vpnclient
    key RAH RAH RAH
    etc.
    crypto isakmp profile vpnclient
       match identity group vpnclient
       client authentication list vpnuser
       isakmp authorization list vpngroup
       client configuration address respond
    crypto ipsec transform-set VPNCLIENT esp-aes 256 esp-sha-hmac
    crypto dynamic-map vpnclient 10
    set transform-set VPNCLIENT
    set pfs group2
    set isakmp-profile vpnclient
    crypto map vpn 65535 ipsec-isakmp dynamic vpnclient
    And then attached to my WAN interface as crypto map.

    Hi Scott,
    What IOS Version are you using ? I don't see any reason that this command would break Remote VPN Connectivity.
    Maybe you can try
    crypto isakmp key XXXXXXX address 0.0.0.0 0.0.0.0 (remove the no-xauth, as it's not needed).
    Otherwise, you may share output of debug crypto isakmp to see exactly what is failing when the remote users are connecting.
    Regards,
    Bastien

  • How to configure apache and weblogic in windows 2000

    i am novice,
    i want to configure apache and weblogic in windows 2000
    weblogic version is 6.1
    apache version is 2.0
    how to do?

    George,
    I would take the following 'first steps'
    1)Install Apache20 on your Windows machine following the Apache online documentation
    http://httpd.apache.org/docs-2.0/misc/tutorials.html
    2)Make sure you can 'serve up' static HTML content from your Apache Server
    3)Install Weblogic Server per our online documentation
    http://edocs.bea.com/wls/docs61/install/index.html
    4)Also, make sure you can 'serve up' both static and dynamic (e.g., JSP) content
    directly from WLS server
    5)Once you have both of the above 'sanity' checks attempt to configure a simple
    proxy by ppath or mime type via our online documentation
    http://edocs.bea.com/wls/docs61/adminguide/apache.html#103803
    Chuck Nelson
    DRE
    BEA Technical Support

  • URGENT! Configuring WNA and keytab problems

    Hi, I've configured OAS10g integration with AD successfully and able to map the users successfully from AD to OID. The external authentication plugin is working as well. However, I am having problems configuring WNA and getting the following erros in the OC4J_SECURITY logfile:
    08/01/06 13:18:44 Getting creds for HTTP/[email protected]...
    08/01/06 13:18:44 Debug is true storeKey true useTicketCache false useKeyTab true doNotPrompt true ticketCache is null KeyTab is /san/oas10g/oracle/product/10gas_infra/j2ee/OC4J_SECURITY/config/oraprda01.keytab refreshKrb5Config is false principal is HTTP/oraprda01.mpx.biz tryFirstPass is false useFirstPass is false storePass is false clearPass is false
    principal's key obtained from the keytab
    08/01/06 13:18:44 principal is HTTP/[email protected]
    08/01/06 13:18:44 [Krb5LoginModule] authentication failed
    Pre-authentication information was invalid (24)
    08/01/06 13:18:44 KerberosAuthenticator: GSSException raised in constructor - No valid credentials provided (Mechanism level: Attempt to obtain new ACCEPT credentials failed!)
    08/01/06 13:18:44 GSSException: No valid credentials provided (Mechanism level: Attempt to obtain new ACCEPT credentials failed!)
    08/01/06 13:18:44 at sun.security.jgss.krb5.Krb5AcceptCredential.getKeyFromSubject(Krb5AcceptCredential.java:189)
    08/01/06 13:18:44 at sun.security.jgss.krb5.Krb5AcceptCredential.getInstance(Krb5AcceptCredential.java:80)
    08/01/06 13:18:44 at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:75)
    08/01/06 13:18:44 at sun.security.jgss.GSSManagerImpl.getCredentialElement(GSSManagerImpl.java:149)
    08/01/06 13:18:44 at sun.security.jgss.GSSCredentialImpl.add(GSSCredentialImpl.java:334)
    08/01/06 13:18:44 at sun.security.jgss.GSSCredentialImpl.<init>(GSSCredentialImpl.java:44)
    08/01/06 13:18:44 at sun.security.jgss.GSSManagerImpl.createCredential(GSSManagerImpl.java:102)
    08/01/06 13:18:44 at oracle.security.jazn.oc4j.KerberosAuthenticator.<init>(Unknown Source)
    08/01/06 13:18:44 at oracle.security.jazn.oc4j.RealmUserManager.getHttpAuthenticator(Unknown Source)
    08/01/06 13:18:44 at oracle.security.jazn.oc4j.FilterUserManager.getHttpAuthenticator(Unknown Source)
    08/01/06 13:18:44 at com.evermind.server.http.HttpApplication.initAuthenticator(HttpApplication.java:5371)
    08/01/06 13:18:44 at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:980)
    08/01/06 13:18:44 at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:549)
    08/01/06 13:18:44 at com.evermind.server.Application.getHttpApplication(Application.java:890)
    08/01/06 13:18:44 at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)
    08/01/06 13:18:44 at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)
    08/01/06 13:18:44 at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)
    08/01/06 13:18:44 at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)
    08/01/06 13:18:44 at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)
    08/01/06 13:18:44 at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)
    08/01/06 13:18:44 at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)
    08/01/06 13:18:44 at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)
    08/01/06 13:18:44 at java.lang.Thread.run(Thread.java:534)
    08/01/06 13:18:44 Caused by: javax.security.auth.login.LoginException: Pre-authentication information was invalid (24)
    08/01/06 13:18:44 at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:585)
    08/01/06 13:18:44 at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:475)
    08/01/06 13:18:44 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    08/01/06 13:18:44 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    08/01/06 13:18:44 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    08/01/06 13:18:44 at java.lang.reflect.Method.invoke(Method.java:324)
    08/01/06 13:18:44 at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
    08/01/06 13:18:44 at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
    08/01/06 13:18:44 at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
    08/01/06 13:18:44 at java.security.AccessController.doPrivileged(Native Method)
    08/01/06 13:18:44 at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
    08/01/06 13:18:44 at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
    08/01/06 13:18:44 at sun.security.jgss.LoginUtility.run(LoginUtility.java:57)
    Our setup is such that the SSO hostname is oraprda01.mpx.biz but the AD/KDC realm is AD.MULTIPLEX.BIZ. I found http://www.oracle.com/technology/obe/obe_as_10g/im/wna/wna.htm and we have more or less the same situation so it should work but it doesn't. I've already got this working in the test environment but the SSO hostname there is gfradev01.ad.multiplex.biz. Note that it has the same domain name as the AD realm.
    Doing a kinit without using the keytab file works for HTTP/[email protected] but when I use the keytab file, I get the pre-authentication error.
    Can anyone advice as to how we can make this work? Are there extra setups which need to be done on the AD server which Oracle did not document?
    Thank you very much,
    Abigail

    If urgent, contact Support.
    Is the account option ‘Do not require kerberos preauthentication’ checked (see MicroSoft KB 832572)
    In addition: metalink Note: 466288.1
    Message was edited on 1-feb-2008 by: Frank van Bortel

  • ADF: Configuration.createRootApplicationModule() generates bc4j.xcfg error

    I am using JDeveloper 11.1.1.5 to create a web service which performs mathematical calculations based on a varying number of inputs. Some of the inputs serve as criteria for querying DB tables to obtain static numerical values. This static data is then plugged into a formula to produce the output of the service. My approach is to build an ADF application with 2 projects: a "service" project which contains a java-based web service created using the "Create Java Web Service From WSDL" wizard; a "model" project that consists of an Application Module and some read-only SQL query-based views as it's Data Model. Additionally, the AppModule.xml editing tool was used to generate an AppModuleImpl.java class and it's associated client interface classes. The intent is to instantiate the App Module from the service project and call a custom method to perform the required DB lookup. The code to do this looks as follows:
    In service implementation class (com.util.formula.service.FormulaCalculationServiceImpl.calculateLicensingFee):
    import com.sesac.formula.lkup.client.AppModuleClient; //generated by App Module Java Class wizard
    import oracle.jbo.client.Configuration;
    AppModuleClient lkup;
    try {
    lkup = (AppModuleClient)Configuration.createRootApplicationModule("com.util.formula.lkup.AppModule", "AppModuleLocal");
    } catch (Exception e) {
    e.printStackTrace();
    The following exception is always thrown:
    oracle.jbo.ConfigException: JBO-33001: Configuration file /com/util/formula/lkup/common/bc4j.xcfg is not found in the classpath.
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:467)
         at oracle.jbo.common.ampool.PoolMgr.loadConfiguration(PoolMgr.java:600)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:526)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1505)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1482)
         at com.util.formula.service.FormulaCalculationServiceImpl.calculateLicensingFee(FormulaCalculationServiceImpl.java:28)
    ... more
    The service project Properties -> Dependencies specifies a dependency on the model project. I have tried making the dependency on both the Build Output and on the BC_Common.jar generated by the model project - neither works. I have exploded the the .war generated for the service project and verified that bc4j.xcfg does indeed exist at the classpath location described in the error message. It also exists in the BC_Common.jar at the correct location.
    I also tried the following alternative approach to instantiating the App Module:
    import com.util.formula.model.client.AppModuleClient;
    import oracle.adf.model.BindingContext;
    import oracle.jbo.uicli.binding.JUApplication;
    AppModuleClient lkup;
    try {
    BindingContext bc = oracle.adf.model.BindingContext.getCurrent();
    JUApplication japp = (JUApplication)bc.getCurrentBindingsEntry().get("AppModuleDataControl");
    lkup = (AppModuleClient)japp.getApplicationModule();
    } catch (Exception e) {
    e.printStackTrace();
    In this case, BindingContext.getCurrent() returns null.
    The same App Module that I'm unable to instantiate as above runs fine in Oracle Business Component Browser. I chose this approach because I have been using App Modules in the same development environment when they were directly bound to UI's and Service Interfaces with good success and I liked the features it provided. I've spent way too much time beating on this and searching every forum I could find. The example for using Configuration.createRootApplicationModule() came right out of Chapter 9, Section 10 of Oracle Fusion Middleware - Fusion Developer's Guide for Oracle Application Development Framework (11g Release 1). Any ideas would be greatly appreciated.
    Thanks,
    Tom

    I guess you get a new connection this way. If you have an ApplicationModule you can get the internal connection this way    public Connection getCurrentConnection(ApplicationModule aApp)
            Statement st = null;
            try
                // create Dummy Statement to get the connection
                st = aApp.getDBTransaction().createStatement(0);
                return st.getConnection();
            catch (SQLException s)
               // Log some message here and do something
            finally
                // close statement
                if (st != null)
                    try
                        st.close();
                    catch (SQLException s2)
        }Timo

  • ASA 8.2 - Static NAT and Dynamic NAT Policy together

    Hello community,
    I have the following problem using a ASA with version 8.2.
    1) I have this segment on interface Ethernet 0/0: 192.168.1.0/24
    2) Through interface Ethernet 0/1 I will reach several servers using the same source IP, but other servers must be reached using only one IP, for example 192.168.1.70
    so, I have configured a Static NAT Rule from interface Ethernet0/0 to interface Ethernet 0/1 which NAT the source IPs to the same IPs: 192.168.1.0/24->192.168.1.0/24. Also I have configured a Dynamic NAT Policy that states when destination IP is "server list" then all the source IPs must be translated to 192.168.1.70.
    PROBLEM: when testing it...always the static wins....and Dynamic is never analyzed...Also, no priority for the NAT policy and NAT rules can be done on ASDM...what can I do? is there a way to do this on ASDM or CLI? (preferrely at ASDM)
    Thanks for your reply and help!

    Hello community,
    I have the following problem using a ASA with version 8.2.
    1) I have this segment on interface Ethernet 0/0: 192.168.1.0/24
    2) Through interface Ethernet 0/1 I will reach several servers using the same source IP, but other servers must be reached using only one IP, for example 192.168.1.70
    so, I have configured a Static NAT Rule from interface Ethernet0/0 to interface Ethernet 0/1 which NAT the source IPs to the same IPs: 192.168.1.0/24->192.168.1.0/24. Also I have configured a Dynamic NAT Policy that states when destination IP is "server list" then all the source IPs must be translated to 192.168.1.70.
    PROBLEM: when testing it...always the static wins....and Dynamic is never analyzed...Also, no priority for the NAT policy and NAT rules can be done on ASDM...what can I do? is there a way to do this on ASDM or CLI? (preferrely at ASDM)
    Thanks for your reply and help!

  • Dynamic credentials

    I am using dynamic credentials in my adf 11g application ,i want after user make login, to store his basic information - (name,salary,birthdate,...etc) which is store in database - to session variables to use these variables in all pages . how can i do that ?
    thanks in advance
    maher

    Maher,
    the ideal point is the method where you are sure the user has successfully logged into your system.
    There you get hold of the session, check if the bean is already instantiated and set its values. If you can't find the bean create it yourself and put it into the session.
    Timo

Maybe you are looking for