OK, I have found the problem.
It appears that beans cannot be embedded such as
<bean id="myBean" class="...">
<property name="theDependency">
<bean class="ClassThatMustBeExported"/>
...
Type: Posts; User: daune_jf; Keyword(s):
OK, I have found the problem.
It appears that beans cannot be embedded such as
<bean id="myBean" class="...">
<property name="theDependency">
<bean class="ClassThatMustBeExported"/>
...
<bean id="jmxExporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false">
<property name="autodetect" value="true" />
<property name="assembler">
<bean...
Hi,
I defined a JBoss SAR that creates a ClassPathXmlApplicationContext based on three files: 1.xml, 2.xml, 3.xml.
In 1.xml, I define this:
<bean id="jmxExporter"...
Kodo actually does not always call lifecycle listeners after beforeCompletion.
Kodo calls listeners as soon as it can. So, some are called when PM methods are called. For instance,...
Hi,
I use JDO 2.0 feature in Solarmetric's Kodo allowing to register lifecycle listeners, called when persistent objects are created/updated/deleted.
I implemented validators as lifecycle...
Thanks for sharing your fix.
I guess the last snippet is
if (extendedGenericMethod!=null) {
return super.findAllAttributes(extendedGenericMethod);
}
return...
Hi,
let's consider the following example
public interface ViewTx<T extends View> {
void update(T view);
}
Craig,
I have similar problem.
Could you check in a debugger that the 'proxied' method reports to be doSomething(Foo) instead of doSomething(Bar).
You can check this in...
It is org.aopalliance.intercept.MethodInterceptor.
I noticed that JBoss changed WAR class loading default configuration from version 4.0.2.
I'll dig into this.
J-F
AFAIK, there is no standard way to propagate security info from remote call in J2EE.
For JBoss, the best way is to use JAAS and ClientLoginModule (see...
Forget about it.
It is JDO (Kodo)-related stuff (PersistenceManager not enlisted in global transaction if created before transaction is opened)
J-F
Hi,
maybe this is not the good forum, but here is my problem.
I have an EAR containing a WAR, an EJB-JAR, the Spring jar and another jar (util) declaring a custom interceptor:
ear
war
...
Hi,
I have some JDO-based DAOs accessed by EJBs with CMT. I do not use Spring-managed TX demarcation.
When accessed remotely, everything works fine. When accessed locally (local EJBs), DAOs are...
I have gone through the forum, and found no relevant information.
But it seems few people use JSF-Spring.
Any help is appreciated.
Sorry: Costin.
Colin,
it is not easy to set up a simple 'test bed' as the config involves EAR/WAR/EJB-JAR/JSF/JSF-Spring/JBoss.
But I will work on it.
In the meantime, I have created a class 'Probe' that...
Hi,
as recommended in this forum, I use ContextSingletonBeanFactoryLocator in my EJBs so that they share a single ApplicationContext.
It seems that the beans from the ApplicationContext created...
It appears that an exception was thrown when calling locally, and not when calling remotely.
When an exception is thrown by the EJB, it seems JBoss discards the instance, and creates a new one....
I have further investigated, I noticed that for a call to local SLSB:
1) JBoss creates one SLSB -> call to ejbCreate -> ApplicationContext created
2) JBoss serves the request
3) JBoss discards...
Hi,
first, here is the context:
- Spring 1.2.7
- one EAR deployed in JBoss 4.0.3
- the EJBs packaged in one EJB-JAR all sharing one ApplicationContext to inject their delegate....
Hi,
I am using Kodo JDO, and I try to register lifecycle listeners to the PersistenceManagerFactory (PMF) via Spring.
Those listeners actually perform validation logic, and themselves use DAO...
Hi,
in a JDO-based application using Spring Tx mgt, I encounter an exception because Spring JdoTransactionManager tries to rollback the transaction whereas it is not active...
I thought about subclassing.
Unfortunately, one listener is injected a DAO that uses in turn the PMF, so I have a circular reference.
I will use BeanFactoryPostProcessor to add listeners.
J-F
I have a JDO PersistenceManagerFactory (Kodo):
<bean id="pmf" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiEnvironment" ref="jndiProperties"/>
...
I am facing the same problem, and I am stuck.
I need BeanPostProcessor to avoid circular dependencies, but the bean is created using a FactoryBean -> my BeanPostProcessor is not called
What is...