Spam Control in Servlet

Hi,
          We are trying to build spam control into one of our
          servlets to reject all subsequent requesters if there
          are currently 5 pending requests being served.
          We realize that a servlet with SingleThreaded Mode with
          the SingleThreadedServletPoolSize set to 5 can probably
          serve this purpose. Could someone please confirm that?
          What kind of response will the requester get when a
          server has reached its capacity of 5?
          If we would like the rejection message to be
          application-generated (not WebLogic-generated),
          I guess we have no choice but to create threads
          from within the servlet for that. Any better idea?
          Thanks in advance!
          Regards,
          Howard
          

In 7.0, just put together a filter. Register a count for the IP address in a
          singleton. Send an error back if you have >5.
          Peace,
          Cameron Purdy
          Tangosol, Inc.
          http://www.tangosol.com/coherence.jsp
          Tangosol Coherence: Clustered Replicated Cache for Weblogic
          "Howard" <[email protected]> wrote in message
          news:[email protected]..
          > Hi,
          >
          > We are trying to build spam control into one of our
          > servlets to reject all subsequent requesters if there
          > are currently 5 pending requests being served.
          > We realize that a servlet with SingleThreaded Mode with
          > the SingleThreadedServletPoolSize set to 5 can probably
          > serve this purpose. Could someone please confirm that?
          > What kind of response will the requester get when a
          > server has reached its capacity of 5?
          > If we would like the rejection message to be
          > application-generated (not WebLogic-generated),
          > I guess we have no choice but to create threads
          > from within the servlet for that. Any better idea?
          > Thanks in advance!
          >
          > Regards,
          > Howard
          

