hi all..is there a way to get the spring context so I can do something like:
ApplicationContext ctx = ....;
ctx.getBean("myBeanName");
thx abe



----- Original Message ----
From: Abraham Washington <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, August 21, 2008 6:40:26 PM
Subject: Re: sca namespace in spring


hi ramkumar...how do i get spring's applicationContext?  I don't see that in 
the example.
 
thx abe
 



----- Original Message ----
From: Ramkumar R <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, August 18, 2008 1:30:23 AM
Subject: Re: sca namespace in spring


>  
> here's my call to get the applicationContext:
>  
> 
> org.springframework.context.ApplicationContext applicationContext =
> 
> (org.springframework.context.ApplicationContext) 
> org.springframework.context.access.ContextSingletonBeanFactoryLocator./getInstance/("beanRefFactory.xml").useBeanFactory("beanRefFactory").getFactory();
> 

Hi Abraham,

I could see the issue that your are facing while using the code you shown above 
to create the application context. By creating a application context in this 
manner, does not use the implementation provided by Tuscany to support 
<sca:service>. Tuscany supports 
xmlns:sca="http://www.springframework.org/schema/sca"; using 
SCANamespaceHandlerResolver by extending the DefaultNamespaceHandlerResolver. 
Tuscany creates a application context for you, when you want to use spring 
implementation with your composite.

I could not understand exactly, what you are trying to achieve?

Just FYI.... To get an understanding on how Tuscany supports spring 
implementation please refer to sample 
http://svn.apache.org/repos/asf/tuscany/java/sca/samples/simple-bigbank-spring

-- 
Thanks & Regards,
Ramkumar Ramalingam


      

Reply via email to