Form submission email notifications now being sent with low importance - E10 Users

This is a new thing that we've noticed. Is there some way that we can make it back to normal or is their something I can change in the settings to make it not be set to low importance? Thank you,Anita

Hi Anita, I just noticed the same thing. I'm hoping someone has the answer. Thanks for posting the question. Janneth

Related

automatically updating a web page?

Hi i have a web application. Three clients john,bob and alice are viewing the web page of that application. Now john posted a message to bob using the web app.The web app stores the message in the database. Now as soon as it is saved in the database, immediately after john posted a message, The message has to appear on the bob's page that is currently being viewed without bob refreshing the page. Is this possible in java/j2ee? 
One of the basic ways is to use Timer (window.setInterval) , poll the server using AJAX mechanism and refresh the data from the server (which polls the DB for the change in time stamp since you last polled ) . It would basically be a client pull rather then a server push having some time lag for sure .
But recently came across server push technology for HTML5 , may be worth looking for you
http://today.java.net/article/2010/03/31/html5-server-push-technologies-part-1#sse
Edited by: EJP on 18/02/2013 14:32 
Muralidhar wrote:
Is this possible in java/j2ee?You're asking the same exact question in several different threads, slightly differently worded.
We already told you that it's possible and there are several ways to do it.
Are you going to ask the same question over and over, until someone writes the code for you? Or will you actually make an effort yourself? 
You're asking the same exact question in several different threads, slightly differently worded.
We already told you that it's possible and there are several ways to do it.sorry if my question is not self explanatory. I have not asked on any other thread about this.
My previous question was how to get the posted comment on to his page who posted it. (on face book comments). I understood how that can be done. I am clear with that. Now my question is not about getting the message on to his page who posted it.
It is about somebody posted the message and it has to display on some one else page. I made clear in my post that the page should not be refreshed, I don't want to poll as well. no ajax nothing. when discussing about "face book comments" on the other thread one person just suggested me to look at "websockets" for something like this. I just want to ensure that there is no way or there is way in java to meet my requirement without using any third party technologies and also "websockets" is being standardized now and only supported by recent versions.
If you have seen me asking the same question on multiple threads can you refer the threads that i have asked this question so that i wont ask or wait for some one to reply if it is already answered.
as you said
Are you going to ask the same question over and over, until someone writes the code for you? I don't have any intentions of this sort and i am not here to waste your and my time. I know that both are (your and my time)precious and I respect everybody who keep effort in answering the questions here. 
I think you might be wasting your time by starting with unrealistic requirements. No polling? No AJAX? Why not? 
DrClap wrote:
I think you might be wasting your time by starting with unrealistic requirements. No polling? No AJAX? Why not?see if i use Ajax i have to go for polling. with polling we might be wasting the resources. most of the time there might not be any updates. And my requirement is simple and common. i am just asking when some one posted a message is it possible to display the message to the person whom it is intended without client making requests (polling) in any kind.
I have seen this happening in gmail. so trying to understand how this can be done. 
Depends on what technologies you already have or where you are going to deploy to. pub/sub pattern could work with some appservers (weblogic) supporting an http pub/sub server. Some appservers already have reasonably stable implementations of websockets. It's unlikely that anyone is going to suggest the best approach for you here. You need to spend time researching the documentation of your current products to find out what is applicable for your application needs. 
Is supporting websockets part of the j2ee server spec? 
JSR 356 is targeted at EE7 http://jcp.org/en/jsr/detail?id=356 
Done some homework. I think websockets will solve my problem. jsr for websockets is still active so i think it still have to be finalized. Anyways thank you all. 
Muralidhar wrote:
Done some homework. I think websockets will solve my problem. jsr for websockets is still active so i think it still have to be finalized. Anyways thank you all.If the updates are not that frequent, AJAX polling will probably be the better option to go with. AJAX is after all just javascript. If you need frequent, low latency updates (think gaming sites), you would need websockets. Also websockets are an evolving technology, so be aware of your users client side setup before heading down the path of websockets.

Disable Ctrl+Atl+Del key

Can any body help me to Diable Ctrl+Alt+Del with Java Programming 
Not possible.
It's a low level event that always gets intercepted by the operating system. 
have u got the answer yet? if s plz let me know...Ramana
ramanaraopr#yahoo.co.in 
Two things:
1) never be so stupid again to post your email address to a public forum
2) it's still not possible. And neither should it be. Windows still hasn't changed within the last two years.

