Nuwan Arambage

Ranch Hand
+ Follow
since May 05, 2010
I'm human living in small island called Sri Lanka and graduated from Stafordshire University UK..
Sri Lanka
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nuwan Arambage

well played India.Finally they did what they want to do.... Congratulations India...... Warm Wishes from SriLanka
7 years ago
yes people, I'm sorry I was in hurry...
I got the point you guys explained..
7 years ago
I didn't get what you guys are talking about.. I do have a clear question... Is there a mechanism to run two instances of the same program within a single JVM. If it is possible, how can we do it..

I'm looking for a solid answer.. this question intrigues me a lot..

Thanks

7 years ago
I'm interested in running multiple programs in a single JVM.

7 years ago
Hi all,
I'm interested on running multiple program within a single JVM. for a instance, let say, I want to run two instances of same hello world program in a one JVM. I would like to know it is possible and if it possible I'm expecting a resource to learn how to do it by myself.

Thanks & Regards,

Nuwan Aramabage
7 years ago
Hi all,

Now I'm planing to learn android development so by the I have found articles for beginners but most of the articles are encouraged to use eclipse plug-in with eclipse IDE.

I believe as a beginner, simple text editor would be better to get to know thing rather than trapping with the IDE. If anyone has a good resources explaining how to start android development with use of text editor and doing things manually. please do a reply for this post.

Thanks & Regards ,

Nuwan Arambage

7 years ago
yeah , conceptually it's dude. I got you point clearly thanks for you guidance.
Hi people,
This question might be asked by several number of newbies to structs2 and perhaps it has been answered.So please let me ask this question again.I have written a simple structs2 program which gives the customized greeting based on the name entered.

This is the development structure of the application

Structs_Test
Java Resources
src
com.nuwan
HelloWorld.java
Resources
structs.xml

WebContent
META-INF
WEB-INF
lib
commons-logging-1.1.jar
freemarker-2.3.8.jar
ognl-2.6.11.jar
struts2-core-2.0.11.jar
xwork-2.0.4.jar
web.xml

HelloWorld.jsp
Index.jsp

Okey This is the index.jsp page I have included.



The action HelloWorld is mapped to the HelloWorld class in com.nuwan package.Then this is the structs.xml file




This is the warning message I got when I run the structs_test application and index page is displayed.



By the way if I submit the name browser show the 404 :The requested resource (/Structs_Test/HelloWorld) is not available.

Can somebody explain me where I did mistakes in the code.

Thanks & Regards,

Nuwan Arambage



7 years ago
Hi everyone,
I have gone through regarding thread & swing components.I have got to know that most of the event are being handling by the event dispatch thread.So my question is this, When I create GUI inside main method, does all event handling occurs in the main thread with no help of event dispatch thread or . does main method implicitly call the event dispatch thread.

Thanks & Regards,

Nuwan Arambage


7 years ago
Hi all ,

The analogy that I came across when I read a article form the internet.The article specifies that analogy for monitors in threading is similar to bathroom in a airplane.it explains that airplane is equal to object ,passengers are same as threads and bathroom is identical to monitor. doors attached to the bathroom is like locks.The story keep going like this. When passenger enter to the bathroom he locks the door. Meaning that thread acquire the lock. Other passengers won't be able to use the bathroom since bathroom's doors are locked.

What I need to know is what does monitor do and what does object lock do?. does object associates with particular lock and a monitor.


Thanks & Regards,
Nuwan Arambage


Excuse me people,

I don't know whether I digest 'Platform Independence' buzz word correctly.You all have already told that threads are mostly depends on the operating system where java virtual machine runs.So java threading mechanism depends on underlying operating system configuration. In fact, I feel java's platform independence is deviated.

Could someone clarify what I was thinking seems real or hypothetical....

thanks...

Nuwan Arambage

thanks for everyone's contribution to make everything clear to the deepest..



Hi Stephan,
In nutshell, what do you mean by it depends on the platform ?. is it related to NT or Linux ?
Hi everyone,

I have read a article that when it comes to multi processor systems , we can't get the advantage of running multiple threads simultaneously since every threads are in a single JVM process. Indeed when I go further, I got to know that some JVM implementations are built to map Java thread to OS level native threads.

My question is this, by default I used sun's JVM 1.6 implementations which is widely spread among Java newbies.So
Q1.How does this modern JVM handle thread scheduling ?
Q2.Does it handle JVM itself or map Java threads to native threads ?
Q3.So what will happens to platform independence when operating system handles thread scheduling?

Please somebody give me clear answer.

Thanks & Regards,
Nuwan Arambage



Hi Steve,

I understood the mistake I have made in my code. I got your point
Thanks

Nuwan Arambage