Search:

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

Page 1 of 3 1 2 3

Search: Search took 0.04 seconds.

  1. jBPM : integrating with existing Hibernate SessionFactory limitations

    Hi,

    After reading LocalJbpmConfigurationFactoryBean and JbpmTemplate I see that existing Hibernate SessionFactory support is very limited. There are 3 use cases in which this support can be used:...
  2. jBPM: Hibernate SessionFactory and LocalJbpmConfigurationFactoryBean.setCreateSchema

    Hi,

    Is it possible to use existing Hibernate SessionFactory already defined in context to call LocalJbpmConfigurationFactoryBean.setCreateSchema? I tried to it and this was unsuccessful. I see...
  3. jBPM: replace jBPM xml configuration with jBPM 3.1.x newly added ObjectFactory

    Hi,

    I read in Spring Modules Reference Documentation Chapter 8. jBPM 3.1.x:



    Is this means that I can use some spring beans inside context instead of jbpm.cfg.xml? How can I do it? Can...
  4. initialization & destroy methods with non-singleton beans

    Hi,

    Is it possible to correctly initialize and destroy non-singleton beans with Spring?

    I have this context:



    <beans>
    <bean id="commandBean" class="test.CommandBean" singleton="false"...
  5. Configure bean with ordinary method instead of setter

    Hi,

    I need to run simple application with Jetty and DWR in one Spring context. Java code looks like this:



    Server server = new Server();

    SelectChannelConnector connector = new...
  6. Replies
    2
    Views
    2,819

    loading resource from user home directory

    Hi,

    I can easy load resource from classpath:



    <bean class="org.springframework.beans.factory.config.PropertiesFactoryBean">
    <property name="location"...
  7. Replies
    0
    Views
    813

    Method Injection for bean collection

    Hi,

    Suppose, I have this context:



    <bean name="modemManager" class="devman.modem.ModemManager">
    <property name="adapters">
    <list>
    <bean...
  8. Transaction with Hibernate : NoSuchMethodError org/hibernate/proxy/LazyInitializer

    Hi,

    I use this context:



    <beans>

    <!-- PostgreSQL JDBC DataSource configuration -->
    <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
  9. How to know from one bean is another bean already loaded or not?

    Is it possible to know from one bean is another bean already loaded or not? First bean must to know it becase it's behaviour is different depends on another bean state.
  10. I tried to use InterfaceBasedMBeanInfoAssembler...

    I tried to use InterfaceBasedMBeanInfoAssembler instead of SimpleReflectiveMBeanInfoAssembler, but I see AOP properties/methods too. So, the problem is mangling JMX interface. Is it posible to not...
  11. I resolved this problem by adding addition...

    I resolved this problem by adding addition interfase ITestBean to TestBean and use it for calling execute, but now I have another strange problem. My context now is:



    <beans...
  12. I tried to modify context for new 2.0 approcach:...

    I tried to modify context for new 2.0 approcach:



    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    ...
  13. BeanNameAutoProxyCreator for bean implements any interface

    Hi,

    I have this bean:



    public class TestBean implements TestBeanMBean {

    private Log log = LogFactory.getLog(getClass());
  14. Why JmsTemplate.receive() use new JMS Session?

    Hi,

    Why JmsTemplate.receive() use new JMS Session on every call? It will be more fast to use the same session. Will be any problems in this case?
  15. Replies
    8
    Views
    9,199

    It will be more useful to use message driven...

    It will be more useful to use message driven POJO, so I registered bug in http://opensource.atlassian.com/projects/spring/browse/SPR-2461
  16. Replies
    8
    Views
    9,199

    More convinient workaround is using...

    More convinient workaround is using TransactionTemplate:

    context.xml:



    <beans>

    <bean id="broker" class="org.apache.activemq.broker.BrokerService" init-method="start"...
  17. Replies
    1
    Views
    970

    Hibernate programmatic transaction management

    Hi,

    Is it possible to create hibernate session, create some objects and save it with session, having only org.springframework.transaction.jta.JtaTransactionManager and...
  18. Replies
    8
    Views
    9,199

    My latest code looks like: context.xml: ...

    My latest code looks like:

    context.xml:



    <beans>

    <bean id="broker" class="org.apache.activemq.broker.BrokerService" init-method="start" destroy-method="stop">
    <property...
  19. Replies
    8
    Views
    9,199

    This problem can be resolved by writing another...

    This problem can be resolved by writing another wrapper instead of org.jencks.pool.PooledSpringXAConnectionFactory or modifing it to support XA connection and XA session in different threads.

    Such...
  20. Replies
    8
    Views
    9,199

    The problem is in Jencks code, which...

    The problem is in Jencks code, which PooledSpringXAConnectionFactory can't work in multithreaded environment. I tried to run this simple context:



    <beans>

    <bean id="broker"...
  21. Replies
    5
    Views
    10,165

    JmsTransactionManager works only with JMS...

    JmsTransactionManager works only with JMS transactions, so JDBC/Hibernate transaction can't be rolledback in onMessage method, am I right?

    I tried to use this approach with JTA...
  22. Replies
    8
    Views
    9,199

    I read...

    I read http://opensource.atlassian.com/confluence/spring/display/COOK/JTA+++JOTM+usage and http://issues.apache.org/activemq/browse/AMQ-303 where can see that PooledSpringXAConnectionFactory has...
  23. Replies
    8
    Views
    9,199

    JMS Listening with JTA Transaction

    Hi,

    Is it possible to listen JMS messages with DefaultMessageListenerContainer and JTA Transaction? I tried to run this context:



    <beans>

    <bean id="broker"...
  24. Replies
    1
    Views
    813

    Beans destroying order

    Hi,

    Is it possible to say which bean must be destroyed at the end of spring context destroying procedure (or after some other bean)? I know about depends-on but it seams it works only on startup.
  25. JMS & JDBC operations in one transaction: rollback problems

    Hi,

    I need to read JMS message from one queue, write it to another queue and save it into database in my custom format. I tried to do it with Spring/Jencks/ActiveMQ/PostgreSQL. My context is:

    ...
Results 1 to 25 of 53
Page 1 of 3 1 2 3