Results 1 to 2 of 2

Thread: DI based on @Profile

  1. #1

    Post DI based on @Profile

    Hi All,

    I wannna configure my system like below.

    I have 3 profiles in my system (client1,cleint 2,client 3)

    I have 2 implementations for a interface each defined under profile (client1 ,client 2)

    The problem is that my current active profile is "client 3" , and there is no bean implementation under this profile for the above bean, so want my system to use bean from profile "client1" automatically.

    How can I achieve it.

    Thanks in advance.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    Configure the bean outside the profile and override that definition for client2 only...
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •