ADF 11g inheritance problem

Hi
Giving a look on ADF 11g model Business Components, I tried to have a generic component A and its extended component B.
A has an id primary key attribute and if i generate a database table it has the PK generated, but B has no PK generated since the extended attribute is marked with the PK property.
I used Jdeveloper 11g 11.1.1.1.0, and built two components from a BC diagram.
Questions,
is it a good practice to have a master generic component with common id version and audit attributes ?
why the pk constraint is not built on database table for extended components ?
Thanks for your answers
Edited by: jpgora on 12 août 2009 10:19

The screen goes normal when I place the cursor over the top of the app and I don't get any height=100% on my page.
I noticed that some pages that have the table component on it don't get this bug.
I see the last release and the EL to get the agent detects the IE8 normally but that is some way to port my app to it??
Thanks in advance,
Renan.

Similar Messages

  • Weblogic 10.3 / ADF 11g Deployment Problem

    Hi all
    I get following error when install adf11g application which includes bc4j model application,
    Messages
    Error An error occurred during activation of changes, please see the log for details.
    Error weblogic.management.DeploymentException:
    Error oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener
    if the application does not have data model, it just contains viewcontroller then no any problem
    but with data model occurs error.
    weblogic server library list;
    -adf.oracle.domain(1.0,11.1.1.0.0)
    -apache_xbean.jar
    -jsf(1.2,1.2.7.1)
    -jstl(1.2,1.2.0.1)
    -pubsub(1.0,1.2.0.0)
    is there any idea ?
    Edited by: Mucahid Uslu on Nov 6, 2008 11:26 AM

    Hi Frank,
    i see there is no independent adfinstaller for 11g yet,
    we should have install by jdeveloper11g.
    java -jar jdevstudio11110install.jar (on linux)
    Thanks.
    Mucahid

  • Oracle ADF 11g – Authentication using Custom ADF Login Form Problem

    Hi Guys,
    I am trying to Authenticate my adf application using custom Login Form.
    following this..
    http://www.fireboxtraining.com/blog/2012/02/09/oracle-adf-11g-authentication-using-custom-adf-login-form/#respond
    But my Login Page is not Loading.I think its sending request in chain.my jdev version is 11.1.1.5.Any Idea.
    Thanks,
    Raul

    Hi Frank,
    I deleted bounded code and In another Unit Test I created a simple login.jspx page and applied form based authentication but still facing same problem means something wrong in starting.
    My login.jspx page is
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" >
          <af:form id="f1" >
            <af:panelFormLayout id="pfl1">       
              <af:inputText label="USERNAME" id="it1"
                            />       
              <af:inputText label="PASSWORD" id="it2"
                              />
              <af:commandButton text="LOG IN" id="cb1" />
              <f:facet name="footer">       
              </f:facet>                 
            </af:panelFormLayout>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>
    Don't know wht real problem is

  • Urgent help needed in achieving below ADF 11g flow

    Hi, I am using JDEV 11.1.1.2.0 with ADF 11g.
    I have a below requirement.
    Say in below eg. I am getting col1, col2, col3 from a single tbl in screen 1. On clicking col1's row I should go to screen 2
    Screen1
    Col1     Col2     Col3
    Nm1     Code1     10
    Nm1     Code1     30
    Nm2     Code1     30
    Nm1     Code2     20
    Here in screen 2 I will have a calculated field as shown below. Besides this In the same screen I will have a list showing distinct of col2 for the value cliked in col1. So here in this eg. it will be for Nm1 I will have 2 values in the list Code1 and Code2.      
    Screen 2          
    Col1     Nm1     
    Col2     Code1     
    Tot     *40*     
    Col2     Select     
    Code1     X     
    Code2          
    Now here if user selects the radio of 'Code2' Then my above data should change as below
    Col1     Nm1     
    Col2     Code2     
    Tot     *20*
    Col2     Select     
    Code1          
    Code2     X
    I do this by passing the col1 value as a param to a query VO.
    I have tried this using different VOs like a VO with query, VO with user defined column... nothing helps.
    I am just unable to reach to screen 2. I am either getting invalid column OR missing in out parameters.
    Can any one help on how and what should be done? This is not even master-details stuff. master-details seems easier than this.
    Urgent help is needed.
    Thanks in advance

    I have resolved your problem and build a sample application.
    You have to create 2 views and use master detail.
    First view will be a simple view for the page 1 and second view will be readonly using group by. Then create a view link between them.
    Let me know your email id. I will email you the sample application.
    SID
    Edited by: manieshsailoz on Apr 26, 2010 5:12 PM

  • Maintaining different sessions in browser tabs in ADF 11g application

    I have a simple ADF 11g application which uses ADF BC 11g.
    I want to maintain different sessions between the tabs in the same browser.
    Currently it is messing up with session variables. Please reply to me ASAP.
    Thanks,
    Bobby
    Edited by: 866444 on Jun 16, 2011 11:35 AM

    Assuming you are having problems because of the usage of JSF Session scope beans, then the answer is to use pageFlowScope for that set of data - then it is not shared between tabs.

  • How to deploy a secured ADF 11g application to WebLogic 10.3 server?

    Hi,
    I have just enabled security in our ADF 11g application, as descripbed in [chapter 29|http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/adding_security.htm#insertedID0] of the Fusion Developer's Guide. It works fine in the embedded WebLogic server of JDeveloper.
    Now I'm trying to deploy to our WebLogic 10.3 server, which runs in production mode. I'm running into all sorts of problems. The WebLogic console seems to have hundreds of security related pages, I don't know which one I should use, let alone how to use it. The Fusion Developer's Guide doesn't cover deployment to a production server:
    >
    When the target server is configured for production mode, you typically handle the migration task outside of JDeveloper using tools like Oracle Enterprise Manager. For details about using tools outside of JDeveloper to migrate the policy store to the domain-level in a production environment, see the [Oracle Fusion Middleware Security Guide|http://download.oracle.com/docs/cd/E12839_01/core.1111/e10043/toc.htm].
    >
    However, this guide is of very little help to me. I found [chapter 7|http://download.oracle.com/docs/cd/E12839_01/core.1111/e10043/addlsecfea.htm#insertedID0], which says "The recommended tool is Fusion Middleware Control." I have no idea what "Fusion Middleware Control" is, where to get it and how to use it.
    Long story short: I'm totally lost. I'm looking for a step by step guide on how to deploy a secured ADF 11g application to a WegLogic 10.3 server that is running in production mode. Any help is highly appreciated.

    Ok, I found a [very helpful blog post |http://andrejusb.blogspot.com/2009/01/practical-adf-security-deployment-on.html] by [Andrejus Baranovski|http://www.blogger.com/profile/04468230464412457426]. I wish Oracle's documentation was as clear as this...
    The blog post refers to an article by Steve Muench, called [Simplified ADF 11g Application Credential and Policy Migration to Standalone WebLogic Servers|http://www.oracle.com/technology/products/jdev/tips/muench/credmig111100/index.html]. This article presents an Ant script that migrates policies from JDeveloper to WebLogic, using some PFM. (See the last definition here.)
    The problem is that Steve Muench's script assumes that JDeveloper and the standalone WebLogic are on the same machine. However, in a typical environment, such as the one I'm working in currently, this is not the case. In our case the developer stations are Windows machines, while our WebLogic server runs on a HP-UX machine. So the question is: how to perform this migration between two machines with different operating systems?
    Regards,
    Bart Kummel

  • Can we call a method before and after Export operations in ADF 11g

    Hi,
    My problem is I have to execute a method before and after the export operation.Is this posible in ADF 11g
    Regards,
    Felix

    Hi,
    in response to a similatr post of yours, I replied
    1. Drop af:exportCollectionActionListener on a command button
    2. set the command button to display = false
    3. In your Java code, call
    ActionEvent ae = new ActionEvent(button);
    ae.queue();
    Everything you put before
    ActionEvent ae = new ActionEvent(button);
    ae.queue();
    will fires as a pre-trigger, everything after as a post trigger
    Frank

  • Urgent!!! Need help with ADF 11g app deployment

    Hi,
    My application is designed using ADF 11g and am using adfc-config.xml for page flow.
    Through Jdev 11g integrated WLS server the application is running smoothly.
    But when i deployed application using EAR file on WLS 11g server and accessed the appliction, the page flow didnt worked.
    That is i tried opening login page of my application, it opened. Then i provided login credentials , they were successfully validated.
    But after that the application home page did not apperaed and application stuck at Login page only. The page flow didnt worked.
    Please help on this, its urgent...
    Thanks n Regards
    Manav Ratra

    Thanks Timo/Arun,
    The problem was same as figured by you. :)
    The application is running smoothly in IE7 but in Mozilla 3.0.15 it is not running.
    There it is throwing error:
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    +10.4.5 404 Not Found+
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    Any pointers to this ...
    Thanks n Regards
    Manav Ratra
    Edited by: user11255144 on Nov 16, 2009 11:22 PM

  • ADF 12c Rendering Problems at design time

    Hi all,
    I am experimenting the following unexpected rendering problems at Design time with JDEV 12c:
    -  Sometimes a complete page is showed empty or blank but the components exists on the page (you can see them in the structure panel) and the page has no warnings.
    -  Sometimes I cannot click a component because it is behind the container.
    -  Sometimes the containers are rendered in other place on the page.
    -  Sometimes the containers not stretching
    I remember some posts about this problem in 11.1.2.x but I think it was not fixed in 12c. For this reason, I have some questions:
    What is the "real" memory requirement  of Jdev 12c to avoid render problems?
    What is the best configuration in jdev.conf?
    Is it only a memory issue or Is it also a dependency reference problem? According to a blog post of Frank Nimphius:
    Though with Oracle JDeveloper 11g the problem of the IDE not rendering JSF pages properly in the visual editor has become rare, there always is a way for the creative to break IDE functionality. A possible reason for the visual editor in JDeveloper to break is a failed dependency reference, which often is in a custom JSF PhaseListener configured in the faces-config.xml file. To avoid this from happening, surround the code in your PhaseListener class with the following statement (for example in the afterPhase method)
    public void afterPhase(PhaseEvent phaseEvent) {   if(!ADFContext.getCurrent().isDesigntime()){ ... listener code here ... } }
    The reason why the visual editor in Oracle JDeveloper fails rendering the WYSIWYG view has to do with how the live preview is created. To produce the visual display of a view, JDeveloper actually runs the ADF Faces view in JSF, which then also invokes defined PhaseListeners. With the code above, you check whether the PhaseListener code is executed at runtime or design time.If it is executed in design time, you ignore all calls to external resources that are not available at design time.
    source:
    https://blogs.oracle.com/jdevotnharvest/entry/when_jdeveloper_ide_doesn_t
    if it is a known problem, then Why is not fixed in 12c?
    Jhon
    Jdev 12c

    Jhon, what Frank mentioned can't be fixed from the outside. You or the developers who use phase listens without thinking about the design view are the ones to fix this. Frank provided you with the solution for this.
    However, we don't know if you use any self written phase listener. If you don't do this you have another problem. I do see some of your symptoms but can't reproduce them at the moment. As long as we can't reproduce the problem somehow it's difficult to to get a solution.
    My advise is to keep your eyes open (add I do) and whenever you can reproduce this behaviour come back and tell us about it. It's hard or impossible to give the 'best' settings for Jdev.conf as they depend on other factors e.g. operating system, memory, other applications running at the same time and many more.
    Personally I don't change the parameters as long as I can't put the problems to low memory (which I can't at the moment).
    Timo

  • ADF Table: CreateInsert Problem

    Hi,
    My JDeveloper version is 11.1.1.5
    I am facing one big problem.....
    Whenever I click on a createInsert button a new row is being created with data of a first row present in that table......!
    Is there any property of the createInsert button to avoid this?
    I have set partialSubmit = true
    Could anyone help me resolving this?
    Many Thanks,

    Are you creating new row with default executable from the datacontrol? Or do you have your own method executable?
    It's better to share some more details, like code-snippet if you have it to help better understand the problem.
    There has been lot said about Create vs CreateInsert:
    Here's one forum post that talks about CreateInsert.
    Re: ADF 11g Input Table createinsert operation - can I manipulate?
    See if it gives you any clues.

  • ADF dialog framework problem

    I am using the "old" dialog framework in ADF 11G.
    I create two pages. One page "pops" the other with dialog:page2 and usewindow.
    This works fine when i create a simple web project.
    But when i create the same code in a ADF ViewController project the second window opens in the same window as the first one.
    Is this a bug?
    Johnny

    Hi Frank,
    This will show you my problem:
    1. create new application
    2. choice fusion web application
    3. press finish
    4. created JSF page main:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document>
    <af:form>
    <af:commandButton useWindow="true" action="dialog:popup" text="commandButton 1"/>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    5. created JSF page popup:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document>
    <af:form>
    <af:outputText value="outputText1"/>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    6. create Faces navigation rule:
    <?xml version="1.0" encoding="windows-1252"?>
    <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee">
    <application>
    <default-render-kit-id>oracle.adf.rich</default-render-kit-id>
    </application>
    <navigation-rule>
    <navigation-case>
    <from-outcome>dialog:popup</from-outcome>
    <to-view-id>/popup.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    7. run the main page
    8. using ie 7 the main page shows
    9. push the button: no pupup, instead the "popup-page opens in same window as my main page
    Can I mail you the project, somehow?

  • OpenScript recording is slow with FireFox and ADF 11g

    Hi everybody;
    I trying the OpenScript for recording some scenarios, and I am facing some problems:
    1-     When I use the internet explorer (IE) it records fine with an acceptable speed, but when I replay the recorded script it misses out the fields and the links that I clicked, meaning: it starts to highlight other places on my page which I didn’t click while I was recording.
    2-     When I use FirexFox, I get other kind of problems. First the recording is unbelievably slow. It might take a minute or two for every link I click to respond. Also when I replay the script it executes faster than it did while recording but much more slower than doing the same scenario in real time meaning: doing it directly on the browser by a real user.
    Kindly note that my application is an ADF 11g application with EJB3 and the application server is Weblogic 11 and the database is oracle 10g.
    Any ideas will be appreciated
    Thank you all

    Note that Firefox 36 has been released officially.
    *https://www.mozilla.org/en-US/firefox/36.0/releasenotes/
    It is possible that your security software (firewall, anti-virus) blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full, unrestricted, access to install for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *https://support.mozilla.org/kb/fix-problems-connecting-websites-after-updating

  • TopLink, ADF 11g, RemoteSession and Stack Over Flow

    Hi,
    I am using TopLink and ADF 11g. From managed bean I can invoke Toplink Remote Session. After commit transaction on Remote Unit Of Work I get next exception:
    11.8.2009 14:52:47 oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator handleError
    SEVERE: Server Exception during PPR, #1
    javax.el.ELException: java.lang.StackOverflowError
         at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at oracle.adf.controller.internal.util.ELInterfaceImpl.invokeMethod(ELInterfaceImpl.java:138)
         at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:142)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:876)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:752)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:526)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:142)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:110)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:79)
         at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:43)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:145)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:787)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:280)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:165)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.StackOverflowError
         at oracle.toplink.internal.sessions.UnitOfWorkImpl.getParent(UnitOfWorkImpl.java:2488)
         at oracle.toplink.internal.remote.RemoteUnitOfWork.getDescriptor(RemoteUnitOfWork.java:254)
         at oracle.toplink.internal.remote.RemoteUnitOfWork.getDescriptor(RemoteUnitOfWork.java:254)
         at oracle.toplink.internal.remote.RemoteUnitOfWork.getDescriptor(RemoteUnitOfWork.java:254)
         at oracle.toplink.internal.remote.RemoteUnitOfWork.getDescriptor(RemoteUnitOfWork.java:254)
         at oracle.toplink.internal.remote.RemoteUnitOfWork.getDescriptor(RemoteUnitOfWork.java:254)
         at oracle.toplink.internal.remote.RemoteUnitOfWork.getDescriptor(RemoteUnitOfWork.java:254)
         at oracle.toplink.internal.remote.RemoteUnitOfWork.getDescriptor(RemoteUnitOfWork.java:254)
         at oracle.toplink.internal.remote.RemoteUnitOfWork.getDescriptor(RemoteUnitOfWork.java:254)
         at oracle.toplink.internal.remote.RemoteUnitOfWork.getDescriptor(RemoteUnitOfWork.java:254)
         at oracle.toplink.internal.remote.RemoteUnitOfWork.getDescriptor(RemoteUnitOfWork.java:254)
         at oracle.toplink.internal.remote.RemoteUnitOfWork.getDescriptor(RemoteUnitOfWork.java:254)
         at oracle.toplink.internal.remote.RemoteUnitOfWork.getDescriptor(RemoteUnitOfWork.java:254)
    Where can be problem? When I use DatabaseSession, all work correctly.
    Edited by: user480864 on 11.8.2009 6:20

    Hi Chris,
    thanks for your response. I was take next fragment of source code for Server session, Client session and Remote session.
    On server side:
    Acquire Server Session:
    private synchronized void createServerSession(boolean setEventListener){
    serverSession = null;
    if (toplinkProjekt == null) return;
    Server serverSess = toplinkProjekt.createServerSession();
    if (setEventListener) {
    SessionEventListener eventListener = new SessionEventListener("ToplinkProjectManager.createServerSession", true, ESessionType.ServerSession);
    serverSess.getEventManager().addListener(eventListener);
    serverSess.setLogLevel(DefaultSessionLog.ALL);
    serverSess.login();
    serverSession = serverSess;
    Acquire client session:
    public RMIRemoteSessionController getRemoteSessionController(String firma) {
    RMIRemoteSessionController rmirsController = null;
    try {
    ClientSession clientSession = getClientSession(firma);
    if (clientSession != null) {
    try {
    rmirsController = new RMIRemoteSessionControllerDispatcher(clientSession);
    } catch (RemoteException e) {
    e.printStackTrace();
    } else {
    System.out.println("\n" + userIdentifikator + "\nzamietnuty pristup.\n\n");
    } catch (Exception e){
    e.printStackTrace();
    System.out.println("\n\n\n" + userIdentifikator + " dostal RMI controller: " + rmirsController+ "\n\n\n\n\n");
    return rmirsController;
    private ClientSession getClientSession(String firma) {
    if (AccessControl.canAccess(firma, userIdentifikator)) {
    return DBConnectionManager.getClientSession(firma, userIdentifikator);
    } else {
    return null;
    Methods getClientSession and getRemoteSessionController are in Statefull EJB T3ConnectionManagerSessionEJBBean and getRemoteSessionController is published accross the Remote interface.
    Remote site:
    private static Context getInitialContext() throws NamingException {
    Hashtable env = new Hashtable();
    env.put( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory" );
    env.put(Context.PROVIDER_URL, "t3://192.168.1.107:7101");
    return new InitialContext( env );
    private static RemoteSession createRemoteSession(String firma){
    T3ConnectionManagerEJBBeanRemote t3Connection = null;
    try {
    final Context context = getInitialContext();
    t3Connection = (T3ConnectionManagerEJBBeanRemote)context.lookup("T3ConnectionManagerSessionEJBBean#sk.egroup.toplink.sessions.t3connection.T3ConnectionManagerEJBBeanRemote");
    } catch (Exception e) {
    System.out.println("Lookup error - " + e.toString());
    return null;
    if (t3Connection == null) return null;
    RMIRemoteSessionController controller = null;
    try {
    controller = t3Connection.getRemoteSessionController(firma);
    } catch (Exception e) {
    e.printStackTrace();
    return null;
    if (controller != null) {
    RMIConnection rmiConnection = new RMIConnection(controller);
    RemoteSession session = (RemoteSession)rmiConnection.createRemoteSession();
    SessionEventListener eventListener = new SessionEventListener("FIRMA = " + firma, true, ESessionType.RemoteSession);
    session.getEventManager().addListener(eventListener);
    session.setLogLevel(DefaultSessionLog.ALL);
    return (RemoteSession) session;
    } else {
    System.out.println("Nepodarilo sa ziskat remote session.");
    return null;
    Best Regards,
    Jozef

  • ADF 11g - Search for node in a tree

    I am currently working on ADF 11g. I have implemeted a hierarchical tree using a tree component. How do I implement search for a node in the tree?

    You build the model yourself, so it should not be a problem to traverse the model in search for the right node.
    Timo

  • ADF 11g can not select and copy data from cell of readonly table in IE

    hi,
    In ADF 11g, when render view object as readonly table with Single RowsSelection, using IE browser can not select and copy data from the cell, but it work in firefox.
    is it a bug?
    Edited by: kent2066 on 2009-5-18 上午8:46

    Hi Timo,
    Sorry forgot to mention versions.
    We are using 11.1.1.7 and IE 9.
    I tried in Google but could not get the solution.
    Kindly let me know solution for this.
    PavanKumar

Maybe you are looking for

  • How to save a SVG File in full black

    Hello guys, i have a problem. there are some vector ai icons that i have and its needed to be saved as a svg file. the problem is that the icon must be saved as c-0 m-0 y-0 k-100 and its seems every time is save the file and reopen it to check it or

  • My documents on Pages are not saving

    Hello! Recently, my documents haven't been saving from Pages (Apple). I have tried many things but still no results! I have many projects and assignments going on at the moment and I cannot afford to lose any papers. Please help!

  • I can't update my itunes to 10.5

    I been trying to update my itunes on my windows so I can update my ipod but everytime i try to update my itunes i keep getting this HELP!!!

  • Register with BES server without Enterprise data plan

    I read on this forum that there is a few ways to register with your company's BES even if you have the standard 29.99 data plan. The limitation is that you have to be connected to your company's lan, and perform the registration while on the lan. In

  • IPad 1 isn't recognise as an external hard-drive.

    I have a bunch of folders on my iPad 1 that I want to add to my computer and back up. When I go to my 'Computer' file it isn't recognising my iPad as an extra/external hard-drive. The problem I'm having is that it IS being recognised in my iTunes and