email notification depending on date

Here's what I need to do: I need compare an "Expiration Date" for various rows, compare each one to the current date and if the difference is less than 2 weeks, I need to send an email for each row.
I'm looking for some general guidelines on how this is done. Also, I know I can set up a Startup job on windows but I'd rather have the application do everthing on it's own. 
JDBC and JavaMail. That's assuming that the "rows" are in some kind of an SQL database and they aren't, say, the "rows" in an HTML table or a Swing JTable. 
Do you have some specific Java-related questions?
The forum is not a "post your specifications / homework here and we'll do the rest for you" place. 
A little dated but still a good overview of Java Mail:
http://www.javaworld.com/javaworld/jw-06-1999/jw-06-javamail-p2.html
Also, do a Google search to see what is new in the newer versions. 
I'm not doing any homework. I am a beginner and have limited experience. I am using the MVC model 2 architecture and I'm not quite sure how to fit this business requirement in. I don�t understand why some people automatically take this �do your own hw attitude� with beginners. Anyway�
Here's the situation:
I�m creating a simple �Domain Registration� app that stores information about registered domains and displays it. The issue is that I need to create a script that sends out an email when the domain�s expiration date is two weeks away. Of course I could have the application check the expiration date for each domain and then send an email depending on whether or not the exp date is two weeks away, but the issue is that I need to have it do this without having to do it manually. In other words, once I run the app, it should do a check for the exp dates in the database and set timers for the emails to go. I was looking at the Timer class but still don' t know where/when to start the timer.
I�m just asking for generic instructions on how to go about doing this. I don�t need specific java answers because I know java. This is a logic and experience question more than anything else. I hope this helps but if anyone else wants to give it a shot and you need more info let me know and I�ll do my best to give you as much of it as possible. 
also, i should mention that i've set up the bean that send the email and my own smtp server so sending the email works. I just need to set up some sort of script that automates the process of sending the email when it needs to be sent. Thanks!
Alex 
I don't see what use a Timer would be here. I would just write an extremely simple application that queries the database for domains whose expiration date is two weeks away, and send an e-mail to each such domain. And I would run that application daily. Your operating system has a facility for running jobs daily. 
Thnx, that was my plan b, just wondering if there is a better way to do it so that the application doesn't depend on the operating system to run the check. Although it's starting to sound like that's the accepted way to do it and really that's all I was asking. What's the typical way to go about doing the check. THank you for your help, I think I might just do the way you mentioned but if anyone else has a diff approach i'd still love to hear it. 
This is what I was looking for, in case anyone else reads this and needs an explanation:
http://forum.java.sun.com/thread.jspa?forumID=31&threadID=691307

Mstor -0.9

