Jeanne Boyarsky wrote:Remember that the longer you wait, the higher the chance the internship goes to someone else. You definitely aren't going to be able to take the test and not have them count the result.
I don't think it will look good if you ask for another delay either. You are worried about taking the test and leaving a bad impression. Someone who keeps asking for delays also creates a bad impression.
Tim Moores wrote:Define "cloud based hoster". There is a wide variety of hosting options - which one might be suitable for you depends on your requirements about which we know nothing.
As to monitoring uptime and accessibility - you should be monitoring those all the time in an automated fashion, so that you will be alerted you when the site is slow or unreachable. The hoster's responsibility is to keep the machine running and reachable from the outside; yours is to make sure the software runs as intended.
Rob Spoor wrote:Each JEE container like JBoss, GlassFish or WebLogic needs to come with one though. You would only need to find out which one so you can put the correct provider in your persistence.xml file. (JBoss comes with Hibernate, WebLogic with TopLink which is based on EclipseLink, no idea about others.)
Tim Holloway wrote:
You told MySQL to initialize a new data directory, but there was already data in it. MySQL did not like that.
If you cannot see schemas that used to be there, then it's likely that one of the following is at fault:
1. Your data directory isn't the directory that your database files are actually stored in (server not configured properly)
2. Your database files cannot be read by the userid that the MySQL daemon is running under (usually userid mysql). Most probably because your file ownership/access rights are incorrect.
3. The MySQL database userid that you connected to the MySQL server with doesn't have GRANT rights to see the schema.
Rob Spoor wrote:
tangara goh wrote:My problem is that I am not using JPA, just pure Java EE.
Can I use that method ?
JPA is part of JEE, so if you're using JEE you can also automatically use JPA.
Daniel Demesmaecker wrote:The snippet:
The short answer is yes, but...
The slightly more extended version is, when using jdbc you have to write your queries yourself, so you're also responsible for the validation of the date.
The validation would happen before you use it in a querry, I don't know how you get your data, but if you're using mvc, that would be in your controller.
@id, @GeneratedValue and @NotNull, you don't need if you're db is set up correctly. id is the primaryKey, GeneratedValue is autoIncrement and NotNull is NOT NULL, those you would set up in your table on creation.
Checking if the value matches a certain pattern, you can do in you controller: @Temporal and @Past, I would never use, it simply means that the date is undefined and should be in the past.
You can simply make your column of type date and to check if it's in the past you can use:
which return a boolean
Checking if the value matches a certain pattern, you can do in you controller:
Campbell Ritchie wrote:Why are you using System.getEnv(...) rather than System.out?
Why didn't you use try with resources to close your buffered writer?
Why are you using String#split in conjunction with a Scanner?