Limiting No of Users

Hi,
In my web application project , i want to limit no of users accessing my application. there is a configuration page for inputting this value.
i can keep an application Context variable and keep increase its value while user login. and decrease the value while user logout.
But how can i control the Count , if user is not properly shutting down the application.
Hope a positive reply soon..
P(?)(?)JAVA

Hi Pooja,
Well in this case i can suggest you a workaround solution.
All you have to do is.
Create a sample SessionListener class using HttpSessionListener & ServletContextListener and then
Create a counter attribute in ServletContext at the time of Context Initialization or a static counter variable inside SessionListener Class Created By you.
Increment the counter variable whenever a new session is created using void sessionCreated(HttpSessionEvent event){} method inside the listener.
In the same ways whenever the session is being destroyed decrement the counter using void sessionDestroyed(HttpSessionEvent event) {}.
and the rest of the custimization is upon you of how many users to restrict and on what parameters & background.
you can use the links specified below of to programme your application
http://src.opensolaris.org/source/xref/sfw/usr/src/cmd/tomcat/apache-tomcat-5.5.17-src/servletapi/jsr152/examples/WEB-INF/classes/listeners/SessionListener.java
http://src.opensolaris.org/source/xref/sfw/usr/src/cmd/tomcat/apache-tomcat-5.5.17-src/servletapi/jsr152/examples/WEB-INF/web.xml
REGARDS,
RAHUL

