Login pattern between Web and EJB

Hi everyone,
I'm looking for the best pattern to setup my web login system.
(Login page in JSP-JSF and then user right).
I know the J2EE pattern for communication between presentation and business tier as such as Business Delegate, Session Facade, Application Service, ...
But,
How do i have to implement to login check in my session bean ?
How is keept the information about the current user (webSession or statefull bean) ?
Anyway, is anyone can give me an exmaple of a typical implementation.
Thank.

Check out the InterceptingFilter pattern.
That's the way to check if the user is logged into the system.
But, i also would like to know, the best way to login the user,
The action to do when the user submit the login page.
One current practice is to store an object in the sessionScope of the Web presentation tier (for web, in my case) .
So, i think about one way :
I've got an entity Bean which represent the User Access for the application so that any kind of client use the same User Access.
Can i write a method in my SessionBean (SessionFacade pattern) to get the
transfert object representing the User an store this transfert object into the sesionScope ?
(So, if the return is null, that's wrong login ).
My SessionFacade would have an method like the following :
   public UserTo loginUser (String login, String password) throws RemoteException {
} Thank's

Similar Messages

  • Live/realtime connection between WebI and Xcelsius

    Hi,
    is it possible to have some kind of a live connection between WebI and Xcelsius for the following scenario...
    I need to have my WebI report made availabe as an Xcelsius Dashboard and when I filter a value in the dashboard it should also get filtered in the WebI report. Is this possible and if so then how?
    Pls help.
    Thanks,
    SD
    Edited by: Sebastian D'Souza on Feb 22, 2011 11:39 AM

    Hi Sebastian,
    Yes this is very possible. Of the three connection methods (QaaWS, Live Office, BI Services) I would recommend BI Services for flexibility, speed to set up, and speed for query refresh times.
    Check out this post for a step-by-step guide http://blog.davidg.com.au/2011/03/drill-down-in-xcelsius-using-bi.html
    And refer to the Webi Rich Client guide in the section "Sharing Web Intelligence content with other Web applications" for the full details of how this works.
    Hope this helps.

  • Difference between "Web" and "Streaming"

    Can anyone tell me what the difference between Web and Streaming is when exporting a Movie from iMovie? I know they both go on a webpage but why are there two options?
    Thanks

    True streaming media is not cached on the viewing machine. No cache means nothing to save as a new file. You can only save a "reference" to the source file stream.
    Media Links (very cool feature rarely used by most users) make a .qtl file. This is also just a reference movie (very tiny file size) but can include many features found (usually) in the Pro upgrade of QuickTIme and/or AppleScript and Automator Action features.
    Using Media Link files will allow you to add "Presentation" playback features to your QuickTime file (Full Screen, close when done, etc). You can add a "link" inside your QuickTime file so when the image is clicked a Web page would open. One of mine as an example:
    http://homepage.mac.com/kkirkster/GetA_MacText.qtl
    You'll notice the file will download (0.3KB's) then launch QuickTime Player and play full screen. Click on the movie to learn more.

  • Difference between "Web" and "Animate Deployment Package"

    What is the difference between "Web" and "Animate Deployment Package" in Publish? They create the same HTML file when published (and after you insert the .oam file). Are they the same?
    Also, if I use the "Web" publishing target, how do I then get the animation into a page?
    I am hoping there is a difference and that my animations not displaying in BrowserLab will if I publish using the "Web" settings.

    Hi, DOD-
    The "Web" publish will output files that can be posted to a webserver and hosted there.  For more information on how to integrate your animation into a webpage, see this thread here:
    http://forums.adobe.com/message/4741310
    The OAM file that is output from the "Animate Deployment Package" selection is a compressed file meant for integration into InDesign or Dreamweaver.
    Hope that helps clarify things for you!
    -Elaine

  • Which better between Hibernate and EJB

    Hello i am a new begginer in J2EE, i have some question
    Which better between Hibernate and EJB ?
    i still confuse when must using Hibernate or EJB, because as i know in EJB it can use datasource which can i map to Entity bean.
    this function is same as Hibernate as i know.
    if my concept is wrong please correct my concept
    thx in advanced

    fbrayuki.darmanto wrote:
    Hello i am a new begginer in J2EE, i have some question
    Which better between Hibernate and EJB ?Just to clarify, you mean EJB3.x, not the earlier versions.
    Define "better".
    They're actually pretty similar.
    If you use Hibernate instead of EJB3 you don't need a full-blown Java EE app server. You can deploy apps on a servlet/JSP engine or on the desktop.
    i still confuse when must using Hibernate or EJB, because as i know in EJB it can use datasource which can i map to Entity bean.
    this function is same as Hibernate as i know.
    if my concept is wrong please correct my concept
    thx in advanced%

  • Synchronisation between web and desktop doesn't work anymore (update)

    Before today, I could synchronize my files between Web and my Desktop. It doesn't work anymore.
    It tells me "Available soon"... It worked fine until today...
    >>> That's ok, it's working again since a few minutes...

    The problem is on the PC with Windows 7... where iTunes doesn't work anymore.

  • Share Configuration Manager Entries between WebDynpro and EJB

    Hi there,
    I have an annoying problem: I would like to have a WebDynpro as full-blown configuration interface for my EJBs. As steted in the docu, it is not possible to share configurations between applications.
    With EJB and Web Modules I would just place them in the same Enterprise Application. But I cannot as WebDynpro projects to enterprise applications (as far as I know).
    Does anyone have a clou about I could manage this issue?
    Thanks!
    helge

    Hi Maksim,
    at the link you've provided it is described how to use the Configuration Manager within an EJB Module.
    My Problem is that I want to use it from an WebDynpro Application. But there I don't have a META-INF\application-j2ee-engine.xm to configure the dependency.
    This itself is not a problem since you can also access the Configuration Manager via JNDI.
    My problem now is that the EJB Module (more precise the enterprise application where the EJB Module is included) needs to share the configurtion with the Dynpro. But vi JNDI you only get the ApplicationConfigurationManager - which is application specific.
    So the question is how I could share the configuration between WebDynpro and EjbModule...
    Regards,
    helge

  • Is there a difference between Web and Database Cache

    What, if any, is the difference between Web Cache and Database Cache?

    There is good documentation in the form of PDF files at the following general URL
    "http://otn.oracle.com/products/ias"
    and specifically at:
    http://technet.oracle.com/docs/products/ias/doc_index.htm
    I have read them all and most things are documented in great detail.
    I'm trying to get the Web Cache working but it core dumps immediately after trying to start it. I had no install errors reported and everything else I have tested seems to work. If you get it working could you please send me a note on anything special you did? I really need the Web Cache to work.

  • Shared classes between webapplication and ejb

    Hello,
    If I have some java classes that are used by both WebApplication and EJB, do
    I have to include those classes into both war and jar files?
    Regards,
    Peter

    Yes accorinding to WLS Documentation
    --Naggi
    "Programming today is a race between software engineers
    striving to build bigger and better idiot-proof programs, and the universe
    trying to build bigger and better idiots.
    So far, the universe is winning."
    "Peter Tsang" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hello,
    If I have some java classes that are used by both WebApplication and EJB,do
    I have to include those classes into both war and jar files?
    Regards,
    Peter

  • What is relationship between javabeans and Ejb ?

    I am new to javabeans and Ejb .
    thanks in advance.
    zzl_hz_cn

    nada. null. nil. void. zero. zilch.

  • Co-location optimization between servlet and ejb?

    Find some similar posting in archive, but answers confused me.
    If I implement a sesion bean in WL6.1 with remote interfaces and call that session bean from the web tier (i.e. servlet) that is located in the same WL server, will co-location optimization occur.
    Some previous posting suggested optimization only occurs within the same classloader. My understanding is servlet have a different class loader than the EJB.
    So will co-location optimization still occur?
    Thanks
    Joe Wroblewski

    "Joe Wroblewski" <[email protected]> wrote in message news:32319370.1096294137900.JavaMail.root@jserv5...
    Find some similar posting in archive, but answers confused me.
    If I implement a sesion bean in WL6.1 with remote interfaces and call that session bean from the web tier (i.e.servlet) that is located in the same WL server, will co-location optimization occur.
    >
    Some previous posting suggested optimization only occurs within the same classloader. My understanding is servlethave a different class loader than the EJB.
    >
    So will co-location optimization still occur?In case of a servlet you will have co-location optimization if the ejb-jar and the war are in the same ear. Then was
    will inherit EJB classsloader. If it's not the case, pass-by-reference is not possble.
    Regards,
    Slava Imeshev

  • Kuler not syncing colors properly between web and CC apps?

    I just created a new Kuler theme on the web ("Lyft app basics"), and then synced with Illustrator CC (running 17.0.0). For some reason, the theme color values are not showing up properly! I had created a theme a few weeks ago ("dark cocktail bar") and that one is fine.  Does anyone have any idea what might be going on? The only thing i can think of is that i copied and pasted hex codes from illustrator and perhaps kuler is having issues with copy/paste?? (the "dark cocktail bar" theme i made using the iOS app)
    themes on the kuler website:
    themes within illustrator cc:
    Thanks for any help!

    Figured out the problem. On the kuler website, in edit mode, I needed to highlight the rgb values in order for the theme to default to those values (before I had highlighted CMYK).

  • Problems with JNDI between JSP and EJB

    Good morning:
    I've got a problem related to EJB and JNDI.
    I want to run methods of an EJB that is in Weblogic, from a JSP that runs IPlanet. When I try to execute getInitialContext() I catch a NamingException. The error description is :Cannot instantiate class: weblogic.jndi.T3InitialContextFactory
    I have this code in the JSP:
    Context initialCtx;
    initialCtx = getInitialContext();
    private InitialContext getInitialContext() throws NamingException
    Properties p = new Properties();
    (Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.T3InitialContextFactory");
    (Context.PROVIDER_URL,"t3://atlas:7001");
    InitialContext ctx = null;
    ctx = new InitialContext(p);
    return ctx;
    Configuration:
    JSP runs in IPlanet 4.1 SP7
    EJB runs in a Weblogic 5.1. Atlas it's the server name
    IPlanet and Weblogic runs on differents machines.
    Can anybody help me?
    Thanks in advance
    David

    I have two weblogic jars (weblogicaux.jar and one service pack of weblogic) in the iplanet classpath.
    I don't know if I have to configure Weblogic with any special parameter (RMI/IIOP) or something similar in IPlanet.
    Can anybody help me?
    Thanks.

  • Wht is the difference between hibernate and EJB 3.0

    What are the main features differences in Hibernate and EJB3.0. What one should we prefer to use. Can some one provide me links to work and learn on these two technologies in depth.

    Hello all,
    Apart from what we are discussing above there is one more intresting feature which allows to work with any database without modifying the code, this is becuase of hibernate layer in application. Hibernate sits in between you application's logic and database, and you access your database with the help of objects (POJO) and write the data accesing queries in Object form(HQL - Hibernate Query Language) which is indepened of all database. whenever you want to chage your backed database just change the configuration files(hibernate.cfg.xml) and you are done. Isnt is cool feature, you dont need to worry about the underlying database.
    Surya
    --Idea's can change everything                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • BO Webi and SAP BW

    Hi,
    I have BOE XI 3.1 + SP2 installed.
    I can create the Universe that point to my SAP BW InfoCube.
    Then I open the WEBI and create the query from the Universe.
    Question:
    Can we create the WEBI directly from SAP BW Query instead of Universe?
    Can we have other connection in WEBI? e.g. create from LiveOffice or database?
    please advise, thanks.

    Hi,
    1. No - you have to use a Universe between WebI and your Cube.
    BTW: We recommend using Queries instead of Cubes due to better performance.
    2. Could you please give some more Informations. WebI always needs a Unvierse. But that Universe can also be from a relational source such as DB2, Oracle, etc.
    Regards
    -Seb.

Maybe you are looking for