I have exact same issue. I want to retrieve either the deployed bean or the
bean factory from outside of the spring deployer.
Wonder if there is any way to get the bean factory handler? Since the handler
is stored in JBoss local JNDI, it should be a way to do it.
Does any one have clue?
Thanks
Hi Marius,
I also tried using the following spring bean context file
|
| http://www.springframework.org/schema/beans";
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
| xmlns:jaxrs="http://cxf.apache.org/jaxrs";
| xmlns:aop="http://www.springframework.org/schema/ao
Hi Guru,
I am using JBoss 4.2.2GA and jboss-spring deployer 2.5 (JDK5). I have a spring
archive called BillingFramework.spring, which can be deployed successfully by
the deployer and can be accessed from different web application as well.
However I would like to make those deployed beans availa
Hi Marius,
Thanks for your help again.
I didn't try TCCL, but I guess, in my scenario, the invocation is from web
application, the system class loader and thread-context class loader are all
related to web application (not the spring deployer).
As such I did the following trick to make it work
Hi Guru,
With the help from spring integration community, I can successfully deploy
spring beans using deployer release 2.5 (jdk5) in JBoss 4.2.2GA and I can also
access the deployed beans from another web application.
However I am running into a problem of using ClassLoader inside the deployed
Hi Marius,
Finally it works! I just replaced the deployer with jboss-spring-jdk5-2.5.jar.
It works now. Thank you so so much!
I have few other questions for you:
1. With this spring deployer, can the jboss-spring.xml in the spring archive
file take the tokens from a properties file in default/
Marius,
Here is the stacktrace. Please take a look while I am trying to sync up
versions as you advised.
Thanks,
| 2009-11-20 15:52:44,238 ERROR [org.jboss.deployment.MainDeployer] Could not
create deployment:
file:/C:/jboss-4.2.2.GA/server/default/deploy/MySpringBean.spring
|
| jav
Hi Marius,
I did more testing. The problem is becoming more specific.
I tried both spring deployer release 2 and release 3.
It contains
| jboss-spring-jdk5.jar
| spring-aop.jar
| spring-beans.jar
| spring-context.jar
| spring-core.jar
|
I am not clear which version of the spring
Marius,
Yes, it is the class-loader version problem. I put all spring jars into
default/lib, but still run into exceptions. Here are what I did.
The spring deployer contained the following jars:
| jboss-spring-jdk5.jar
| spring-aop.jar
| spring-beans.jar
| spring-context.jar
| spring-
Marius,
Thank you so much. With the changes as you suggested, I am moving forward one
more step further, but still got the following exception.
[CODE]
2009-11-19 20:15:58,943 INFO [STDOUT] 20:15:58,943 ERROR [ContextLoader]
Context initialization failed
org.springframework.beans.factory.acces
Thank you so much for the quick reply.
I have same feeling about JDNI lookup. But what is the correct way to retrieve
it?
Is there any example of retrieving deployed bean from web app?
Thanks,
Ivan
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266671#4266
Hi,
I am using jboss JBoss 4.2.2GA release, and want to deploy some common spring
beans and make them available to all other web services or EJBs within same
jboss environment.
It seems that jboss spring deployer is a good choice. I downloaded deployer
version 2, then created some simple test.
12 matches
Mail list logo