You are correct in that a FactoryBean gives you only one object type, which seems to satisfy my current requirement but isn't as flexible as what you are suggesting..
I can't seem to find any link...
Type: Posts; User: Dipita; Keyword(s):
You are correct in that a FactoryBean gives you only one object type, which seems to satisfy my current requirement but isn't as flexible as what you are suggesting..
I can't seem to find any link...
Thanks all.
I just used a factoryBean to do my decryption.
Dipita
Thanks for responding.
I am sorry but I am not clear - how do I use a custom beanPostProcessor to do this?
Thanks!
Dipita
I tried to use FieldRetrievingFactoryBean but it doesn't seem to work - below is my code: Any idea what I am doing wrong?
Bean Definition:
<bean id="passwordWrapper.PASSWORD"...
Hi,
I am trying to create a bean that will decrypt a string field that is passed in as a property value. I then want to inject this decrypted password field (say a string) into another bean. Is...
Hi,
I am using axis2 for my web-service which also has spring bundled in it.. I specified the following in my services.xml file for the web-service:
<code>
<parameter...
Hi,
I am using sqlMapClientTemplate with Ibatis - I am trying to call a stored procedure from my code like this:
Long outParamter = (Long)...
HI all,
Thanks for all the great suggestions and help! This forum ROCKS!!!
Dipita
Thanks Vayasa10: This works great. Only thing is how can I prevent anyone from doing a new() on prototypeB? Is there a way to enforce it so that the object can only be instantiated from the...
Hi Vasaya10,
Thank you for your suggestion - so far it is more compelling than real AOP for the project I am working on.. I have one question though.
In your concrete class, do you still have...
Hi Oleksandr,
Thanks very much! I'll try AOP and see if that does the trick.
Dipita
Hi,
I managed to figure out how to get method injection to work but it doesn't seem to solve my problem:
class A { //singleton class
String a;
}
class B { //prototype class
A a;
Thanks for repsonding.
This is the what is happening in my environment: I am developing a module (which will probably be a .jar) which will be used as part of another application. I will specify...
hi gregturn,
We are developing a module that could be used as a .jar in another application so I cannot intantiate it the way you are saying. I was thinking that by the time I need this data, the...
Thanks gregturn!
However, the thing that I am not understanding is how I get the ctx?
I guess I'm unclear when I do org.springframework.context.ApplicationContext ctx = new...
Hi, I am a little confused about how to achieve this scenario using spring:
I have some beans that are getting instantiated during startup by the container using dependency injection. Now I need...
Hi all,
I've found the solution to my problem - my configuration files and code was correct. I was just calling a different configuration files that didn't have my latest files (what a dumb...
Hi,
We are using IBatis to implement persistence and trying to use SqlMapClientTemplate for getting to IBatis API.
I am running into a problem in instantiating SqlMapClientTemplate correctly. We...
Hi all,
We are going to use IBatis with Spring's dataSourceTransactionManager. In the spring reference, I don't have to set an specific methods for the datasourceTransactionManager (you have...
HI Jorg,
Thanks again for your responses. We'll try it out and let you know if we find anything else..
I love the support this forum has!
Dipita
From how i understood it, in order to use JtaTransactionManager, you'd have to use it with an app server.. Right now for my service level (small module in the application) implementation, I don't...
Hi Jorg,
Thanks for your replies.. I have a question if this scenario wuold work:
1. Say we were to use either datasourceTransactionManger or hibernateTransactionManger for testing our service....
I guess what I meant by 'local' transaction is that say the overall application will be part of the global transaction (which would use say JTA,) but it could do a nested transaction for each...
Hello,
well, there was an error in my configuration file that was causing the crash.. It works as karldmoore had suggested - thanks.
Question - what is the best practice as to where the...
Hi Andrew,
I'm fairly new to spring but I would think that you may still use the parent-child relationship but you'd have to instantiate it in the child like :
<bean id="parent"...