Search:

Type: Posts; User: incubator; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. I tried this some months ago too without success,...

    I tried this some months ago too without success, and I also got stuck with the authority granter implementation...
    I have no idea what I should implement when using JAAS :s

    and a simple


    ...
  2. 1) The services are in a different .xml that...

    1) The services are in a different .xml that imports the .xml containining everything database related.
    The tx:annotation driven is placed in the same .xml as the DAO classes
    Maybe this approach is...
  3. I think I found hte problem... I stil had a...

    I think I found hte problem...

    I stil had a leftover code in my tearDown.

    I didnt know about the transactionaltestcase class I could extend from when I made this topic, so I added code in the...
  4. even when I extend the...

    even when I extend the AbstractTransactionalSpringContextTests class I keep getting



    org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow...
  5. sorry, forgot to include that. The...

    sorry, forgot to include that.

    The getSession() method is a convenience method from me.
    it calls sessionFactory.getCurrentSession();

    My transactions are in the service layer, not in the DAO...
  6. Unit testing hibernate dao in spring without templates

    I have a Hibernate DAO layer without using the HibernateTemplate and thus now using the SessionFactory.
    However for some reason I always get the following exception:

    No Hibernate Session bound to...
  7. Replies
    11
    Views
    11,447

    thats all? :) hmmm, if that is combinable with...

    thats all? :)
    hmmm, if that is combinable with the RequestMethod.GET & POST this sounds interesting.
    Thanks :)
  8. Replies
    11
    Views
    11,447

    I'd love to put it in a multiaction controller...

    I'd love to put it in a multiaction controller but I dont know how to mix requestmappings with a form with mappings without.

    If I knew then I could easily make a multiaction controller for all...
  9. Replies
    11
    Views
    11,447

    @SessionAttribute problems

    I'm trying to store a variable in the session using the @SessionAttribute variable but I think I'm doing something wrong.

    The first class is the controller that is executed when you get all...
  10. Thanks :) I totally forgot about doing it that...

    Thanks :)
    I totally forgot about doing it that way, but that does work :)
    (at least, I got no errors while deploying it, testing can be done later)
  11. Annotations: autowiring properties from property file

    Hi,

    I'm trying to autowire a bean that has a property thats filled in from a property file in the following way: (at least, thats how it was before I started using annotations)


    <bean...
  12. Replies
    2
    Views
    855

    I tried that too but it didnt work. I figured...

    I tried that too but it didnt work.
    I figured out why though.
    The PictureDao class extends from BaseDao<T, PK extends Serialisable>.

    and I read somewhere in here that Spring 2.0.6 with AspectJ...
  13. Replies
    2
    Views
    855

    After advice never called.

    Hi,

    I have the following advice:



    @Aspect
    public class PictureUpdateAspect {

    @After("execution(public void dao.PictureDao.*(model.Picture)) and this(picture)")
  14. That works indeed, thanks a lot :) What do you...

    That works indeed, thanks a lot :)

    What do you mean actually by program to interfaces?

    By programmatically making a BeanFactory and adding the interface my class implements? or can this also be...
  15. hmm, well, that class does use transactions: ...

    hmm, well, that class does use transactions:



    @Transactional(readOnly=false)
    public class SynchroniseService implements Runnable {
    ...


    and in my bean config i also have the following:
  16. Instantiating beans that implement interfaces

    I have a class that implements the Runnable interface with the following bean definition:



    <bean id="synchronisationService" class="service.SynchroniseService">
    <property name="someProperty"...
  17. Replies
    12
    Views
    9,544

    also can someone tell how you configure a webapp...

    also can someone tell how you configure a webapp client for the webservice?
    jpetstore only uses a regular application, not a web app.

    I tried deploying one on jboss but got an eexception from...
  18. Replies
    0
    Views
    1,075

    JBossMQ/JMS and Spring

    I am new to JMS and was recently asked to try to send the contents of a POJO to a message que (JBossMQ) in XML format.

    For this xml I should create an xsd and the purpouse is that at some later...
  19. but how do you make this work in hibernate? atm I...

    but how do you make this work in hibernate? atm I have to use jdbc for it:




    public class Picture &#123;
    private InputStream content;
    // other vars, getters and setters...
    &#125;
  20. Replies
    3
    Views
    1,436

    hmm, thats when I would use spring's mvc...

    hmm, thats when I would use spring's mvc features.
    But I mainly use struts for that.
    I had the opportunity to test my code from my first post and that just worked :)

    the servlet is registered in...
  21. Replies
    3
    Views
    1,545

    I dont know what kind of menu that is. I am used...

    I dont know what kind of menu that is.
    I am used to define my menu items with tiles in struts:
    tiles-defs.xml:


    <definition name="intranet.menu" path="/menu.jsp">
    <putList name="menuList">...
  22. Replies
    3
    Views
    1,436

    register a servlet as bean

    I have a plain old servlet with a doGet and doPost method wich I would like to register as a spring bean because I want it to give a DAO bean using IoC.
    But I dont know how :(

    the servlet mapping...
  23. Well, I did, and both the build, dist directories...

    Well, I did, and both the build, dist directories and the war file were all the correct one.
    I still dont know what the cause was but I reinstalled jboss completely and now it does work.
    I suppose...
  24. i know... I posted all the hibernate references...

    i know...
    I posted all the hibernate references in that xml file, and as far as I can see, the hibernateTemplate has been defined as org.springframework.orm.hibernate3.HibernateTemplate

    unless...
  25. yes, its is located in /WEB-INF/lib along with...

    yes, its is located in /WEB-INF/lib along with its dependencies
    also the hibernate-mapping.dtd is version 3.0, and all xdoclet generated mapping files are 3.0 compliant

    The weird thing is, in a...
Results 1 to 25 of 27
Page 1 of 2 1 2