Search:

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

Search: Search took 0.02 seconds.

  1. Thread: Load vs Get

    by beel
    Replies
    5
    Views
    1,678

    Use getter not instance variable

    Your error is caused by the fact you're using this.name. When hibernate generates a proxy subclass using CGlib it'll also shadow all the instance variables. Hence are always null. You equals method...
  2. Thread: Load vs Get

    by beel
    Replies
    5
    Views
    1,678

    Use Hibernate.initialize()

    Other option is to use Hibernate.initialize() to initialise the object, however, it requires the Hibernate session to still be active. If you run your test method with a transaction template +...
  3. Replies
    3
    Views
    3,085

    DataSourceTransactionManager

    Hi,

    You should probably be using:

    http://www.springframework.org/docs/api/org/springframework/jdbc/datasource/DataSourceTransactionManager.html

    set the data source on the transaction...
  4. Replies
    6
    Views
    1,303

    EJBs implicitly uses JRMP or IIOP, etc

    EJBs (non local ones) are always deployed as remote objects unless you're referring to local EJBs. Using a (local) EJB has it's trade offs in that you'll have to have your spring configs + EJB...
  5. Replies
    6
    Views
    1,303

    MBean as remote object

    Nah, check out: org.springframework.jmx.access.MBeanProxyFactoryBean. The extra overhead is the reflection done by the MBean server to invoke the bean method. Spring then provides the necessary...
  6. Replies
    6
    Views
    1,303

    MBean exported using spring

    Forgot to mention that the mbean export was done using the spring mbean exporter classes.
  7. Replies
    6
    Views
    1,303

    Export as MBean

    Have done something similar already, with a class that instantiates a classpath application context. The spring config files were packaged up in the SAR. Any spring beans that needed to be accessed...
  8. Replies
    11
    Views
    8,078

    JBoss HA-Singleton + JMX

    On the project I'm currently working on I deploy a JBoss HA-singleton to make it cluster singleton then use spring to register the required beans with the cluster's HA-JMX server. Access to the...
Results 1 to 8 of 8