you could use an
AbstractRoutingDataSource for your use case
Type: Posts; User: wims.tijd; Keyword(s):
you could use an
AbstractRoutingDataSource for your use case
maybe you can try extending storedprocedure like :
FindDocumentsProcedure extends StoredProcedure
public FindDocumentsProcedure(JdbcTemplate template) {
super(template, SPROC_NAME);...
http://forum.springsource.org/showthread.php?126494-Avoiding-STS-Bogus-Warnings-And-Errors
exactly what i used to lookup keys in the database :
public class IdCountListener extends ItemListenerSupport<Map<String, Object>, Map<String, Object>> implements ChunkListener,...
you'll need a role populator like this :
<bean id="user-details-authorities-populator" class="org.springframework.security.ldap.authentication.UserDetailsServiceLdapAuthoritiesPopulator">...
these versions run fine :
spring batch admin : 1.2.2.RELEASE
spring batch : 2.1.9.RELEASE
spring integration : 2.2.0.RELEASE
spring : 3.2.0.RELEASE
@northernpole
I kept a registry to hold on to the authenticated Authentication for subsequent calls,
this was a quick way, there can be other logic of course;
For the aop advice : have to...
check my solution http://forum.springsource.org/showthread.php?73677-How-to-secure-jmxServer-(JConsole)
i use spring 3.2 with spring-resteasy which comes with its spring-mvc config,
so basically all to set up is in your web.xml
did you setup the resteasy dispatcher or
had a look at this spring-mvc...
this may a bit late reply but anyway :
some servers do not allow you to register your mbeans under an arbitrary domain name,
you should provide a domain name when registering your mbeans
okay , i got an interceptor with
<mvc:interceptors>
<mvc:interceptor>
<mvc:mapping path="/**"/>
<bean class="RepositoryHandlerInterceptor"
/>
</mvc:interceptor>...
1) i am not getting any rest events with an applicationlistener on RepositoryEvent,
2) could not get a reference to RepositoryRestHandlerMapping either :
i want to hook in an...
this happens to the example as well : spring-data-rest-webmvc-app
updating to this version does not expose any repository,
output :
{
"links": [ ],
"content": [ ]
}
use commons dbcp
<bean id="batch-job-data-source" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"
p:url="${db.url}" p:username="${db.username}" ...
i really like this addition ;
i defined a control bus along with a gateway to link it with the command :
<context:annotation-config/>
<int:channel id="request-command"/>
<int:channel...
what is working for me :
- a separate jar with the entities
- in META-INF/persistence.xml the entities listed you want to load
you do not have to specify the jar,
how does your persistence.xml look like ?
check your jnlp file : does it has the correct file names ?
and also : you'll need to define your persistence classes in the persistence.xml :
classpathscanning does not work in webstart
reference manual section 1.4.1 and override the method you need ?
DatabaseMetadataCallback and see the package org.springframework.jdbc.core.metadata
depends on where the roles are :
in db : use roleprovider which delegades to userdetailsservice
in ldap : there should be a roleprovider or implement the interface for it
this is due to classloading
your jar should be in the web-inf/lib so it can be scanned,
change it to a gateway :
<int-file:outbound-gateway directory="" request-channel="" reply-channel="generated-files" filename-generator=""/>
<int:channel id="generated-files"/>
...
he wants the generated file name,
AbstractReplyProducingMessageHandler(156 )] - handler 'org.springframework.integration.file.FileWritingMessageHandler@d38976' sending reply Message:...