Re: tapestry-spring and IEngineService

2007-02-07 Thread Shing Hing Man
One possible way is to wrap up your spring bean as an
Hivemind service 
(http://hivemind.apache.org/hivemind1/hivemind-lib/SpringLookupFactory.html).
Then inject that hivemind service into  your Tapestry
engine service.

Example : 


  



 
  

  
  
  
Shing
--- Nalin Gupta <[EMAIL PROTECTED]> wrote:

> Hi,
>  
> Is there any way to inject a Spring bean into an
> IEngineService (defined
> in hivemodule.xml) ? I tried to do this by using
> @InjectSpring
> (tapestry-spring), however I get a null pointer
> exception for the
> injected object.
>  
> @InjectSpring("entityService")
>  public EntityService getEntityService() {
>   return entityService;
>  }
>  
> getEntityService() returns null.
>  
> regards,
> Nalin.
>  
> 
> NOTICE
> This e-mail and any attachments are confidential and
> may contain copyright material of Macquarie Bank or
> third parties. If you are not the intended recipient
> of this email you should not read, print,
> re-transmit, store or act in reliance on this e-mail
> or any attachments, and should destroy all copies of
> them. Macquarie Bank does not guarantee the
> integrity of any emails or any attached files. The
> views or opinions expressed are the author's own and
> may not reflect the views or opinions of Macquarie
> Bank.
> 


Home page :
  http://uk.geocities.com/matmsh/index.html



___ 
What kind of emailer are you? Find out today - get a free analysis of your 
email personality. Take the quiz at the Yahoo! Mail Championship. 
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tapestry-spring and IEngineService

2007-02-06 Thread Nalin Gupta
Hi,
 
Is there any way to inject a Spring bean into an IEngineService (defined
in hivemodule.xml) ? I tried to do this by using @InjectSpring
(tapestry-spring), however I get a null pointer exception for the
injected object.
 
@InjectSpring("entityService")
 public EntityService getEntityService() {
  return entityService;
 }
 
getEntityService() returns null.
 
regards,
Nalin.
 

NOTICE
This e-mail and any attachments are confidential and may contain copyright 
material of Macquarie Bank or third parties. If you are not the intended 
recipient of this email you should not read, print, re-transmit, store or act 
in reliance on this e-mail or any attachments, and should destroy all copies of 
them. Macquarie Bank does not guarantee the integrity of any emails or any 
attached files. The views or opinions expressed are the author's own and may 
not reflect the views or opinions of Macquarie Bank.