Search:

Type: Posts; User: daune_jf; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Replies
    2
    Views
    1,408

    Beans cannot be embedded

    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"/>
    ...
  2. Replies
    2
    Views
    1,408

    More readable config

    <bean id="jmxExporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false">
    <property name="autodetect" value="true" />
    <property name="assembler">
    <bean...
  3. Replies
    2
    Views
    1,408

    MBean not showing

    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"...
  4. Some additional info

    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,...
  5. PersistenceManagerFactoryUtils and TransactionSynchronization

    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...
  6. Replies
    3
    Views
    935

    Thanks for sharing your fix. I guess the last...

    Thanks for sharing your fix.

    I guess the last snippet is



    if (extendedGenericMethod!=null) {
    return super.findAllAttributes(extendedGenericMethod);
    }
    return...
  7. AnnotationTransactionAttributeSource and generics

    Hi,

    let's consider the following example



    public interface ViewTx<T extends View> {
    void update(T view);
    }
  8. Replies
    3
    Views
    935

    Craig, I have similar problem. Could you...

    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...
  9. Replies
    2
    Views
    910

    It is...

    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
  10. Replies
    1
    Views
    856

    AFAIK, there is no standard way to propagate...

    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...
  11. Forget about it. It is JDO (Kodo)-related...

    Forget about it.

    It is JDO (Kodo)-related stuff (PersistenceManager not enlisted in global transaction if created before transaction is opened)

    J-F
  12. Replies
    2
    Views
    910

    Reusing interceptors in EJB-JAR and WAR

    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
    ...
  13. CMT - Accesses to DAOs work for remote calls, fail for local ones

    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...
  14. I have gone through the forum, and found no...

    I have gone through the forum, and found no relevant information.

    But it seems few people use JSF-Spring.

    Any help is appreciated.
  15. Sorry: Costin.

    Sorry: Costin.
  16. Colin, it is not easy to set up a simple 'test...

    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...
  17. ContextSingletonBeanFactoryLocator and BeanPostProcessors

    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...
  18. JBoss issue - cont'd

    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....
  19. JBoss issue

    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...
  20. ContextSingletonBeanFactoryLocator creates several times same context ?!?

    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....
  21. Replies
    0
    Views
    662

    Need a Spring guru (tricky config) !!!

    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...
  22. Replies
    1
    Views
    652

    Spring tries to rollback Tx no active

    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...
  23. I thought about subclassing. Unfortunately,...

    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
  24. I have a JDO PersistenceManagerFactory (Kodo): ...

    I have a JDO PersistenceManagerFactory (Kodo):

    <bean id="pmf" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiEnvironment" ref="jndiProperties"/>
    ...
  25. I am facing the same problem, and I am stuck. ...

    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...
Results 1 to 25 of 35
Page 1 of 2 1 2