I have a server with jboss-4.0.5.GA, yes is old but work fine for me for years, now i get the new server jboss 7.1, but i read that the JNP has now been replaced and now i have a headache for the lookup.
How a can get the remote interface if JNP has been replaced?
JNP is replaced if you are a client of AS7.
The AS7 will act as a 'normal' client for AS4.
Due to the new classloading you have to add the jboss4-client libraries as module and set a manifest dependency to it for the example.war
Inside the war you can use the old style client invocation to your JBoss4 app.