Search:

Type: Posts; User: Andrei Tsibets; Keyword(s):

Page 1 of 9 1 2 3 4

Search: Search took 0.02 seconds.

  1. You have to do two queries:...

    You have to do two queries:
    http://forum.springsource.org/showthread.php?137956-Query-on-DBREF-document-Fileds
  2. Replies
    6
    Views
    197

    Ok, fine Additional constructor ...

    Ok, fine

    Additional constructor


    protected Criteria2ds(List<Criteria> criteriaChain, String key) {
    super(criteriaChain, key);
    this.criteriaChain = criteriaChain;
    }
  3. Replies
    1
    Views
    143

    Why do you use " in find method? MongoDB shell...

    Why do you use " in find method? MongoDB shell find method expects document as a parameter, not a string.

    You have to add regex condition on each field you want to look through.
  4. Replies
    6
    Views
    197

    as a variant: Criteria2ds criteria = ...

    as a variant:



    Criteria2ds criteria =
    Criteria2ds.where("location")
    .geoWithin(new Polygon2ds(new Point(0, 0), new Point(3, 6), new Point(6, 1), new Point(0, 0)));

    Criteria2ds...
  5. Replies
    2
    Views
    164

    user MongoConverter from MongoTemplate: ...

    user MongoConverter from MongoTemplate:



    DBObject textSearchCommand = new BasicDBObject();
    textSearchCommand.put("text", "user");
    textSearchCommand.put("search", "testuser");
    CommandResult...
  6. Replies
    2
    Views
    171

    It can be done by executing two queries: ...

    It can be done by executing two queries:



    Query userQuery = new Query(where("nomCollaborateur").regex("xxx", "i")));
    userQuery.fields().include("_id");
    List<Object> userList =...
  7. The second document is field projection. Use the...

    The second document is field projection. Use the following:



    Query query = new Query(where("zipcode").is(63109)) {
    public DBObject getFieldsObject() {
    return...
  8. or: Query query = new Query(new...

    or:



    Query query = new Query(new Criteria().andOperator(
    where("key.attributes").elemMatch(where("name").is("k1").and("value").is("kv1")),...
  9. Try the following: BasicDBList bsonList =...

    Try the following:



    BasicDBList bsonList = new BasicDBList();
    DBObject criter1 = where("key.attributes").elemMatch(where("name").is("k1").and("value").is("kv1")).getCriteriaObject();...
  10. Why do you need to set Job Parameter?

    Why do you need to set Job Parameter?
  11. Do you have sftp_rsa file in the classpath?

    Do you have sftp_rsa file in the classpath?
  12. Have a look how it is done for reader:...

    Have a look how it is done for reader:
    http://static.springsource.org/spring-batch/reference/html/configureStep.html#late-binding



    <bean id="testWriter"...
  13. It is also possible to implement custom...

    It is also possible to implement custom FieldSetFactory, which will return extended DefaultFieldSet.



    <bean id="reader" class="org.springframework.batch.item.file.FlatFileItemReader">...
  14. Replies
    8
    Views
    467

    View Post

    <a href="<c:url value="/user/viewUsers.html">">View Users</a>
  15. Optimistic Locking...

    Optimistic Locking strategy can help you. Try to investigate Optimistic Locking in Hibernate and JPA.
  16. You don't need cast to Active MQ classes. ...

    You don't need cast to Active MQ classes.
    Message in your case can be casted to javax.jms.ObjectMessage.
  17. Have a look at JmsTemplate.browse* methods.

    Have a look at JmsTemplate.browse* methods.
  18. Try to configure "request" scope instead of...

    Try to configure "request" scope instead of "session"



    public class ExtendedGenericXmlContextLoader extends GenericXmlContextLoader {

    @Override
    protected void...
  19. Try to debug TransactionInterceptor.invoke, or...

    Try to debug TransactionInterceptor.invoke, or configure log4j trace level for it:

    log4j.properties


    log4j.logger.org.springframework.transaction = debug, console...
  20. It behaves in such manner. ...

    It behaves in such manner.

    DataIntegrityViolation is runtime exception. That is why it is propagated above service1.method1, and as a result the first transaction is rolled back too. Add try/catch...
  21. yes Decalarative transaction mamangement...

    yes


    Decalarative transaction mamangement with transaction attributes works the same as in EJB, for example, in case of service1.f1, service2.f2, hibernate trasnaction manager the picture looks...
  22. UnexpectedRollbackException is not test specific....

    UnexpectedRollbackException is not test specific. It is from spring-tx. The behaviour will be the same.

    It is spring tx implementation specific. Sertice1 and Service2 has own TransactionStatus...
  23. Remove "none" for "/j_spring_security_logout" and...

    Remove "none" for "/j_spring_security_logout" and add filters for /j_spring_security_check too.

    Are /portal_STU.zul, /portal_INA.zul, /portal_MER.zul, /portal_ADM.zul, and /portal_SPN.zul all...
  24. Replies
    3
    Views
    2,572

    login-page is...

    login-page is AuthenticationProcessingFilterEntryPoint.loginFormUrl and AuthenticationProcessingFilter.authenticationFailureUrl if authentication-failure-url is not assigned.


    I guess your...
  25. why not to use parameter? ...

    why not to use parameter?



    <prop> key="org.springframework.security.concurrent.ConcurrentLoginException">/login.jsp?error_code=2</prop>
Results 1 to 25 of 224
Page 1 of 9 1 2 3 4