Hi Jim,

I was able to get the sample working with WLS 9.1, so thanks! FYI There appears to be a JRockit annotation bug that prevents it working, but the Sun JVM works fine.

At 04:39 04/09/2006, Jim Marino wrote:
as locateService(). I'd prefer that the model at this level remain
Spring such that a developer writes their beans and web application
using all Spring APIs but deploys them along with an SCA SCDL file
which does all of the remote wiring. This way, the programming model
has not changed at all from Spring and SCA just (literally) adds
features to it by packaging some SCDLs and libraries with the war .
In order to do this, I think we are going to need to figure out a
classloading/packaging mechanism for SCA extensions that will allow
us to reference Spring APIs from the web app classloader (I'd prefer
not to do this by just packaging in the war and instead possibly have
the SCA runtime smart enough to load the Spring classes into the web
app classloader since this is a general problem with extensions in
any host environment).

This would be nice!

In any event, I wanted to give Andy a heads up when he gets back
Monday. One of the big changes has been the new build structure (/sca
can now be built autonomously, as well as samples/sca). Another thing
is I had to put some hacks to get Spring working properly. One big
one was that the Spring application context gets loaded to introspect
the component type information and then needs to be refreshed when
the SCA context is set as a parent. Besides being suboptimal, I think
this will break eager instantiated singletons that take an SCA
reference since the first load will create them with the SCA context
being ready. Perhaps we could look for a better way to handle this,
potentially by being able to load a Spring configuration, introspect
it, and then tell the BeanFactory to initialize? Also, I don't think
<sca:service> and <sca:reference> are set up properly yet. One other
thing that I had to do is in the web app I placed the application- context.xml in WEB-INF/classes so it can be picked up through
getResource() - perhaps we should have something more flexible.

Ok, I will look at these. Spring has its own context loader listener for creating webapps. Its extensible and I extended it for the Spring/OSGi work, so maybe this is an appropriate place to plug-in SCA as well. I'll take a look.

andy
_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

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

Reply via email to