Hi,in order to save emails on my server,i downloaded this third party tool from this website called
Mstor-0.9 .But the documentation given is only about classes.There is no illustration of any code
which could help.If anybody has worked on this.Please let me know.?
This is the link from where i downloaded
http://mstor.sourceforge.net/ 
Please i am waiting for u all ........ 
It's not a paid consultancy, Adi.
Either nobody knows about the product you're citing or they're not interested in your question. In either case, you just have to be patient and accept the possibility that you'll have to answer it yourself.
%
The above product is stated in java.mail.com third party tools. 
I haven't used it, so I can't help.
Bad news - that might mean nobody's interested in your question.
You only waited 30 minutes before crying. You can't determine how soon an answer will arrive.
Is your application still having problems sending e-mail?
%
Application now can send/retrieve email and download/include attachments also.It is also acceptable
that for the first time it will take time to retrieve new mails from server (viz. when attachment size is large).
But even on subsequent times servlet takes same amount of time in opeing the inbox ie retrieving the same contents again and again
Application now can send/retrieve email and
download/include attachments also.Very good - you've made a lot of progress.
It is also
acceptable
that for the first time it will take time to retrieve
new mails from server (viz. when attachment size is
large).But even on subsequent times servlet takes same amount
of time in opeing the inbox ie retrieving the same
contents again and againIt sounds like you're expecting that you should pay the price for retrieving contents just once.
But unless you cache the contents that won't be true between requests for a single client. And it can't be true at all between multiple clients, because their requests are unrelated.
What does Mstor do for you? I'm not familiar with it.
%
Extra Extra!
This just in! Nobody care's about Adi1000's problems. So far he has written here practically every day with a new (or an old) problem, which makes me wonder if he has written any code himself.
That's it, go back to work people. 
Mstor does the same 
Kayaman please send me a code to develop a SMTP server and create SMTP protocol.I would agree
then that Mr Kayaman has only learnt to work on his behalf.If your answer is no then slap yourself
50 times. 
Extra Extra!
This just in! Nobody care's about Adi1000's problems.
So far he has written here practically every day with
a new (or an old) problem, which makes me wonder if he
has written any code himself.
That's it, go back to work people.Okay. (shuffle, shuffle)
%
which makes me wonder if he has written any code himself.This is the answer to your remark.I would say i have written 60% of coding on my own.40% on standards
that are adopted practically which i cant change.
It sounds like you're expecting that you should pay the price for retrieving contents just once.
But unless you cache the contents that won't be true between requests for a single client. And it can't be
true at all between multiple clients, because their requests are unrelated.At least acknowledge that what you're asking might not be possible and stop worrying about how much of the code you've written.
%
No i feel it must be possible otherwise java-mail is of no use for enterprise development.I just wonder how i skipped this special section of asking javamail related question.Thanx.I am going there for posting now. 
No i feel it must be possible otherwise java-mail is of no use for enterprise development.It doesn't matter how you feel. It's not about feelings, it's about understanding how HTTP works.
Maybe the problem is that you don't understand HTTP very well.
%

how to delay on this situation?

Hi all;
I want to implement a session based flood control...when the flood is detected i want the servlet to be delayed for some seconds and then keep running.
does this cause any cpu loads?or is it logical?please give me an idea...
thank you 
I don't think I understand the question. Do you have some technical meaning for "flood" here, or are you talking about actual water?
Either way, what do you mean by the servlet being "delayed"? And why? And what's that got to do with the flood anyway?
I'm very confused. 
flood means posting too frequently here...For example if a user tries to post comments over the limits,its flood.
limits will be defined by me...(for example over 5 posts in a minute will be defined as flood) 
Ah, that makes loads more sense, thanks.
The principle of putting the thread that's servicing the incoming request is sound, but a problem arises if your malicious user sends multiple requests simultaneously.
You need to arrange to discard the "spare" offending requests, because if you create and block a thread for all of them that will cause you to run out of resources.
(edit) You don't necessarily need to use a Session, but you DO need to uniquely identify your incoming users. That can be by cookie. You could also take the approach of blocking by IP address (that can cause problems when one IP address is shared by a large number of users). 
thanks for your recommendations...but if the user disables cookies from browser then my solution wont work...
i think it can be done with sessions...when flood detected the page will be redirected to a warning message like "plz try again later" and without delaying the thread...
what do you think? 
i think it can be done with sessionsWhich proves only that you don't know how they work. How do you imagine the server keeps track of which user owns which session?
Bingo: generally a cookie (look for JSESSIONID). There's no quick fix here.
All the mechanisms that can be used to maintain a distinct session are susceptible to abuse by a malicious user. IP address identification isn't, but risks unfairly penalizing a user who's sharing an IP with an idiot. 
I think If I were you I'd do this:
Track by IP address. If a "flood" of simultaneous posts appears to be coming from a particular IP address, enable the use of a CAPTCHA on the form(s) in question for that IP address only.
http://en.wikipedia.org/wiki/Captcha
That way you avoid inconveniencing nice guys, but make it too much hassle to bother for the SOBs. 
got the idea but didnt understand about searching for ip adresses...they wont be stored in a db?will they?
you talked about jsessionid..i am searching about it but couldnt get valueable info...if you have any link write it and i will be very appreciated...
thanks a lot again
Burak 
got the idea but didnt understand about searching for
ip adresses...they wont be stored in a db?will they?No. But there's nothing to stop you from retaining this information. The IP address is available to servlets and filters as long as you're not behind any opaque infrastructure.
you talked about jsessionid..i am searching about it
but couldnt get valueable info...if you have any link
write it and i will be very appreciated...It's in the J2EE spec I presume, but it doesn't really matter - the point is that sessions are tracked in ways that are susceptible to manipulation by malicious end users.
>
thanks a lot again
Burak

Categories

Resources