I also test it but thereis a resourceRef property of jndiName which adds java:comp/env prefix. if you don't use this property, you can add this prefix manually.
Type: Posts; User: tasdemir; Keyword(s):
I also test it but thereis a resourceRef property of jndiName which adds java:comp/env prefix. if you don't use this property, you can add this prefix manually.
While publishing a web application on OC4J (10.1.3), I get the following error:
Caused by: javax.naming.NameNotFoundException: java:comp/env/jdbc/pool/OracleCache not found in Axis-Demo
at...
I also think this is the case but I was confused with instructions in the book.
Thank you for your replies.
do you mean if there is a transaction at service layer then it is used.
if there isn't a transaction at service layer then dao templates starts one.
I'm using hibernate template and in application-context.xml i define transaction properties for my services. in "spring in action" book, "consistent dao support" part, it shows that template class...
Does Dao Template start a transaction for each operation (load(), save(), get())? if so, do we need a transaction at this dao layer? Don't we start a transaction at service layer?
In my methods I don't want repeat the same catch statements.
for example DataAccessException.
I want to log the exception, create a new exception with a custom message and rethrow it.
does spring has built in aspects for exception handling? if so,
is there any documentation about exception handling with Spring AOP?
I defined the ContextLoaderListener in web.xml but how will i get context in a java class (web service).
Thanks for your replies
You are right, but I'm only curious if I use something like this, also not only for web services, is there anything wrong for thread-safety or some other Spring philosophy.
I defined a class for loading context to use from web services. I doubt whether it is correct or not. Within web service I call it like: SpringUtil.getBean("xxxx").methodXXX();
public class...