Search:

Type: Posts; User: Jonathan Alvarsson; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found

    I have just migrated to a Mac. (Java is not platform independent...)
    Running the tests that used to work perfectly on my Ubuntu machine now give me this stacktrace:

    ...
  2. Hm yea it's a bit more clear but just a bit. So...

    Hm yea it's a bit more clear but just a bit. So bascially I could do this in two ways. (What I want to do is change a property of a bean programmatically before the bean is instantiated) Either I use...
  3. BeanPostProcessor for applicationcontexts

    I have the problem described here:
    <http://forum.springframework.org/showthread.php?t=52481>
    And in order to solve it I am thinking that what I need is to programmatically add a BeanPostProcessor...
  4. iBatis SqlMapClientFactoryBean can't find sqlmapConfig.xml

    I am trying to make a system where I at runtime should be able to create and remove database instances. It is a plugin for Bioclipse <http://sourceforge.net/projects/bioclipse/> which already uses...
  5. Replies
    4
    Views
    2,139

    Please could you give me a hint as to where this...

    Please could you give me a hint as to where this "better place" is?
  6. I saw this text about Programmatically Building a...

    I saw this text about Programmatically Building a Spring Application Context. Do you think that is the way for me to go? Programmatically building one application context for each database...
  7. Connecting to multiple, dynamically generated datasources using iBatis

    I want to work with an arbitrarily number of databases which can be created at runtime by the user. See here for more info about my vision.

    I don't think there will be a big need for some sort...
  8. Great. Not sure that is what I want though. When...

    Great. Not sure that is what I want though. When I later is trying to use the object it is still a proxy... And I can't cast a parent proxy to an instance of a child class. How do I get the real...
  9. Hibernate lazy-loading proxys resolving

    I am trying to use lazy loading on a set with objects of different child classes. I don't want to load all of the objects until I actually need but I need to do different things with them depending...
  10. Okey that is probably a great solution for all...

    Okey that is probably a great solution for all web users. But I don't have a web.xml because I am not developing a web server but an application using spring and Hibernate to persist data. How can I...
  11. The answer is that it can of course. The problem...

    The answer is that it can of course. The problem was that my tables where not of the type innodb. Which they seem to need to be in order to get support for transactions in MySQL. So the solution was...
  12. Say what now? I remember something quite like...

    Say what now?

    I remember something quite like this from using Hibernate but then it was the database dialect for mysql which was wrong. I needed to use the InnoDB dialect. But there can't be...
  13. I will go for this solution from now on: ...

    I will go for this solution from now on:


    @Override
    protected void onTearDownInTransaction() throws Exception {
    super.onTearDownInTransaction();
    dao.delete(object1.getId());...
  14. Am I using the right TransactionManager? Should I...

    Am I using the right TransactionManager? Should I use a JTA transactionmanager?
  15. No difference. The objects persisted in...

    No difference. The objects persisted in onSetUpInTransaction() are still there after the test.
  16. That is because I was planning on doing the...

    That is because I was planning on doing the transactions on the level above the DAOs in my manager classes. Right now I just want Springs test classes to do the necessary transaction stuff for me.
    ...
  17. I can't get the logging to work. I placed a file...

    I can't get the logging to work. I placed a file looking like this:



    # Configure logging for testing
    log4j.rootLogger=INFO, stdout

    log4j.appender.stdout=org.apache.log4j.ConsoleAppender...
  18. Okey so I removed the call to super.onSetup()....

    Okey so I removed the call to super.onSetup(). Now, I of course don't get a java.lang.IllegalStateException but the transaction still seems to commit. Or more exactly -- the objects that I create and...
  19. Well it is not the easiest code to read but sure...

    Well it is not the easiest code to read but sure I can give some parts of it all if it can be a hint: (This class is extended for each dao)



    public abstract class GenericDaoTest<DomainType...
  20. AbstractAnnotationAwareTransactionalTests doesn't rollback

    Do I have to use something special in order to get rollback after each test when extending the AbstractAnnotationAwareTransactionalTests class? Everything seems to be commited now and I get problems...
  21. Okey found it. I had not written any sqlMapConfig...

    Okey found it. I had not written any sqlMapConfig skipped straight to sqlMap. That doesn't work...
  22. There is no statement named x in this SqlMap

    It claims that there is no statement named getAllDescriptorTypes but my sqlMapConfig looks like this:



    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE sqlMap PUBLIC...
  23. Replies
    2
    Views
    975

    Transaction manager for iBatis

    Hi am trying out using iBatis with Spring. I have some experience with using Hibernate. When using Hibernate there exists a HibernateTransactionManager. However this is not the case with iBatis, so...
  24. I ended up going with lazy initalisation on all...

    I ended up going with lazy initalisation on all beans. That might not be the best solution but it seems to be working for now...
  25. Yes I see what you mean. However I am considering...

    Yes I see what you mean. However I am considering using lazy initialising for the beans that are using the BasicDataSource bean thus hoping I will be able to set the URL before it is needed. I will...
Results 1 to 25 of 53
Page 1 of 3 1 2 3