Similar Messages

  • How to set Internet limits to particular user by gpo ?

    How to set Internet limits to particular user by gpo ?
    Thanks & Regards, Amol . Amol Dhaygude

    Hi,
    >>How to set Internet limits to particular user by gpo ?
    What Internet limits do you want to set for specific users? Group Policy user settings can be configured to apply to specific users, like via security filtering or GPP item-level targeting. The path for Internet Explorer policy settings under User Configuration
    is: User Configuration\Policies\Administrative Templates\Windows Components\Internet Explorer.
    You can also use GPP Internet Settings extension to manage IE settings and use GPP ILT to apply the settings to specific users. However, GPP settings can be edited by standard users after getting applied.
    Regarding GPP Internet Settings extension, the following article can be referred to for more information.
    Internet Settings Extension
    http://technet.microsoft.com/en-us/library/cc754649.aspxBest regards,
    Best regards,
    Frank Shen

  • What is the limited number of users?

    What is the limited number of users?

    WHile your question is a bit too vague to answer with certainty I'll start with a res[ponse and you can fine tune it if it is not what you are asking about.
    The number of users of any single product for a single user license at any given moment in time is one.

  • Restrict posting period only a limited set of users using Auth Group

    Hi all,
    Can someone help me in restricting posting period to only a limited number of users?
    Currently OB52 settings look like below:
    From Per.1  Year  To Period           From per.2   Year    To Period
        7                 2009         8                          8              2008            8
    My requirement is:
    I want to only few users to post in the 7th period and all others to post in the 8th period.
    I know this can be done via authorization group: Can someone please help me with the steps invloved in solving the same?
    Thanks in advance
    Sidharth
    Basis Administration

    Hi Alex,
    Thanks for your response!
    I have added F_BKPF_BUP object manually in the test role and assigned 0002 auth group in it.
    I have created auth group 0002 and assigned table T001B in SE54.
    Auth group 0002 is then assigned in the OB52 at the last column. This should restrict the posting for period 1 which i need to restrict for some users.
    Now as per the logic, if we dont assign any auth group, users should not be able to post for that period. But in my case user is able to post successfully via F-02.
    Please help me as we need to implement this before month end.
    Many thanks for your valuable help!
    Thanks
    Sidharth

  • HT4759 what are the limitations for PC users using iCloud?

    I am considering iCloud for storing music, photos etc.  Are there any significant limitations for PC users?  Our family employs a mix of Apple and PC devices.

    Of course, iCloud does a better job on Apple devices like iPhone, iPad and Mac, because it seamlessly works with the pre-installed apps like Mail, Contacts, Calendars, Reminders, Notes etc., but you could also use some of the features on a PC. This guide shows you, how you could set up iCloud on a PC: http://www.apple.com/icloud/setup/pc.html
    On a PC you sync iCloud Mail, Contacts, Calendars, and Tasks via Outlook, snyc Bookmarks and Photos.
    Some other Services like iWork apps (Numbers, Pages and Keynote) or Find My iPhone are missing, but accessible through the website www.icloud.com (new Chrome or Firefox needed)
    By the way, iTunes is still needed for managing your music library.

  • Limitation on adding users to the Book

    Hello folks,
    Is there any limitation on the number of users adding to a Book?
    Thanks,
    Mayank

    No limitation.

  • Increasing Email Size Limits for some users

    Hi All,
    For some users (management) i needed to arrange that they are able to send bigger files then the default 10MB limit to each other.
    I used this procedure to do so,
    https://www.simple-talk.com/sysadmin/exchange/increasing-email-size-limits-for-your-high-profile-users-in-exchange-2010/
    In a nutshell:
    Set Global Transport Org. Config to 200MB
    Set Transport Send and Receive connector to 200MB
    Created a Distribution group adding the MT members and me (for testing)
    Created a transport Rule for the 10MB limit for all users and exception for the distribution group
    (Believe me, i am not happy with the 200MB size limit)
    All seems to work but i have one issue that i cannot tackel or maybe it is by design.
    -Managemant can also send big files to all
    users who do not have this privelige, this is not someting i want, sending 100MB+ attachments to over 150 users.
    Is this by design or do i mis something?
    Thanks,
    Ron

    Hi RonGielgens,
    Attachment size in exchange has to be set on
    Global settings
    Connectors (send and receive connectors)
    Mailbox
    The global settings will affect all the others. of course connectors will affect specific servers and mailbox one user. You have to set the global to the absolute max size you want to allow in your organization.
    after you do this you will need either to set the 10MB on each mailbox
    Get-Mailbox | Set-Mailbox -MaxSendSize 10MB -MaxReceiveSize 10MB
    Then change the limit on specific mailbox
    or another way is to create a transport rule that will reject the email if the attachment size it > 10MB unless the sender/recipient is the required user or group.
    so basically create 2 transport rules
    1. reject messages sent to anyone with attachment > 10mb unless the recipient is userX
    2. reject messages sent from anyone with attachment > 10mb unless the sender is userX
    Normal case it should not allow.
    Thanks, MAS
    Please mark as helpful if you find my comment helpful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

  • Limited Connectivity for users

    Hi all,
    We have 2 WLC connected with 7 RAPs and 16 MAPs , but some users connected to some APs don't get the DHCP IP and showing limited connectivity.
    But when I restart the APs ,they are able to connect sucessfully.
    The configurations of CoreSwitch,Access Switches and WLC screenshots are herewith attached.
    Any help appreciated.
    Sudeesh

    Which APs are you restarting?  The Maps or the Raps?
    One thing you should check is the mesh path back to the RAP before & after the reboot of the AP.  That may shed some light on the issue if the MAP initially has an efficient path back to the RAP but then degrades after a while.  Is the issue happening in a specific area? 

  • Limiting Bandwitdth per user with WLC

    Hi,
    Is there anyone who can provide a deeper explanation for "Per-User Bandwidth Contracts (k)" on the "Edit QoS Profiles" menu of a Wireless LAN Controller 4402? Does it limit each value to 0 to 60 Kbps as maximum ONLY, as indicated on the Help window?
    I want to limit 512 Kbps per user (client attached to an AP) not for WLAN.
    I read http://www.cisco.com/univercd/cc/td/doc/product/wireless/hahcont/contc.htm#wp1041926 but it is not sufficient.
    I know I can do it with 3rd party equipments, but it is possible only with APs (1010, LAP1231), Cisco switches and WLC 4402?
    JVC

    Yes I think your assumption is correct. "Per-User Bandwidth Contracts (k)" limits each value at the maximum. This I think I have read in a document stating this information.

  • Setting Resource limits for Oracle user in 11gR2

    HI Friends,
    I am using Oracle Database 11g R2 on windows.
    My Application connects to the database using a schema (user1). Some times the application user sessions makes the Database usage / CPU/ IO high and affecting the performance of the Database.
    I would like to set some Limits on the Resource usage (Database and System resources) for those Application user schema (user1) to avoid the bottleneck on the Database and Server without affecting the usage of the Application on Transactions.
    How can i achieve it?
    Regards,
    DB

    839396 wrote:
    HI Friends,
    I am using Oracle Database 11g R2 on windows.
    My Application connects to the database using a schema (user1). Some times the application user sessions makes the Database usage / CPU/ IO high and affecting the performance of the Database.
    I would like to set some Limits on the Resource usage (Database and System resources) for those Application user schema (user1) to avoid the bottleneck on the Database and Server without affecting the usage of the Application on Transactions.
    How can i achieve it?
    Regards,
    DBis application 3-tier like below?
    EndUser<=>browser<=>WebServer<=>ApplicationServer<=>DatabaseServer

  • Number of connections limited to 5 users / ips...

    is there a way around this? i have to reboot to clear this up!
    why doesn't weblogic server release ips once user logs out or once ip not in
    use anymore?
    -- p

    Hi
    Note this is not meant to circumvent the license,
    but one way around this is to add a Reverse Proxy like Apache/IIS in front of weblogic(and use the BEA plugin). The weblogic server then only see's one IP.
    regards
    deepak

  • Authorization for limited vendor for user in FBL1n

    Hi,
    I have certain user in my company, to whom, i want to give t-code FBL1N access. But for some vendors only.
    Please let me know, how it can be done.

    Hi Durga
    As far as I see I can suggest you 2 options:
    1. You can create a validation with sets for users and vendors. This way you can restrict to only the t-codes you want the restriction to apply
    2. You can co-ordinate with BASIS to restrict using authorization object F_BKPF_BEK. You have to assign authorization group to vendors and give authorization to users for specific authorization groups. In this case, you cannot restrict only to FBL1N. The restriction would be applicable to all the transaction codes for the users where vendors are impacted.
    Regards
    Sowmya

  • Licence limitation for 500 users

    we use acrobat 9 pro. we have loaded pdf forms toour site. these forms are for our customers use. we've built a button on the forms that submits the form, i mean, it
    transmits the data that our customer typed on the form to our site. do i have to use a special license to do that? does your answer
    change if i use a rights extended form or a non extended right form?

    a) The limitation only applies to extended rights documents
    b) The limitation only applies to extended rights documents
    So you can use a submission button to your hearts content and not reach a limit UNLESS you have that same form with the extended rights. Once you've done that to a form you can only collect 500 instances of date whether it be through receiving the filled in form, hard copies of the form or people using a button to submit the form.

  • PDF download on website limited to app users

    Dear All,
    We are creating an iPhone tour app in Dreamweaver CS6 and want to post additional material on our website in PDF format that can be downloaded by people who purchase our iPhone app.  Is there any way to limit a PDF download on a Dreamweaver CS6 website to only people who enter a code or in some way separate themselves from others who might want to download the PDF files?   In other words, I don't want everyone to be able to download the PDF files, just those who have paid for the iPhone app and are entitled to the additional material without charge. How can I go about restricting the PDF download to those who have already paid for the app? Thanks.
    Small Town Gal

    Dear Ken,
    Thanks for your reply.  You have made me think of something.  Perhaps I should not use our regular website but create another website that was restricted only to iPhone app users with the link to the website visible only within the iPhone app.  Would creating a Facebook page offer the same download capabilities with a "like" function by the app user?
    I could also create something in Muse or Business Catalyst?
    Small Town Gal

  • Fireworks Limitations for Photoshop Users

    This little bit of reading might be of interest to those more accustomed to the interactivity that used to exist between Photoshop and Image Ready.  This comes directly from the Fireworks manual.
    Individual layer masks convert to Fireworks object masks. Group masks are unsupported.
    Clipping masks convert to object masks, but their appearance changes slightly. To maintain appearance but lose editability, select the Clipping Masks preference.
    Blending modes for layers convert to blending modes for Fireworks objects, if corresponding modes exist.
    Layer effects are retained by default. If you prefer to convert these effects to corresponding Live Filters, select the Layer Effects preference. Note, however, that similar effects and filters might differ slightly in appearance.
    The first alpha channel in the Channels palette converts to transparent areas in the Fireworks image. Fireworks does not support additional Photoshop alpha channels.
    All Photoshop color depths and modes convert to 8-bit RGB.
    Adjustment layers are unsupported.
    The help manual should have made clarifications.  Especially if your were forced to use Fireworks.  I speak to those having used a Photoshop to Image Ready workflow for all those glorious years when a task was easier.
    1.  Say good bye to your Group Masks.  Object masks are not as powerful, or useful, as layer masks are in Photoshop.
    2.  The appearances of clipping masks change drastically.  Do not even attempt to use an image if you have a clipping image
         and expect it to be exported for use as a web graphic.  Fireworks muddles the final image with blurry edges.
    3.  In any case where your Photoshop image uses blending modes expect that Fireworks will not have the corresponding mode.
         Do expect the results to be not as clear as in the original image.
    4.  Layer effects ARE NOT retained, they are MERGED into the layer.  Open a Photoshop created image using layer effects (drop
         shadow, stroke, etc.).  Your effects have become merged into the latter.  Never, never save your PSD or TIF file from within Fireworks.
         You will lose all editability, FOREVER!
    5.  Fireworks Live Filters are a sorry, sorry instance of the powerful layer effects of Photoshop.  Each and every instance tried to date has
         shown Fireworks' iteration of filters to be different from those in use in Photoshop.
    6.  If you use your own patterns in Photoshop say good-bye to them.  Fireworks gives you no way to use your own.  Only a limited
         subset of those pre-packaged with Photoshop.
    6.  Since Fireworks does not support adjustment layers, masks, paths, etc., then what happened to cross program support and
         interactivity which Adobe praises?
    Why in tarnation does Fireworks support metadata in a web graphic?  Yes, the PNG file format allows for this.  Export a TIF or PSD containing metadata information from Photoshop to a PNG file.  Look at the file in Bridge.  It has no information.  If you do export a set of images using a batch operation you will find that some of the new PNG files cannot contain metadata.
    View the generated PNGs in Bridge.  Apply a metadata template.  You will find that some of the files will not accept the template.  You will have to individually re-export the image.  The reason I mention this normal Photoshop to Bridge workflow is because Fireworks' Help is touting it without explaining that not in all cases does it work.
    If you are coming over from Macromedia then you are used to a what was once an extremely good program.  Say good-bye to it.  If you were used to Image Ready — Good Luck!  At least it never crashed for no reason.  If you are new to Adobe then expect limited 60 day support and a company looking only at your bank account.
    Adobe needs to go ahead and kill this app and include its best features into Photoshop as they have done in the past.  Then get back to allowing prototyping in Photoshop and web graphic generation as an export feature as it once was!  I don't need two prototyping programs.  What I do need is a simple, easy method of getting my Photoshop designs to the web.

    Yes, Linda Nicholls is right. You will find FW better than PS.
    I also use FW only for anytype of graphics.

