Search:

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

Search: Search took 0.14 seconds.

  1. You should be able to use a naming convention for...

    You should be able to use a naming convention for the beans (e.g. "myBeanX" and "myBeanY")



    User user = //get the user
    MyBean bean = (MyBean) context.getBean("myBean"+user.getCenter()); ...
  2. You can always use the parent attribute. ...

    You can always use the parent attribute.



    <bean id="baseId" class="yourpkg.yourclass" abstract="true">
    ...can specify any properties that should be reused...
    </bean>

    <bean id="myId"...
  3. I had to add getSqlMapClient().startTransaction()...

    I had to add getSqlMapClient().startTransaction() call before the start batch call.

    Its odd that i have to call startTransaction explicitly even though a local transaction is already active (...
  4. SqlMapClientDaoSupport batch update problem (iBatis).

    I'm using iBatis SqlMapClientDaoSupport for my DAO.




    public void batchInsertCustomer&#40; final List customerList &#41;
    &#123;

    getSqlMapClientTemplate&#40;&#41;.execute&#40;new...
  5. Replies
    17
    Views
    6,606

    Multiple date formats in the same bean factory

    I have a need to handle multiple date formats in the same bean factory. How can i do this with Spring ? Is there a way to register a property editor only for a specific bean ?

    Thanks,
    Ram.
  6. Replies
    1
    Views
    1,587

    Access Principal from POJO

    I need access to Principal in my Service (implemented as a POJO).

    I would use 'EJBContext.getCallerPrincipal()' in the EJB....but how can i get access to the principle in a POJO?

    Can Spring...
  7. Replies
    4
    Views
    1,046

    This is the default behaviour in Spring....If you...

    This is the default behaviour in Spring....If you don't specify a property in the bean definition, Spring will not call the setter method.



    <bean id="abc" class="abc">
    <property...
  8. Replies
    0
    Views
    1,632

    Delegating Proxy/interceptor

    I have a case where some methods in a business interface will be invoked synchronously via EJB and some asynchronously via JMS. The client code will only use the business interface and will not be...
  9. Replies
    5
    Views
    3,276

    The EJB spec explicitly mentions (in section...

    The EJB spec explicitly mentions (in section 17.3.4)



    Its good to hear that it works with all AppServers....I'm just worried that this may change with the next release of the AppServer (I'm...
  10. Replies
    1
    Views
    2,280

    Delay your initialization of Spring...

    Delay your initialization of Spring (ApplicationContext or BeanFactory) to after the client receives the topology, then you can easily implement a BeanFactoryPostProcessor that replaces tokens...
  11. Replies
    5
    Views
    3,276

    Juergen, I'm planning to use CMT. Is there...

    Juergen,

    I'm planning to use CMT.

    Is there any way to just use the rollback functionality ( based on Exception) provided by the Spring TransactionProxy (without propagation, isolation level and...
  12. Small correction...I didn't really need the...

    Small correction...I didn't really need the "endpointAddress" attribute. I was playing with tcpmon and changed the port number in the WSDL and forgot about it....When i used the "endpointAddress",...
  13. lucas, The difference i can see is that you...

    lucas,

    The difference i can see is that you specified "wsdlTargetNamespace".

    Your spring "namespaceUri" has to match the "wsdlTargetNamespace". Once you do this you also need to specify the...
  14. Here is a sample configuration i used. I used it...

    Here is a sample configuration i used. I used it against the "stock" sample in the AXIS samples folder. You can look at the GetQuote.wsdl and deploy.wsdd in the 'stock' samples folder.



    <bean...
  15. cig, Try the following:

    cig,

    Try the following:

    <property name="serviceName"><value>HelloWorldService</value></property>

    (no urn: in the service name)

    <property name="namespaceUri"><value>urn</value></property>
  16. Replies
    1
    Views
    5,222

    I just looked at the jpetstore sample that uses...

    I just looked at the jpetstore sample that uses AXIS.

    Any reason why the "AxisPortProxyFactoryBean" is specific to this sample. Can we not make it generic to take a list of mappings to register....
  17. Replies
    1
    Views
    5,222

    Spring JAX-RPC with AXIS

    Has anybody used AXIS JAX-RPC implementation with Spring ? I couldn't find any documentation on this.

    I'm trying to implement a "wrapped" sytle service. Any help will be greatly appreciated.
  18. Replies
    14
    Views
    11,103

    How about using a Singleton context factory on...

    How about using a Singleton context factory on deserialization (based on the serialized file name)....so if there are n beans that are deserialized they will be able to share the same sigleton...
  19. Replies
    14
    Views
    11,103

    I think Serialization is important... Instead...

    I think Serialization is important...

    Instead of serializing the entire factory and all the bean definitions, can we somehow just serialize what is required for deserialize. Maybe even just allow...
  20. Replies
    4
    Views
    3,802

    You can use HotSwappableTargetSource. You have to...

    You can use HotSwappableTargetSource. You have to call swap() method whenever you want to swap the implemenation.

    I'm assuming both your beans implement a common interface.

    Ram.
  21. Update: ----------- This doesn't happen when...

    Update:
    -----------

    This doesn't happen when using "autoproxy"....but only when using the "ProxyFactoryBean"
  22. Constructor called twice when using CGLIB proxy beans.

    Why is the constructor called twice when using CGLIB proxy beans.

    I have a System.out.println in the constructor:

    System.out.println&#40;"*** inside constructor &#58; " + this&#41;;

    I can see the...
  23. I got this to work using "targetSource" and using...

    I got this to work using "targetSource" and using "org.springframework.aop.target.PrototypeTargetSource" implementation class.

    Two levels of indirection for something very simple.

    <beans>

    ...
  24. Thanks for your quick reply Colin. RE: >>>>...

    Thanks for your quick reply Colin.

    RE: >>>> "So the problem is that you are trying to create a prototype proxy, which also by definition means a prototype target is needed, but you are feeding in...
  25. Problem with ProxyFactoryBean creating non singleton beans.

    I using 1.1 RC1

    I have a simple bean definition like below:

    <beans>
    <bean id="businesslogicbean"
    class="org.springframework.aop.framework.ProxyFactoryBean">
    <property...
Results 1 to 25 of 25