Search:

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

Search: Search took 0.02 seconds.

  1. Spring JMS listener container + EAR configuration.

    Hi all,

    I have an EAR package with MDB, which is deployed to Weblogic 9. The MDB is configured in ejb-jar.xml in the following way:



    <ejb-jar version="2.1"...
  2. Spring test - reuse context across multiple fixtures

    Hi all,


    I have several test classes that are annotated with the @ContextConfiguration and @RunWith(SpringJUnit4ClassRunner.class) annotation (i.e. i need dependency injection on the test class)....
  3. HibernateTransactionObject & ContextSourceAndHibernateTransactionObject

    We're getting this too (although we dont use nested transaction), and I believe is the problem is that:

    1. ContextSourceAndHibernateTransactionManager extends HibernateTransactionManager.

    2....
  4. hi

    Hi there....

    I assume you did this by rearranging your test code? Otherwise, could you tell me how you managed to commit the transaction inside a class that extends...
  5. Hmm

    I had that actually .. and it complaints about two triggers pointing to different job. i.e. it doesnt wipe out the old job. I still had to clean the database etc....

    Well.. it could be something...
  6. Strange....

    After recreating the schema (and redeploy the application), it is all ok. My question is then... how can this happen?

    My guess is redeploying the application does not configure the scheduler to...
  7. Spring instance of org.quartz.JobDataMap

    Gday,

    I have the following in my spring config:


    <bean name="summaryTransferJob" class="org.quartz.JobDetail">
    <property name="name" value="summaryTransferJob"/>
    <property...
  8. Replies
    3
    Views
    2,919

    @Repository & HibernateDaoSupport

    Gday all,


    As I understand it (might be completely wrong!), the benefits of using @Repository are:
    - exception translation
    - you dont need to 'register' the bean in the spring's XML...
  9. hmm...

    Hi there..

    Thanks for the reply.

    I had a look at Spring MVC to achieve what I want:

    1. ServletForwardingController
    This does not seem to solve what I need, since the servlet is not...
  10. Spring + servlet

    I guess my question can be summarized to:


    How to make the url request gets served by bean instance that is managed by Spring?


    Thanks again!
  11. Spring 2.5 & JSR 250 support

    Hi there...



    I am having the same problem here. In the past I've been using:

    WebApplicationContextUtils.getRequiredWebApplicationContext(..).getBean("...")

    But that is not DI. It is just...
  12. Replies
    3
    Views
    854

    Say my business layer is written as follow (just...

    Say my business layer is written as follow (just pseudo code):


    public interface Business{
    @Transactional(readOnly=false)
    public void doSomething();
    }

    public class BusinessImpl...
  13. Replies
    3
    Views
    854

    Transaction + web layer

    Hello,


    At the moment I'm using @Transactional annotation for the business objects. This works fine when the error occurs at that level (rollback, etc). But what if the exception occurs at the...
  14. Replies
    0
    Views
    731

    Transaction & Test case

    Hi all,


    I am currently writing a test case using Spring. Basically I have a method that should execute
    under transaction (saveOrder() below). In this method, I delete any existing order, and...
  15. Replies
    2
    Views
    1,297

    Hi Rick, Thx for that. I shall do some reading...

    Hi Rick,

    Thx for that. I shall do some reading on it.
    Thanks again.
  16. Replies
    2
    Views
    1,297

    IntroductionAdvice & adding interface..

    Gday,

    I'm having a situation where I want to introduce an interface to an existing bean (from third party library). In particular, I want to make this bean to implement the Serializable interface....
  17. Replies
    1
    Views
    709

    Ok.... Since there are no reply, I've tried the...

    Ok....
    Since there are no reply, I've tried the following:


    create a new method in the interface.. reset(), with @Transactional annotation.
    In the implementing class, I call the other two...
  18. Replies
    1
    Views
    709

    Basic question regarding Transaction

    Hello,

    I'm fairly new to Spring, and I would like to use Spring to manage a transaction.
    I've written a simple application that looks like this:

    -----------------------------------------
    ...
  19. Replies
    3
    Views
    1,276

    Performance of dependency injection

    Gday,

    I'm fairly new to Spring (used Spring for a bit in my app). One thing that I noticed is that the app runs faster without the dependency injection (i.e. without Spring).

    Is this a normal...
  20. Replies
    3
    Views
    5,844

    hmm..

    Thats exactly i'm looking for at the moment.
    Has anyone find a way to do this?

    My problem is not quite the same as above. But similar..
    This is what I have in my application context:



    ...
  21. TypeMismatchException: failed to convert property value of type xxx to required type

    Gday,


    Sorry for the basic question... basically I have the following spring configuration file..



    <beans>
    <bean id="credentialFetcher"...
  22. Method afterThrow() in ThrowsAdvice did not get called

    Gday,


    I am having a problem in using ThrowAdvice class. I've been Googling + looking through this forum for a fully working example of ThrowAdvice.

    Basically, I have a basic class that...
  23. Thank you!

    Thank you!

    You have saved me.. I've been banging my head against this desk for the past 2 hours. :rolleyes:
Results 1 to 23 of 23