5 Replies Latest reply on Apr 15, 2003 4:30 AM by sameer_inn

    invoking Ejbean for getting DB Connection Object

    sameer_inn Newbie

      Hello
      i have a ejbean that return a Connection object using Datasource.

      i am invoking the bean method from normal java client but it's throwing exception

      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:26)
      Exception: null


      could u tell me how to get DBConnection Object from Ejbean to client

      thanx