Maybe you are looking for

  • Apple dvd player / external dvd drive issue

    i recently bought a LaCie d2 external dvd drive, since my desktop g4 only has an internal cdr drive. I am running osx 10.4.3, which i installed through this dvd drive. yet now, when i put a DVD movie into the drive and try to open Apple DVD Player, i

  • Apple USB Ethernet (A1277) not working with Mavericks on MBAir 2012

    USB Ethernet works on other computers (Mac Pro) and did work with this 2012 MBAir with OS X 10.8. Any ideas? Other brand USB ethernet adapters  (Cisco and generic Ebay USB 2.0 Gigabit adapter) work fine with this MBAir and Mavericks.

  • SWF skin shows in IE (but no background clip); both show in preview?????

    Using CS4-- I am new to Flash (2 weeks in).  I have a swf in a tooltip (that appears w/cursor over the reel image).  When I preview the page, the skin and the clip are both visible and work correctly.  However, when I load the page and try to view it

  • Problem Loading WSDL in External Definition

    Hello people, i'm having some problems When i'm Importing the WSDL in external definitions, the Messages are not being Recognized, it doesnt load the message structures, if i try in any other program that uses the WSDL like SoapUI, the wsdl works fin

  • Index going to SYSTEM tablespace?

    I've set up a basic_storage preference where INDX is my tablespace name as follows: BEGIN ctx_ddl.create_preference('MYSTORE', 'BASIC_STORAGE'); ctx_ddl.set_attribute('MYSTORE', 'I_TABLE_CLAUSE', 'tablespace INDX storage (initial 32K)'); ctx_ddl.set_