Good book for SOA/SaaS
I am a java developer. I want to learn SOA/SaaS for our web application. What is best book/resource to start with ? ...
I am a java developer. I want to learn SOA/SaaS for our web application. What is best book/resource to start with ? ...
hi I am trying to do java -jar jaxb-api-1.5.jar I am getting the following error : Failed to load Main-Class manifest attribute from jaxb-api-1.5.jar I am running it in jdk1.4 env. Why this is happening and how can it be recitified ? What i am trying to do is generate the classes from xsd using jaxb xjc command in jdk1.4 e...
I have read that we should always called a wait() from within a loop: while (!condition) { obj.wait(); } It works fine without a loop so why is that? ...
My flex project has the following mxml file: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:coverflow="com.dougmccune.coverflow.*" layout="vertical" horizontalAlign="center" verticalAlign="middle" viewSourceURL="srcview/index.html" xmlns:containers="com.dougmccune.containers.*" ...
Hi, could anyone tell me how can I enable EL expression in JSP version 2.0? Every time I'm getting EL expression as an String literal in the JSP as an output. Here's the DD which the container is using to sending request to servlet, and then servlet dispating request to JSP: <web-app xmlns="http://java.sun.com/xml/ns/j2ee" ...
Hi all, I have the following API: public interface MyApi { /** * Performs some stuff. * @throws MyException if condition C1 */ public void method() throws MyException; } I am now performing the following modification in my API implementation public class MyApiImpl { public void method() throws MyException { ...
Hello, I would like to start a subprocess from a JVM but I want this JVM to stop before the child process. I tried it with the JRockit on Windows XP but it seems the JVM waits for the child process termination before ending itself. Is there a way to start a child process which becomes independant of the parent process, i.e. which ends...
Autodetect JRE Version and Install the required Version on MAC OS X before launching an application.How? ...
I have method which gets a POJO as it's parameter. Now I want to programmatically get all the attributes of the POJO (because my code may not know what are all the attributes in it at run time) and need to get the values for the attributes also. Finally I'll form a string representation of the POJO. I could use ToStringBuilder, but I wa...
I have created two beans class BackPageBean{ String backPage = null; : : : } class InformationMessageBean{ String informationMessage = null; : : : } Now, if a class is backpage aware then it will extend backPageBean, or if it need to show some kind of message then it extends InformationMessageBean. class BackPage...
Since Java 1.4 doesn't have enums I'm am doing something like this: public class SomeClass { public static int SOME_VALUE_1 = 0; public static int SOME_VALUE_2 = 1; public static int SOME_VALUE_3 = 2; public void receiveSomeValue(int someValue) { // do something } } The caller of receiveSomeValue...
Hi, Is it possible to set the default method parameter values in Java? Example: If there is a method public int doSomething(int arg1, int arg2) { //some logic here return 0; } is it possible to modify the given method in order to be able to call it with and without parameters? example: doSomething(param1, param2); doSomething(); ...
Hi Everyone! i just tinkered around with Google Guice for Dependency Injection and started integrating it into my existing application. So far, so good. I have many classes which need, beside their dependencies, Strings, DataSources, et cetera. I know there are NamedBindings, but i really do not want to create an annotation for every si...
Why does the following code throw ArrayStoreException? double[] a = {2.0,3.4,3.6,2.7,5.6}; int[] b = {2,3,4,5}; System.arraycopy(b,0,a,1,4); ...
I get an integer and I need to convert to a month names in various locales: Example for locale en-us: 1 -> January 2 -> February Example for locale es-mx: 1 -> Enero 2 -> Febrero ...
I have 4 Java applications rendering some AWT graphics. They all render to different X displays, which we configure at JVM startup time. I would like to have them run from the same JVM. This way, I launch one Java app, and it will open up four screens, which render their stuff to different displays. Is that possible in Java? ...
Hi.... I've a bash script that sequentially calls a java program. That's a bit tricky but mainly what i do is to have a loop and executes about 1500 times the same java program with different arguments. My question is, when using java 1.5 (the sun VM), each time I'm calling the java program a new instance of the jvm is created ? (I'm ...
hi, i have a webapplication, using hibernate and the following entities. What do I wrong: ... @Entity public class Registration implements BaseEntity { ... @OneToMany(cascade = {CascadeType.PERSIST}, mappedBy = "registration", fetch = FetchType.EAGER) private List<OrderedProduct> orderedProducts = new ArrayList<OrderedProduct>(); ... pu...
Another translation question, this may be more theoretical, but I am curious as to the design choice. SFNQ: Why does C# not allow controlling for controlling access to methods in interfaces like Java does? For example, in a C# interface: public void Visit(Axiom axiom); Thank you. ...
A third party programm allows me to ask data from his ip:port. I ask the stuff via this classic code. Here is the constructor of my connection class: public TcpConnection(String adress, Integer port) { this.adress = adress; this.port = port; try { socket = new Socket(adress, port); System.out.println("Opening con...