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
...
Type: Posts; User: incubator; Keyword(s):
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
...
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...
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...
even when I extend the AbstractTransactionalSpringContextTests class I keep getting
org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow...
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...
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...
thats all? :)
hmmm, if that is combinable with the RequestMethod.GET & POST this sounds interesting.
Thanks :)
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...
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...
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)
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...
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...
Hi,
I have the following advice:
@Aspect
public class PictureUpdateAspect {
@After("execution(public void dao.PictureDao.*(model.Picture)) and this(picture)")
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...
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:
I have a class that implements the Runnable interface with the following bean definition:
<bean id="synchronisationService" class="service.SynchroniseService">
<property name="someProperty"...
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...
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...
but how do you make this work in hibernate? atm I have to use jdbc for it:
public class Picture {
private InputStream content;
// other vars, getters and setters...
}
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...
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">...
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...
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...
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...
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...