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"...
Type: Posts; User: netzone_tech; Keyword(s):
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"...
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)....
We're getting this too (although we dont use nested transaction), and I believe is the problem is that:
1. ContextSourceAndHibernateTransactionManager extends HibernateTransactionManager.
2....
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...
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...
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...
Gday,
I have the following in my spring config:
<bean name="summaryTransferJob" class="org.quartz.JobDetail">
<property name="name" value="summaryTransferJob"/>
<property...
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...
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...
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!
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...
Say my business layer is written as follow (just pseudo code):
public interface Business{
@Transactional(readOnly=false)
public void doSomething();
}
public class BusinessImpl...
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...
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...
Hi Rick,
Thx for that. I shall do some reading on it.
Thanks again.
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....
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...
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:
-----------------------------------------
...
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...
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:
...
Gday,
Sorry for the basic question... basically I have the following spring configuration file..
<beans>
<bean id="credentialFetcher"...
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...
Thank you!
You have saved me.. I've been banging my head against this desk for the past 2 hours. :rolleyes: