Implementing login functionality in EJB

I'd like to know other peoples views on how to implement logins in a container indepenant way.
Also how to pass client side info such as ip address around.
I'm thinking of a swing desktop client here.
One idea I had was when a client logs in, create a stateful session bean that stores their user id and ip address.
I've never used stateful session beans before, is this a good idea?

hang on, if I made my session facade statefull, and the first method you called was login...
all the other methods already have boilerplate code to wrap exceptions, not really a big deal to add checkIsLoggedIn();
public otherBusinessMethod1() throws ApplicationException, RemoteException{
  try{
    checkIsLoggedIn();
    do stuff...
  catch(Exception e){
    throw wrapException(e);
}This would work right?
I realise this has a scalability problem cause you're storing state on the server. I wonder how much of a problem.
I guess the other option is to pass the login info through each time
public businessMethod1(LoginInfo loginInfo){
  try{
    logIn(loginInfo);
    do stuff...
  catch(Exception e){
    throw wrapException(e);
}Or am I barking up the wrong tree altogether?

Similar Messages

  • JAAS login functionality Implementation in EP5

    Does anyone actually know if its possible to write a JAAS replacement for the login functionality of EP5 - ive seen loads of stuff about EP6 but nothing for EP5.
    If anyone has actually tried it - I would appreciate a bit of a heads up on what to look out for.
    Thanks
    Haydn

    Hi,
    the JAAS functionality was introduced with EP 6.0. In EP 5.0 it is not available since the authentication piece takes place on the IIS.
    Best regards,
    Oliver

  • UFL 'u2lcom.dll' that implement this function missing...

    Post Author: YAO
    CA Forum: Formula
    ey dudes,
    "UFL 'u2lcom.dll' that implement this function missing"
    Thats the error Crystal reports send me when i try to run a report.
    i searched for it and the file already exist.
    I use Crystal Reports XI
    Can u help me?
    Thank you.

    Don,
    thank you very much. It solved the issue.
    Earlier the vb6 dll was registered using an a/c id different than the one to login to Crystal Enterprise server from .Net code.
    Now copied the dll to 'c:\Program Files\Business Objects\common\3.5\bin\ on the server and ran,
    *regsvr32  c:\Program Files\Business Objects\common\3.5\bin\crufltest.dll and it woorked.*
    Thanks.

  • Hi, i want to implement a function in ODI

    hi, i am new to odi.
    i have created a project in odi which was very simple and only transfers data from one table to another.
    but now i want to implement a function in odi. i have the code for that function which is written in pl/sql.
    my function accepts some values that are used ahead in the function. now i dont know how to pass the values
    so can anyone plz tell me that how to pass values.
    regards,
    prateek.
    Edited by: user11116379 on May 21, 2009 1:37 AM

    If you want to call a PL/SQL function, you may want to do this in an ODI procedure. Take a look at the documentation which describes how to call a stored procedure, which is I think going to provide you the ability to execute your function.
    Functions can be called as a part of a mapping in an interface in ODI, just as you would normally use it as part of a select or insert statement.
    If you want to pass parameters into the execution of a task, you should use ODI's variables. Variables may be passed into the execution of a task, and the values from those variables can be used as a part of a mapping, resource name, filter etc.

  • Problem in implementing forgotPassword function

    hi,
        I need to implement forgotPassword function in my jsp.
    I followed everything from these links : -
    https://forums.oracle.com/message/10958330
    Handling Forgotten Passwords
    I am not recieving any mails .
    In the logs there is no logs of EmailService getting started. Is there any configurations that I need to take care of ..??
    Thanks
    Rammohan

    Hi,
        After sorting some errors Password is getting generated and Password is getting reset .
       But Email is not being sent to the recepient.
       My SMTPEmail.properties file is as follows : -
    /config/atg/dynamo/service/SMTPEmail.properties
    $scope=global
    defaultFrom=[email protected]
    emailHandlerHostName=smtpcorp.com
    emailHandlerPort=25
    username=*****@gmail.com
    password=*******
    Any ideas  what am I missing...?
    Thanks

  • Login function in DW CS3

    I am using a WAMP 1.7.3 and it seems that my login function
    under the server behaviours installs the appropriate code but when
    I view it in my browser it gives me an error. However, if I do the
    same thing under my DW MX 2004 version creating a login function
    under the server behaviours, when I view it under my browser I can
    login and see everything. Is there a glitch in DW CS3 or I am
    missing something here. I have uninstalled and installed the whole
    Web Premium CS3 and I am still getting this error. In fact, I went
    all the way as to re-formatting my hard drive to get a fresh
    install. Still the same thing.
    When I first installed the software and the WAMP 1.7.3
    everything worked as a charm. I had to format my computer because
    it was getting slow due to a lot of garbage. After I re-installed
    everything I can't get the same functionality as I did back then. I
    am wondering if anyone knows about this problem or has experienced
    it and how did you solve it. Is there a issue with my software or
    WAMP?
    Thank you.

    This is the error I get whether I use I.E. or Firefox.
    Apache HTTP Server
    Apache HTTP Server has encounted a problem and needs to
    close. We are sorry for the inconvenience.
    If you were in the middle of something, the information you
    were working on might be lost.
    Please tell Microsoft about this problem.
    We have created an error reported that you can send to us. We
    will treat this report as confidential and anomymous.
    To see what this error report contains, click here.
    Send Error Report Don't Send
    When I click on the link "Click here", I receive this
    information.
    Error sigature
    szAppName : httpd.exe szAppVer : 2.2.6.0 szModName
    :php5ts.dll
    szModVer: 5.2.5.5 offset : 00095ebc
    Reporting details-------
    This error report includes: information regarding the
    condition of Apache HTTP Server when the problem occurred, the
    operating system version and computer hardware in use, and the
    Internet Protocol (IP) address of your computer.
    We do not intentionally collect your name, address, email
    address or any other form of personally identifiable information.
    However the error report may contain customer-specific information
    in the cllected data files. While this information could
    potentially be used to determine your identity, if present, it
    would not be used.
    The data that we collect will only be used to fix the
    problem. If more information is available, we will tell you when
    you report the problem. This error report will be sent using a
    secure connection to a database with limited access and will not be
    used to marketing purposes.
    To view technical information about the error, click here
    To see our data collection policy on the web, click here
    When I click the tehichnical information I see this...
    C:\DOCUME~1\Latop-PC\LOCALS~1\Temp\WERb13c.dir00\httpd.exe.mdmp
    C:\DOCUME~1\Latop-PC\LOCALS~1\Temp\WERb13c.dir00\appcompat.txt
    So, what do I do? What does this mean?
    When I create the login in MX2004 I do not see this error and
    everything works, but in CS3 I get this error and nothing works.
    Thank you for all of your help.

  • Eclipse: UFL "u212com.dll" that implements this function is missing

    Dear Sirs,
    I try to open one of our reports with the "Crystal Reports for Eclipse 2.0" sample application. Thie report relies on a com based UFL. I get the following error message:
    Crystal Reports Viewer
    Exception yadada...
    UFL "u212com.dll" that implements this function is missing
    OK
    How can I fix this?
    Thanks for your answers.

    The fact that you can see the UFL under 'Additional Functions' tells me that the UFL is compiled as 32 bit. This is good for creating the report in the IDE which is 32 bit. But the app you are building is compiled as 64 bit. But there is no 64 bit UFL(?) that yo have built so far. So, two options;
    1) Build the UFL as "Any CPU". I am not sure if this will actually work. never tried this, but I do know that it is not possible to compile an app using the CR runtime as "Any CPU". E.g.; we always recommend to compile either as 32 bit and \ or 64 bit, not "Any CPU" This may be the case with the UFL, thus the next suggestion.
    2) Compile a second copy of the UFL as 64 bit. You'll then have to use 64 bit GAC and regasm on that dll.
    - Ludek

  • UFL 'u212com.dll' that implements this function is missing

    I am attempting to write a user function library for the crystal reports version that ships with Visual Studio 2010. Following the walkthrough on the Business Objects website (although that is for VS2005) I have successfully created my .dll file and added it to the GAC, and it appears in the function list under 'Additional Functions' in the Crystal Reports formula editor. However when I use the function on in my Windows forms application, I get the error "UFL 'u212com.dll' that implements this function is missing.". This is on my development machine and I have installed the latest service pack for Crystal Reports for VS2010 (64-bit). My OS is Windows 7 64-bit.
    I have two questions:
    1)  What version of the .NET framework should my class library be targeting? My windows forms application targets the .NET framework version 4, but should I be doing the same thing for the .dll for Crystal Reports? It does show up in the formula editor though, so I guess that means that Crystal Reports recognises it correctly.
    2) I have done a search on the PC for the file 'u212com.dll' and it is in the folder C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64 (and also in the equivalent 32-bit folder) Is this correct, or is there is a specific 64-bit version of this file?
    Or is it something else that I am missing? Thanks in advance for any suggestions.

    The fact that you can see the UFL under 'Additional Functions' tells me that the UFL is compiled as 32 bit. This is good for creating the report in the IDE which is 32 bit. But the app you are building is compiled as 64 bit. But there is no 64 bit UFL(?) that yo have built so far. So, two options;
    1) Build the UFL as "Any CPU". I am not sure if this will actually work. never tried this, but I do know that it is not possible to compile an app using the CR runtime as "Any CPU". E.g.; we always recommend to compile either as 32 bit and \ or 64 bit, not "Any CPU" This may be the case with the UFL, thus the next suggestion.
    2) Compile a second copy of the UFL as 64 bit. You'll then have to use 64 bit GAC and regasm on that dll.
    - Ludek

  • "UFL 'u2ltdate' that implements this function is missing."

    I am working through migrating older reports from a very outdated version of Crystal into a newer version and trialing Crystal Server 2013 with Crystal Reports for Enterprise.  The only problem I am running into is that I have many reports using the NumberToDate function to pull a number string and form it into a date for the report.  I really need this function to work because we rely on it quite heavily.  When I pull reports that use it into my new environment I am given the following error:
    "UFL 'u2ltdate' that implements this function is missing."
    I have found the u2ltdate.dll on the web and transferred it into the following folders: windows/system32 and program files(x86)/SAP BusinessObjects/SAP BusinessObjects Enterprise XI 4.0/win32_x86 and the win64_x64 as well just to be sure.  But to no avail I am still unable to use the NumberToDate function.  I have even tried copying the u2ltdate.dll from our older server, and this doesn't work either.  I really need to get this working as soon as possible.    I don't know if I need a 64 bit dll because it is windows server 2008 or if I don't have it in the right places.  Please help!

    Hi Warre,
    Don't put the ufl into the \windows\system32 folder. Nothing should go there now.
    I doubt this will ever work in CR for Enterprise. It's a Java Designer so the only way to make it work is to create a Java UFL.
    Search for this KBA:
    1803967 - How to make a Java UFL available in Crystal Reports 2011 Designer?
    Same for CR for Ent., you need a Java UFL.
    Only way to make this work is to convert the UFL to Java or use Crystal Reports 2011 or 2013.
    See this MS Forum post I responded to also:
    Custom Crystal DLLs with Crystal Reports 2008 for Visual Studio Run Time
    And this one:
    http://scn.sap.com/docs/DOC-35036
    And this one:
    Java UFL and VB UFL
    Try searching, there is a kbase article with a sample attached.
    And you will need a 64 bit version because some of the report processing servers may be 64 bit only but I believe the Crystal Report Processing Server is 32 bit only. It will need the UFL copied into it's \win32_x86 folder.
    Only issue you should have is using CR for Ent. to design/update/create the reports with that function. Use CR 2011 or 2013 and it should work.
    Problem is we no longer have the source code for that UFL and others, quite often they were written by Support people and therefore not saved into our code source system.
    Don

  • How to implement the function "Slow Play" using MPMoviePlayerController?

    Does anybody have idea to implement the function "Slow Play" using MPMoviePlayerController or some other indirect solutions? Thanks. Kevin.

    You can use the changeSelection(...) method to change the cell with focus.

  • Dynamic Pages using Oracle UCM i.e Login functionality

    Hi All,
    I have a function requirement that I need to build a web site using UCM and publish it on an idependent production server using publishing utility. Till this point everything is fine, but i have a dout regarding login functionality. As my whole site is static except login.
    What i understand till now is, once web site is published using publishing utility, the whole site is compiled to htm (static site), then who can i integarte login functionality in static page??
    Please provide some direction to solve the problem.
    Thanks in advance
    Amarpal

    i am on a mobile device right now so the response will be short. the short answer is yes to both questions (is it possible and do you have experience doing it). UCM workflow can take metadada values and / or other derrived or injected values to trigger wf events and routing. this applies to email triggers and templates as well.

  • How to implement "SelectAll" function in table view?

    hi, experts
    i want to implement "SelectAll" function in table view, just like the SelectAll function in ALV,how to do?
    and, can table view has it's tool bar ,may be on top of it.
    pls help and thanks a lot!!

    Search this forum. You will find plenty of threads on the same...
    Raja

  • How to implement avg function in answers or RPD

    hi,
    I need to implement this function in obiee answers or RPD..how can i do that.. please help me
    AVG(SAS.SHIPPED_QTY) OVER (ORDER BY SAS.ACCOUNT_MONTH_NO
    ROWS BETWEEN 12 PRECEDING AND 1 PRECEDING) AVG_QTY_SALES,
    thanks in advance

    Hi,
    I think you are trying to use a sql server window function here. If you are, then you could push this function to the DB itself, using EVALUATE() in OBIEE.
    Hope this helps.
    Thank you,
    Dhar

  • UFL u2lpdmtime.dll that implements this function is missing.

    UFL u2lpdmtime.dll that implements this function is missing.
    I get this error when I try to run an a report.
    I just installed Crystal Reports Version 11 on my machine.

    I am getting a similar error message in a 3rd-party program (LDRPS 10, SunGard, Inc.) that uses CR XI R2:
    "UFL 'u2lsamp1.dll' that implements this function is missing.
    Error in File C:\WINDOWS\TEMP\47b92342-bfee-4784-bad0-28a6825f3b28
    {7D171C51-0246-4492-8934-80987D66ED88}.rpt:
    Error in formula <WorkCalled>.
    'If Not IsNull({Employee.pkEmployee}) Then
    UFL 'u2lsamp1.dll' that implements this function is missing."
    It only happens if I run the report as part of a Table of Contents with other reports. It works fine if I run it by itself.
    I will let you know if I find out anything useful from the 3rd-party developer.

  • Replace function on ejb ql

    Is there a replace function on EJB QL?! I looked for, but I didn't find....
    I've got a table with a field 'field' that have some values like 'a.b.c', and I want to create a query that return this register if the user inform 'abc', like:
    select * from A where replace(field, '.', '') = 'abc'Is that possible with EJB QL?
    thanks

    Ops, sorry, I din't try it.... my fault
    Now I tried and It works.
    I posted because the first thing I do was look at the manual, and I didn't find a replace function there... so, I thought that it does work, but I didn't tried to run.
    thanks and sorry for the post

Maybe you are looking for

  • Is there anything I can do to solve this problem?!

    Hi everyone, I bought a brand new 64GB iPad 3G 2 days ago and when I turned it on, the screen that has the usb cord pointing to iTunes showed up - all well and fine. I plugged it into my Macbook using the usb that came with it, but iTunes didn't resp

  • Adding Many Items To A "Stage"

    I have a list of images in a scrolling area and I'd like the user to be able to click the image and it would appear in a "stage" area that I have (they should be able to select as many as they like). I know how to do it with one image, but is there a

  • How to call a method by clicking on a button

    hi, I have made a jsp page where I define a method toto. what the html source code for a button wich when you click it will process this method ? thanx

  • Book printing in Italy

    Just to ask if anyone know of the print quality of books ordered/printed in Italy and of any other lab that print books apple style from pdf generated in Aperture... Many thanks!

  • Unsorted bookmarks aren't showing

    Unsorted bookmarks aren't showing at all, need them to show so they can go into the right folders and for access to them.