Tim Cooke wrote:I'm pretty sure you can't pass variables into Java Annotations, so no that won't help.
Tim Cooke wrote:If you have named your bean definitions then you could use
For example (pseudo-code)
Tim Cooke wrote:
abhinas raj wrote:i need to do it using features of spring only
Tim Cooke wrote:Autowired isn't the right solution for this use case. In fact, your example given will fail to start as Spring will complain that it doesn't know which implementation of Vehicle it should inject.
You will need to write some code that will recognise the user input and create the correct implementation of Vehicle. The Factory Pattern might be a suitable approach to take here.
K. Tsang wrote:try following this
Make sure you know where the mysql logs are and where the config file my.cfg is located
Googling the error will give you other sources for solving your problem.
Ron McLeod wrote:
abhinas raj wrote:how we set barrier=0 in centos through commond line and how to set it permanently ?
You can use tune2fs to permanently set barrier. You can also specify it as a mount option in /etc/fstab.
abhinas raj wrote:how i can check value of barrier in centos ?
/proc/mounts will show you the current setting
Tim Holloway wrote:What is "barrier"? What subsystem or application does it apply to?
Dave Tolls wrote:Have you got the code working that was in that other thread, as it still looks like it wasn't working.
Knute Snortum wrote:My guess is that it does the 10 inserts atomically.
Knute Snortum wrote:I'm not sure what you mean by "what it does internally". BEGIN/END is a syntax to create a compound statement. It doesn't "do" anything.