While studying for OCPJP7 I encountered these kinds of problems.
Can someone explain me the difference between example 1 and 2?
In the first example the text "Boom!!!" is always printed first, but in the second example the order is random (I would also have expected to see the "End" string printed first). How can that be ? The main difference that I see is that in one case there are 2 threads involved, in the other 3 threads. (Including the main thread too ofcouse).
I am getting my hands on spring mvc for the first time. I am having a handler in my controller that displays all users from my app and also a handler for displaying info for a specific user. I am using REST style paths.
Web application configuration:
The JSPs that i am using. When i click on the edit hiperlink, the css does not load anymore. So here is the issue, the web page to which i am redirected, http://localhost:8080/app/users/2 does not load the css anymore.
Here is the hierarchical structure of the web application:
Here is what i see in my app logs when clicking the hyperlink.
What solutions could be for this situation? Thanks.
I would like a suggestion on the existing public web services like the ones from Google, Yahoo, Amazon, Flickr etc. that can be used in a web service composition engine. Would prefer to use those that do not require authentication, but this is not mandatory. I am looking for a real case study that would use at least 3-4 web services. Like for example: I want to visit a town in a foreign country and would combine the directions and places web service API's from Google. Much appreciated. Thanks.
I am building a calculator service using Eclipse & BPEL designer with Apache ODE and this is where i got stuck:
If i use concat instead of sum, there is no compilation error. But i need to make the sum of the variables. I have checked the documentation for this function and the signature is: fn:sum(arg,arg,...). What could be wrong here?
I have followed the basic tutorial from the Apache ODE website, a couple of times.. In particular this one:
http://people.apache.org/~vanto/HelloWorld-BPELDesignerAndODE.pdf First i used tomcat 6, and the latest eclipse & latest ODE war, and i got stuck at step 23. Then i used tomcat 5.5 and eclipse 3.6 and the 1.2 war. This scenario failed from the start, because i could not install BPEL designer to this version of eclipse (it seems that plugins need the last version of eclipse). Then i switched to the latest eclipse, tomcat 5.5 and 1.2 war. I followed the tutorial more than 1 time, and im almost sure that i haven't missed anything from the pdf, and i could not deploy the service. It doesn't show in axis2 /listServices url. Is anyone familiar with this ? Maybe i am missing some axis configuration that is not stated in the tutorial. I would appreciate a lot a hint, something, anything.
I would like some suggestions on algorithms books. I have seen some answers in this forum regarding this subject, but i have seen mostly java related books. I would like something that explains and presents algorithms from scratch, and it should not be a language based book, i'm looking for pseudocode-wise ones. Many thanks.
PS: It is ok to receive also info on more complex algorithms books, but i would like to start with the basics first.
I think that the certification doesn't state that you are a good developer, it shows that you are a good Java programmer and that you are very familiar with Java syntax; you could write code even in a text editor without intellisense. If you do not have much experience with Java i do not recommend taking the cert, and even if you do, try to take the latest certification. Bare in mind that Java 6 was released in 2006 and Java 7 5 years later, in 2011.