Open GoogleCodeExporter opened 8 years ago
I have built a war that is Java 5 compliant and can connect via RMI to
repositories deployed inside JBoss 4.x.
If you are interested, give me an upload location and I will provide it.
To the committers:
Codes changes are minimal:
--add a dependency to jbossall-client-4.2.2.GA.jar. Do not include the jar in
the war
--make code Java 5 compliant; all you will have to do with latest SVN head is
to remove a dozen @Override annotations.
-in JCRServiceImpl#getNewSessionViaRMI and BinayServlet#login, replace the
repository variable assignment with
Repository repository;
if ( rmiUrl.startsWith("jnp:") ) {
Properties env = new Properties();
env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
env.put(Context.PROVIDER_URL, "jnp://localhost:1099");
env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
InitialContext ctx = new InitialContext(env);
RemoteRepository rr = (RemoteRepository) ctx.lookup(rmiUrl);
ClientAdapterFactory adapter = new ClientAdapterFactory();
repository = adapter.getRepository(rr);
}
else {
repository = new URLRemoteRepository(rmiUrl);
}
voilà
Original comment by bruno.gr...@gmail.com
on 28 Jan 2012 at 11:14
Original issue reported on code.google.com by
carl.pri...@gmail.com
on 6 May 2011 at 6:29