i have a jar project, that has NIO api running and i want to scale it up across many servers.
How can i have my app running on multiple servers but having the memory shared in my j2se project?
You can't. This isn't even a Java question. Servers don't share memory. Only multiple CPUs within the same processor can share memory.
what about sharing JVM across multiple servers?
something like terracotta, but the nio api enabled
What you are asking about does not exist.