Hi,
I've a project using maven and spring. I am trying to use a few spring component jars (e.g. spring-beans.jar, spring-aop.jar and a few more) as explicit dependencies in my pom. However, I'm...
Type: Posts; User: dendenners; Keyword(s):
Hi,
I've a project using maven and spring. I am trying to use a few spring component jars (e.g. spring-beans.jar, spring-aop.jar and a few more) as explicit dependencies in my pom. However, I'm...
Hi,
My application consists of tapestry pages backed by spring beans. The tap pages are not defined as spring beans. I want to apply an aspect to all tapestry pages (on the attach() method) so I can...
Hi,
I've a java application that I intend to deploy on many machines. I don't have much experience of using JMX in a serious way. I need a way to expose certain properties of the application for...
Why don't you just commit once, at the end of the method? What is the reasoning behind committing every BATCH_SIZE records?
It seems to me that all you're interested in is getting a plain jdbc connection to pass into legacy hibernate code. The solution you're thinking of seems to entail getting a plain jdbc connection...
This is a common problem de_Tom. What I do normally is dynamically add the number of question marks using a stringbuffer - e.g. in a seperate method:
private final String...
If you want your original way to work you'd have to make sure you have the same number of comma separated ?'s in your query as you have 'in' parameters. If you are looking for a different way to...
What's the code like for the Facility_user and Facility_role classes? Make sure methods (and the class itself) aren't final. BTW they are unusual class names for java, usually the convention would be...
Hi baronludwig,
Could you just install an instance of your prod database on your local machines to do tests? For example we deploy to Oracle, and each developer has an instance of Oracle installed...
Here's the app context config:
<bean id="ipSocket1"
class="com.fexcodcc.fdac.management.GenericServerSocket" >
<property name="handlerSelector">
<ref...
That's what I thought it should be. However, when I set lazy-init="false" on the MBeanExporter, the mbeans I define within it don't seem to get picked up in jconsole. I can do the getBean() thing, so...
Thanks again Costin - I hadn't seen your post before posting my last reply. I explicitly called the exporter using
MBeanExporter exporter = (MBeanExporter) factory.getBean("exporter");
just after...
Hi,
I've also noticed that when I register the mbean directly with the mbean server like this:
ArrayList servers = MBeanServerFactory.findMBeanServer(null);
MBeanServer server = (MBeanServer)...
Hi Costin, thanks for the post. I've tried removing the mbeanserver definition in my app context, so that all I have left by way of JMX config in my app context is simply
<bean id="exporter"
...
Does the hibernate insert statement print to your logs (all things being equals it should do as you have show_sql set to true)?
You could try to put in debug messages where you _always_ expect them...
Hi,
I'm trying to register a spring bean as a JMX bean via jconsole but can't get it working. I'm starting the spring app with the following jmx related options:
...
Hmmm, I can't spot anything blatantly wrong with your code. Does it work if you comment out the nextMessage many-to-one in your .hbm.xml?
What is the config for EblotterDS?
What kind of class is Message? Could you post the code for it and the associated hbm.xml?
BTW if you're using the hibernateTemplate you could probably use the...
Ensure defaultAutoCommit on your connection is set to false
You'd have to post the stack trace I think - otherwise it's hard to know what's null.
Could you post the classes/interfaces in question?
You can set the "searchSystemEnvironment" field to "true" for the PropertyPlaceHolderConfigurer. E.g I have in my app context
<bean id="propertyConfigurer2"
...
Might become a little clearer if you set hibernate.show_sql to 'true' - you should see what's wrong with the sql in the debug log
Looks to me like you have a collection in your BaseRuleCondition (or one of its superclasses) that is being accessed because of the use of the commons reflectionHashCode(this) method to create a...