-
1. Re: clarification of use
bdinnerv Jan 27, 2006 2:51 AM (in response to bdinnerv)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.
-
2. Re: clarification of use
alesj Jan 27, 2006 4:16 AM (in response to bdinnerv)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:
- http://www.genera-lynx.com/temp/jboss-spring-jdk5.jar
- http://www.genera-lynx.com/temp/jboss-service.xml
You will probably have to change Spring libraries to version 1.2.5.
Rgds, Ales -
3. Re: clarification of use
alesj Jan 27, 2006 4:18 AM (in response to bdinnerv)Aha, missed this one -- spring 1.2.6.
That's even better. I thought you were using version from when deployer was first introduced. -
4. Re: clarification of use
bdinnerv Jan 27, 2006 4:35 AM (in response to bdinnerv)Hi Ales,
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.
Cheers,
Ben -
5. Re: clarification of use
bdinnerv Jan 27, 2006 4:45 AM (in response to bdinnerv)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