hello am accessing datasource from client in the following way
i have written ejbean for getting connection from the datasource i have a method
public Connection getConnection(){} in the bean
i am invoking ejbean from the client.
when i invoke the method i get the error
java.lang.reflect.UndeclaredThrowableException: java.io.NotSerializableException: org.jboss.resource.adapter.j
dbc.local.LocalConnection
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:138)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:111)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy1.getDBConnection(Unknown Source)
at DBConnectionClient.main(DBConnectionClient.java:25)
Exception: null
i am attaching my jar file please look at it
and let me know