You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by "David J. M. Karlsen" <da...@davidkarlsen.com> on 2004/11/03 13:59:00 UTC

EJB proxy

As the documentation is very lacking, I'll have to ask on the list:

I'm trying to receive the component interface for a remote stateless bean 
through HiveMind.

The client-code:

SessionFacade sf = (SessionFacade)
 	registry.getService("com.mypackage.SessionFacade",
 	SessionFacade.class);


The descriptor:

<module id="com.mypackage.func" version="1.0.0">
 	<service-point id="SessionFacade" interface="com.mypackage..SessionFacade">
 		<invoke-factory service-id="hivemind.lib.EJBProxyFactory">
 		<parameters
 			home-interface="com.mypackage.SessionFacadeHome"
 			jndi-name="ejb/com/mypackage/SessionFacadeHome"/>
 		</invoke-factory>
 	    <interceptor service-id="hivemind.LoggingInterceptor"/>
 	</service-point>
</module>



but this only results in:
General exception: Unable to construct service 
com.mypackage.SessionFacade: Index: 0, Size: 0


what's wrong?

David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Re: EJB proxy

Posted by Johan Lindquist <jo...@kawoo.co.uk>.
Hi,

I am not that familiar with the EJBProxyFactory, but I noticed that the  
interface attribute value has 2 dots in it - a possible typo or?

Also, the service point you should be asking the registry for is  
"com.mypackage.func.SessionFacade" - the module id + the service point id.

Hope that helps,

Johan

On Wed, 3 Nov 2004 13:59:00 +0100 (CET), David J. M. Karlsen  
<da...@davidkarlsen.com> wrote:

> As the documentation is very lacking, I'll have to ask on the list:
>
> I'm trying to receive the component interface for a remote stateless  
> bean through HiveMind.
>
> The client-code:
>
> SessionFacade sf = (SessionFacade)
>  	registry.getService("com.mypackage.SessionFacade",
>  	SessionFacade.class);
>
>
> The descriptor:
>
> <module id="com.mypackage.func" version="1.0.0">
>  	<service-point id="SessionFacade"  
> interface="com.mypackage..SessionFacade">
>  		<invoke-factory service-id="hivemind.lib.EJBProxyFactory">
>  		<parameters
>  			home-interface="com.mypackage.SessionFacadeHome"
>  			jndi-name="ejb/com/mypackage/SessionFacadeHome"/>
>  		</invoke-factory>
>  	    <interceptor service-id="hivemind.LoggingInterceptor"/>
>  	</service-point>
> </module>
>
>
>
> but this only results in:
> General exception: Unable to construct service  
> com.mypackage.SessionFacade: Index: 0, Size: 0
>
>
> what's wrong?
>
> David J. M. Karlsen - +47 90 68 22 43
> http://www.davidkarlsen.com
> http://mp3.davidkarlsen.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>



-- 
you too?

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org