PS, have tried this with a combination of jdk1.4 / 1.5 and also jboss 3.2.5 + 4.0.2 / 3 and both different deployers.
Yep, this is a problem with current version of deployer.
You cannot get the bean from bean factory unless explicity injecting it in EJB enterprise bean.
The reason for this is that the actual bean factory is really just a bean factory implementation and NOT an application context (which is capable of a lot more; postprocessing, listeners, singleton creation at start, ...).
To be able to do this (your task) you need anapplication context impl of bean factory - deploys singletons at creation time.
And this has been done in a new version of deployer (it is not yet on the sourceforge), jboss-service.xml must also be changed.
You can temporarly download it here:
You will probably have to change Spring libraries to version 1.2.5.
Aha, missed this one -- spring 1.2.6.
That's even better. I thought you were using version from when deployer was first introduced.
Great! Thanks ,love your work!
I had a feeeling that that may be the case, is just hard to figure out exactly what it should and shouldnt do docco at the moment and there dont seem to be to omany ppl out there using it yet (not a heap of threads found on the issuce on news groups etc)
I will give the updated version a go and will update the this thread with the outcome so that hopefully the next person that stumbles upon this prob will know what to do.
Looks like i can go back to using spring again, was just reading up through a hole lot of EJB3 getting started stuff and was about to take the plunge - which i should probably do but at the moment have a job to do and will get it done the way i know.
Well, i wish all fixes could be that easy. with about 3 minutes of downlaoding files, moving them to the server and redeploying by .spring archive, everything is now working as expected. My MBean is now being instatiated at deploy time and is visible and working from the jmx console.
All is working fine with JBoss 4.0.3SP1 and springframework 1.2.6, along with JDK1.5
Thanks again Ales