Reputation: 307
I'm learning to program java enterprise edition applications (web applications). to test the correctness of my coding i need multiple clients to access my project simultaneously (i.e test concurency), the projects are deployed with glassfish and accessed on the localhost, i tried to use multiple web-browsers unfortunatly the result interpreted tells me that i am only accessing my project withe the same client, so this is my question:
Can I access localhost from multiple virtual clients with Glassfish?
Do you have a name for tools to simulate virtual clients from the same machine to test my coding?
Edit: what i need is to access my project with some sort of browser client for multiple concurrent users, to test something like a board game or a chat application.
Upvotes: 1
Views: 977
Reputation: 122364
Have you considered Apache JMeter? It can (among many other things) simulate multiple concurrent users.
Upvotes: 1
Reputation: 10667
Not with localhost; but you need to find the ip address of your server. Then using servers ip address you can test as 127.12.13.45:8080/app
So using ip address in place of localhost; you can test your app from different client machines.
Apart from this; you can also use some of the testing tools which allows you to simulate multiple clients from the same machine.
Upvotes: 1