Roberto Perillo wrote:
Roel De Nijs wrote:And as a side note: I don't get why you need this getURLyBirdServiceInstance-method
Roberto Perillo wrote:Howdy, Mahendra!
I just didn't get well the point of your getInstance method: do you want your UrlyBirdRemoteServiceImpl class to be a singleton? I think it is better to only instantiate the business component when the application starts and use this instance throughout the code. How about something like this:
Roel De Nijs wrote:But the functionality has changed: now each invocation of the getInstance method returns the same instance and before it always returned a new instance. I don't know if it's intentional (and your program needs it).
public class JNITest
native void showMessage(String str);
System.out.println("In the constructor of the java program");
public static void main(String s)
JNITest JNT = new JNITest();
JNT.showMessage("Passing string from Java");