Thanks Scott, it worked. All I need to do was put the following jar in remote
client's classpath:
$jboss-root\server\default\lib\jboss-common-jdbc-wrapper.jar
The said jar contains
"org.jboss.resource.adapter.jdbc.remote.DataSourceFactory".
One last thing though...following is the way I am getting the initial context
on client side:
---------------
env = new Hashtable();
env.put(InitialContext.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
env.put(InitialContext.PROVIDER_URL, "jnp://localhost:1099");
env.put(InitialContext.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
try {
context = new InitialContext(env);
....... // rest of the code goes here
-----------
Is there anything else which I can put in "env" so that the jboss object
factories are available in the jndi context configuration and I don't need to
add the said jar in remote client classpath?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865511#3865511
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865511
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user