Similar Messages

  • Spam Control doesn't seem to work for 520-336-5675 "Mortgage" Spam Text

    I made a call to Verizon and they can't seem to stop this number from Tuson either. I got the third round of calls in the last few days to three different Family Lines a few minutes ago. Twenty cents doesn't seem like much, but an extra one or two dollars a month mounts up. The message says that they are responding to a request from me, but I don't have a mortgage to re-do!

    Good evening.
    Did you add this number under Spam Control or Call and Message Block?  If you add the Call and Message Block, you will be able to add up to five 10-digit numbers to the block.  This will prevent a number from being able to call or text your phone.  Below I have provided you with the steps to add this block, as well as unwanted numbers.  
    Sign in to "My Verizon" using your [Account Owner] number and do the following: 
    Select  [Safe Guards] tab
    Select [Call & Message Blocking] tab
    Add/ remove numbers
    [Save Changes]
    If you need additional assistance, please send me a Private Message with your 10-digit mobile number.  I will be happy to help you.
    I hope this information is helpful. 
    Thank you,
    VanessaC_vzwsupport
    Follow us on Twitter www.twitter.com/vzwsupport

  • More Spam Controls Please!

    Dear Verizon,
    Is there any way that you can be proactive on spam controls for SMS?
    We have been begging for this in this forum for years now.
    I just don't see that this is happening. I have trawled your website and cannot even find a place to report spam.
    You allow us to enter 5 numbers that expire in 90 days, but I have so many more messages from spam phone numbers (not email addresses) than that.
    Can we block text messages from entire area codes? - Nope
    (if so, I need to block area codes  fouronefive and sevenohtwo and twozeronine)
    Can we get text messages blocked with the text: 2end reply STOP
    (I mean, this is really obvious spam folks)
    Can we block messages that advertise Gas cards, Gift cards, get paid for shopping or other such phrases?
    Can we block any message with an eightsevenseven or eightsixsix phone number in the text of the message?
    This is what I have this month HOW DO WE GET IT TO STOP!?!:
    ON                 From number          text and number to call
    31-Aug 415-513-8190 Call us now to receive your $200 Gift Voucher! Call 877-775-0527
    28-Aug 702-358-4997 Attn: We are looking for shoppers to get paid to eat & shop! Pay up to $50/hour. For current jobs Call 866-749-1023
    25-Aug 702-577-6512 Call us now to receive your $200 Gift Voucher! Call 877-775-0527
    21-Aug 415-713-3971 Attn: We are looking for shoppers to get paid to eat & shop! Pay up to $50/hour. For current jobs Call 866-749-1023
    17-Aug 415-794-7215 Call us now to receive your $200 Gift Voucher! Call 877-339-7715
    13-Aug 702-415-4085 Call us now to receive your $200 Gift Voucher! Call 877-339-7715
    9-Aug 209-322-5270 Call us now to receive your $200 Gift Voucher! Call 877-339-7715
    3-Aug 415-579-0387 Call us now to receive your $200 Gift Voucher! Call 877-339-7715
    28-Jul 209-224-6380 Attn: Call now to receive ur $50 Gas Card & $20 Shopping Card! Call 877-339-9225
    20-Jul 415-490-8134 Thanks for visiting our site! Claim your $100 Gift Card now. Go to www.MyGiftASAP.com 877-339-2683
    Verizon, please help!

    SuzyQ wrote:
    Wow, I'm not sure how you got so lucky to be getting all that....I don't get anything like that?
    209 and 415 are area codes close to where I live - I couldn't block all calls from those area codes because I have lots of folks I know and on my contact list with those area codes.  There are lots of legitimate phone numbers in those area codes.
    Text STOP to each one.  (Not sure it would help though).  Are you getting charges for Premium messaging on your bill?  Put a block on premium text messaging (you can call CS to do this); it will block a lot and prevent unwanted charges on your bill.
    Not sure what else to tell you, but don't give your cell # to anyone you don't want calling you.....
    209 is the area code for Stockton, Merced, Modesto, San Andreas and Central California, California
    415 is the area code for San Francisco,Sausalito, San Rafael, Novato, San Quentin and the Bay area, California

  • Spam control?

    I need spam control for a form I made in Muse. What do I need to do? Designed it in Muse. . . . getting all kinds of spam. . . . I'm attaching a photo. Help!

    See <Adobe Muse Help | Working with Form Widgets>

  • How Can I Get SPAM Control On iPad Email?

    I have a shared email account on my Mac and iPad. When checking email on the Mac no spam, when checking email on iPad Spam Galore! Is spam control possible on the iPad or is this something your have to live with?

    I see, though I would still believe that Verizon would have a similar email address to which you could forward the spam message. As a bit of a longshot o wuld try to call Verizon tech support and see if they have any way to add email addresses to the universal spam filter. Don't give up hope, we all know dealing with any kind of repetitious spam can make our iPad user experience less than exciting. Cheers!

  • Spam Control and a Personal Security protector

    I still use my old dinasour, AOL, (don't ask me why), and the Desktop AOL is not compatible with Snow Leopard, so the AOL spam Controls won't work. I can do a workaround by going to the internet and getting into AOL Mail, and do it that way, BUT IT'S A PAIN!!
    Does anyone have a favorite, reliable application I can buy or download that would prevent spam from getting into my email?? I am also looking for a personal security application...
    Suggestions, please?
    Paty

    Hi Paty!
    I'm still using AOL For Mac OSX Version 10.3.7; available from here AOL Downloads For Mac.
    At the bottom of the All-in-One Software column there is a link to legacy software which will start the download immediately.
    It has an excellent Spam filter and maybe will still be compatible with Snow Leopard.
    ali b

  • Java Controls, JSPs, Servlets and Filters

    Hi, everybody.
    How can i invoke a custom java control from a JSP ?
    How can i invoke a custom java control from a Servlet or Filter ?
    I've tried using WlwProxy.create(controlInterfaceClass, request) but i don't know if this is the "official and recommended" way of do it. By the way, invocation is falling because Workshop is trying to find a .jcx file (i have only a .jcs).
    Thanks in advance.

    Hi Vimala.
    All the business logic of my project will be implemented as Java Controls (that's the reason of my questions about Controls' accessibility):
    1. From a JSP
    A) I can use netui tag <netui-data:callControl>
    B) I can call a page flow to execute Java Control and to populate http request (or session) within some Java Beans. After this, the JSP will "consume" these Java Beans.
    2. From init method of a startup Servlet
    I can't call a Java Control from here. Can i implement analogous feature using Builtin Timer Control ?
    3. From service (doGet/doPost) method of a "ordinary" Servlet
    I can call a page flow to execute Java Control and to populate http request (or session) within some Java Beans. After this, the Servlet will "consume" these Java Beans.
    4. From filter method of a Servlet Filter
    This is the "trickest" one, but i really need to access business logic from here.
    I've found an way (and i'm not proud of how i'm doing this):
    i) The filter will populate a request attribute within information about which method of which control will be executed. Method parameters values will be stored too;
    ii) The filter will "forward" request to a Page Flow, using a HttpServletRequestWrapper and a "dummy/empty" HttpServletResponseWrapper. This is really odd. I'm not sure if a filter should try to "forward" or to "include" another webapp resources. When doing this, you should be aware about issues like "recursion" and configurations like filter-dispatched-requests-enabled (http://edocs.bea.com/wls/docs90/webapp/progservlet.html#160016);
    iii) The Page Flow will receive the new request, "unpack" invocation data, execute appropriate Java Control, "pack" the result in the http request and forward to an "empty" JSP;
    iv) The "execution control" will be returned to the filter. This filter will "discard" the contents of HttpServletResponseWrapper, "unpack" the result data out of the http request and use it.
    To "hide" all this mess of my filters and Page Flows, the filters will use a "dynamic proxy" to act as "Page Flow clients" (this proxy will look like as an ordinary Java Control to my filters). The Page Flows will use an helper class to store Java Controls (at onCreate lifecycle method), to use them (at begin method) and to discard/release them (at onDestroy lifecycle method).
    I've tested this and it has worked. I'm not sure about performance and multithread behaviour of this solution.
    I'm accepting any suggestion (official or "unofficial") about how to make this easier.
    Thanks !!!
    Sample code:
    == JavaControlClientProxy.java ==
    public Object invoke(Object proxy, Method method, Object[] parameters)
        throws Throwable {
        Object result = null;
        if (LOG.isDebugEnabled()) {
            LOG.debug("before: " + method.getName());
        try {
            HttpServletRequestWrapper newRequest =
                 new HttpServletRequestWrapper(this.request);
            HttpServletResponseWrapper newResponse =
                 new HttpServletResponseWrapper(this.response);
            InvocationData invocationData = new InvocationData();
            invocationData.setCaller(this.javaControlCaller);
            invocationData.setTarget(this.javaControlInterface);
            invocationData.setTargetMethod(method);
            invocationData.setParameters(parameters);
            newRequest.setAttribute(InvocationData.ATT_NAME, invocationData);
            try {
                RequestDispatcher dispatcher = this.request
                    .getRequestDispatcher(this.javaControlServerPath);
                /* include doesn't work (.jpf ?) */
                dispatcher.forward(newRequest, newResponse);
                invocationData = (InvocationData) newRequest
                    .getAttribute(InvocationData.ATT_NAME);
                if (invocationData.getException() != null) {
                    throw invocationData.getException();
                } else {
                    if (invocationData.getReturnValue() != null) {
                        result = invocationData.getReturnValue();
            } finally {
                newResponse.getWriter().close();
                newResponse.getOutputStream().close();
            return result;
        } finally {
            if (LOG.isDebugEnabled()) {
                LOG.debug("after: " + method.getName());
    }== ControlCallController.jpf ==
    * This method represents the point of entry into the pageflow
    * @jpf:action
    * @jpf:forward name="success" path="empty.jsp"
    protected Forward begin()
        try {
            this.controlServer.execute(getRequest());
        } catch (IllegalArgumentException e) {
            try {
                /* Avoid external access to this resource. */
                getResponse().sendError(HttpServletResponse.SC_NOT_FOUND);
            } catch (IOException e1) {
                throw new UnhandledException(e1);
            throw e;
        return new Forward("success");
    protected void onCreate() throws Exception {
        super.onCreate();
        this.controlServer = new JavaControlServer();
        this.controlServer.addControl(MyControl1.class, this.myControl1);
        this.controlServer.addControl(MyControl2.class, this.myControl2);
    protected void onDestroy(HttpSession arg0) {
        this.controlServer = null;
        super.onDestroy(arg0);
    }== JavaControlServer.java ==
    public void execute(final HttpServletRequest request)
        throws IllegalArgumentException {
        InvocationData invocationData = (InvocationData) request
            .getAttribute(InvocationData.ATT_NAME);
        if (LOG.isDebugEnabled()) {
            LOG.debug("InvocationData " + invocationData + ".");
        if (invocationData == null) {
            throw new IllegalArgumentException("Http request doesn't contain "
                                               + InvocationData.ATT_NAME + ".");
        Control targetControl = (Control) this.controlMap.get(invocationData
                                                              .getTarget());
        if (targetControl == null) {
            throw new IllegalArgumentException("Missing control "
                                               + invocationData.getTarget() + ".");
        Method method = invocationData.getTargetMethod();
        try {
            Object returnValue = method.invoke(targetControl, invocationData
                                               .getParameters());
            invocationData.setReturnValue(returnValue);
        } catch (IllegalArgumentException e) {
            LOG.error("Could not invoke method", e);
            throw new UnhandledException(e);
        } catch (IllegalAccessException e) {
            LOG.error("Could not invoke method", e);
            throw new UnhandledException(e);
        } catch (InvocationTargetException e) {
            LOG.debug("An error has ocurred when invoking method", e);
            invocationData.setException(e.getCause());
        request.setAttribute(InvocationData.ATT_NAME, invocationData);
    }

  • Grid Control in Servlet?

    Hi guys,
    I am new in servlet, Please advice how
    can i have GridControl in servlet?
    Thx
    Ali

    Ram (guest) wrote:
    : Hi,
    : I am developing an application which has a client side applet
    : and talking to a servlet which hold the database connection.
    : I am able to coonect the applet and from the client applet If
    i
    : pass aquery I get the output back in the applet in HTML
    format.
    : My problem is , that i am using a grid control in my
    applet.How
    : do I specify the query dataset for the grid control, since the
    : conn is in the servlet in the middle tier and also how do i
    : populate the grid control with the data I get from the servlet
    : which at present is in formatted HTML.
    : In the online manual I could find that we could stream the
    : querydataset object itself using but I am not able to find the
    : class,methods or interfaces for DataSetData which implements
    : io.serializable.
    : What is the best way to do this, Can u please help me
    : Thanks
    : Ram
    1. Have the Servlet return a result set instead of an html table
    2. Use the Database.resultToDataSet(resultset) method to provide
    a data set
    3. bind the grid control to that data set gridcontrol.setDataSet
    (dataset-returned from step 2.)
    Federico
    null

  • RequestDispatcher.include() transfers control to servlet

    I have a servlet that calls a second servlet to include additional HTML output to the browser. The first servlet does some setup, writes some HTML to the output, and then calls the second servlet via the RequestDispatcher.include() method. After the second servlet is done doing it's work, the first servlet does some final HTML output to the browser and we're done.
    The problem is, after the second servlet writes it's HTML output to the browser, it doesn't return control to the calling servlet. Therefore, the calling servlet doesn't do any of the final processing that I need.
    This isn't the correct behaviour is it? What can I do to accomplish what I'm looking for.
    Thanks!!!

    rk43:
    The scenario you describe should work according to the Java Servlet Specification. So if you didn't do anything wrong, it might be the problem of you servlet container. Since I don't have you code, I'd like to post my test case. You can test it in your environment.
    package com.test;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class FirstServlet extends HttpServlet {
         public void init(ServletConfig servletConfig) throws ServletException {
              super.init(servletConfig);
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              PrintWriter out = response.getWriter();
              out.println("<html>");
              out.println("<head></head>");
              out.println("<body>hello, world");
              RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/servlet/com.test.SecondServlet");
              dispatcher.include(request, response);
              out.println("ok, let's finish");
              out.println("</body>");
              out.println("</html>");
              out.close();
    package com.test;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class SecondServlet extends HttpServlet {
         public void init(ServletConfig servletConfig) throws ServletException {
              super.init(servletConfig);
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              PrintWriter out = response.getWriter();
              out.println("go, go, go");
    }     Song xiaofei
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

  • Controlling JSP/servlet output buffering

    I'm doing some performance testing on some JSPs and I need to be able
              to separate client side rendering/javascript execution time from
              server side execution of the (JSP-generated) servlet.
              The normal way for the servlet generated from the JSP to behave is
              that the output stream to the browser is buffered - that is, as the
              servlet generates output it is written to the buffer in chunks and the
              buffer is written to the browser in chunks. On all but the shortest
              pages the content from the bottom of the JSP hasn't even been
              generated yet at the time the buffer starts writing to the browser.
              I want to turn this behavior off. I want no output sent to the browser
              until the whole output is generated. This way I can put timers in my
              client side Javascript and know they are measuring only the client
              side execution time, not the server side.
              Does anyone know how to do this?
              Eliot Stock
              Premiere Retail Networks
              San Francisco
              

    Hi Eliot,
              you can use the page directive's buffer and autoFlush attributes to
              control the size of the output buffer.
              <%@ page buffer="100kb" autoFlush="false" %>
              Here's a link:
              http://java.sun.com/products/jsp/tags/10/syntaxref10.fm7.html
              Nils
              Eliot Stock wrote:
              >
              > I'm doing some performance testing on some JSPs and I need to be able
              > to separate client side rendering/javascript execution time from
              > server side execution of the (JSP-generated) servlet.
              >
              > The normal way for the servlet generated from the JSP to behave is
              > that the output stream to the browser is buffered - that is, as the
              > servlet generates output it is written to the buffer in chunks and the
              > buffer is written to the browser in chunks. On all but the shortest
              > pages the content from the bottom of the JSP hasn't even been
              > generated yet at the time the buffer starts writing to the browser.
              >
              > I want to turn this behavior off. I want no output sent to the browser
              > until the whole output is generated. This way I can put timers in my
              > client side Javascript and know they are measuring only the client
              > side execution time, not the server side.
              >
              > Does anyone know how to do this?
              >
              > Eliot Stock
              > Premiere Retail Networks
              > San Francisco
              ============================
              [email protected]
              

  • How can we pass the control from servlet to portlet ?

    Hi,
    we use PortletRequestDispatcher.include method to call the servlet.
    In my servlet, I have the following form information.
    out.println("<form method=\"post\" action=\"http://abc 40acce5.3a.com/portal/dt?display=Command\">");
    out.println("Enter value: ");
    out.println("<input type=\"text\" name=\"UserName\" value=\"\">");
    out.println("<center> "); out.println("<input type=\"submit\" value=\"Go Back Portlet\"> ");
    out.println("</center> ");
    out.println("</form>");
    When user click the submit button, the servlet will go to portlet first, then go to another page.
    is the url (action="http://abc40acce5.3a.com/portal/dt?display=Command) correct ?
    if not, what url we should use ?
    Can you help ?
    Thanks!

    Oh I thought that you have selection-screen and again you are working on dialog programming.
    if you want to use select-option directly in module pool then it is not possible.
    but you can do other way.
    create two varaiables
    data : v_kun_low like kna1-kunnr,
             v_kun_high like kna1-kunnr.
    use these two variables in layout ,let user knows that he can not give options like gt,lt,eq ,it will be always BT.
    and also when you see normal report program,you can use multiple values in either low or high,but here it is not possibel.
    use can enter only low value and high value.
    when you come to program point of view
    declare one range
    ranges r_kunnr for kna1-kunnr.
    do the coding like
    r_kunnr-low = v_kun_low.
    r_kunnr-high = v_kun_high.
    r_kunnr-options = 'BT'.
    r_kunnr-sign = 'I'.
    append r_kunnr.
    now you can use r_kunnr in select query ,it will work like select-option.
    other than this there is no option.
    Thanks
    Seshu

  • Spam control THAT WORKS HINT HINT VERIZON LOL

    What do I need to do to make Yahoo SpamGuard Plus work?
    SpamGuard Plus is a feature that automatically filters suspected spam to your Spam folder. SpamGuard Plus also learns specifically what you consider spam and not spam, and filters those messages to the appropriate folder. The more you train the filters by marking messages as Spam orNot Spam, the better the filters will work for you.
    You can view and manage SpamGuard settings in the Business Email Options:
    Sign in to your Yahoo Business Email account.
    From the main Yahoo Business Mail page, click the Tools (gear) icon link in the upper-right corner of the page. 
    Business Email Tools (Gear) Icon
    Select "Mail Options" from the pull-down menu. 
    Business Email Tools Pull-Down: Mail Options
    The General mail settings should be displayed. If they are not, click the "General" link located in the left column. 
    Mail Options Menu: General
    In the Spam Protection section, use the "Empty Spam folder" pull-down menu to select how frequently messages are deleted from the Spam folder. 
    General Mail Settings: Empty Spam Folder Pull-Down Menu
    Then select your preferred option in the "Show images in emails" pull-down menu. 
    Mail Options: Show Images Pull-Down Menu
    Click the Save button. 
    General Mail Settings: Save Button
    Note: This feature is not available to users with POP-only email addresses.
    Email this page   Print this page  
    Was this article helpful?
    Yes
    No

    I made some progress with regard to the Filter on the column(s) that are configured to be Date values. Managed to get the Filter to display the correct Date picker by implementing a inputDate component (with a converterDateTime operation) in the Filter facet.
    However, I tried to add a converterDateTime operation on the outputText column (this is a read-only table) and the column still appears to be displayed as a String. As a result, the filter does not function correctly (obviously).
    Is there a way to change the type on the VO dynamically so that this will reflect into the View when the table column is rendered? Or am I barking up the wrong tree...?
    Cheers.

  • IPhone and Spam controls

    Is there a reason you can no longer use the five numbers with the iPhone? I have one number that I want to block and it's saying it isn't avaiable on an iPhone. Odd?

    Alarm clock will still work if you switch the silence button on the side of the phone. You can turn off the mail notification sound by going to settings > Sounds > New Mail (off).
    Hope that helps.

  • Is there a way to control spam on my iPad?

    Hi all,
    I'm being bombed one a minute at the moment - last 2 days. Don't know how or why. contacted my ISP - no real help there except thy asked me to forward a sample to and spam databse URL. Have put filters on my macbook pro and its OK. Ipad is choked??? Should I sync or not sync? The rules I have in place are to move email with a certain subject to spam folder, and delete - this is working well on my macbook pro. Shouldn't the action of delting the email then be "seen" by the ipad??? Have tried syncing and not syncing that particular emaill account that is being affected. Any suggestions???
    cheers
    Steve

    Yes I have been using my ISP's web mail  for a couple hours and it does have a kind of spam control - very basic no rules. you just click a box for each email and then a button marked spam. There are no way to create rules for spam. I have been manually marking mails that come in. This does fix the problem, but its not a solution if it has to be done manually. I
    will contact the ISP tomorrow and have it escalated - and hopefully a filter csn be done on the mail server. Never had anything like this in 18 years on the net????
    i've been wracking my brain rying to figure out where this has all started - twitter is the culprit. 

  • Sample controler. servlet code wanted

    Dear All
    Can some one please mail me a sample controler.jsp / Servlet code preferable a professional one with session tracking.
    [email protected]
    Thanks in Advance

    Try Struts from jakarta.apache.org
    It blows out any other controller from the planet
    HTH
    Trajano Roberto

Maybe you are looking for

  • Can't restore messages from iPhone 3GS to iPad mini

    Hello, I tried to transfer informations from my iPhone 3GS to my new iPad mini via iCloud backup with no success. Once restore is completed, some data is missing on the iPad, like messages SMS and images. I think it's normal that photos won't be rest

  • Forms going read-only in Workbench

    Has anyone else had a problem with forms going read-only unexpectedly in Workbench ES? With no one else logged-in to the server, I'm experiencing intermittent errors where the current form I am working on suddenly thinks it is a read-only document an

  • Net Price does not reflect on Consignment PO even after maintaining info re

    Dear Experts, I have created consignment PO but the net price does not reflect on it. I have already maintained valid consignment info record for this material with reference to standard purchasing organization in ME11. Would appreciate your views ..

  • Certain websites inaccessible from Safari & Firefox

    In trying to access Edward Jones website, all I get is the spinning beach ball followed by a "could not locate server" error. However, when I bring up IE 8 in Windows 7 (running in parallels - same machine), everything works as advertised. We are abl

  • Bluetooth keyboard needs constant pairing

    So I bought a wireless keyboard last weekend as well as a Graphire 4 pen tablet which included a wireless 2-button mouse with scroll wheel. Once I set up the keyboard and entered the code, everything worked fine. Installed the Wacom tablet and it als