I was wondering if it is possible to use two transaction manager in one service methods. Because due to the limitation of client’s mysql db configuration, we have got 2 different datasources within one database, i.e., one user/pwd/url per schema. Thats why i have to configured two transaction managers. Now I got problem when it comes to the service implementation.
Tag: jakarta-ee
How to create a SSO Service Provider?
I am new to the concept of Single Sign On. We already have a Java web application which manages its user. Now the requirement is that the authentication will be provided by the SSO Idp at customer end (using SAML) after which the request will be forwarded to our application. Since I haven’t implemented anything like this before, I need
Failed to start service jboss.persistenceunit: org.hibernate.service.UnknownServiceException
I would like to ask if somebody could help to resolve this problem because I’m stuck with it and I don’t know where the problem could be. Until now I developed my application under Glassfish Server 4. Now I deceided to change my server for WildFly and I edited some configs to be able to run it on Wild Fly.
Is it a bad practice to use a ThreadLocal Object for storing web request metadata?
I am working on a j2ee webapp divided in several modules. I have some metadata such as user name and preferences that I would like to access from everywhere in the app, and maybe also gather data similar to logging information but specific to a request and store it in those metadata so that I could optionally send it back
Signing a jnlp in order to get rid of the Security Warning
I am developing at a company where a jnlp file is used to start a swing web based java application. It has plenty of jars that are downloaded to the client’s jvm cache. When I updated my jvm to its currently latest version (build 1.7.0_45-b18) I started seeing the security warning below when I try to run the jnlp file:
JSP / JSTL causes NoClassDefFound error for TagSupport
This problem has been driving me mad for several weeks now and I suspect that the resolution, once I find it, will be simple. I have looked at every relevant answer I can find in StackOverflow but haven’t managed to resolve it, so I am hopeful that someone will be able to help me. I have re-created the problem in
Link fires method multiple no. of times
The problem is that whenever I click the link Next page on Home.xhtml to goto getMoreStatusList Page, the function getMoreStatusList is called non-stop until it throws a index out of bound exception. I am even printing the value of index that I get from the session object statusindex and the string insidegetmorestatusList when inside the getMoreStatusList() method to the console
Why do we need global-forwards and global-exceptions in struts?
I have a basic question in struts why do we need to have <global-forwards>and <global-exceptions> in struts-config.xml. If we can achieve the same things with <action-mappings> itself. Answer <global-forwards> Consider you are validating the username password for different urls like update.do insert.do delete.do If it is a valid user, you need to proceed the necessary action. If not, you need
Making Spring 3 MVC controller method Transactional
I am using Spring 3.1 and have my DAO and service layer(transactional) written. However in a special case to avoid a lazy init exception I have to make a spring mvc request handler method @transactional. But It is failing to attach transaction to that method. Method name is ModelAndView home(HttpServletRequest request, HttpServletResponse response). http://forum.springsource.org/showthread.php?46814-Transaction-in-MVC-Controller From this link it seems it
Flow of the project [closed]
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 10 years ago. Improve this question I am currently working in java projects. And I am handling many projects at a time. I use eclipse IDE for programming these applications which involves spring, hibernate,