Hi!
I'd use neither approach ;)
Take a look at Apache DeltaSpike @Exclude [1].
You can exclude beans (and thus disable alternatives and specializes) either
via ProjectStage or via configuration.
You can even do something like
@Specializes
@Exclude(onExpression="dbvendor!=oracle")
public class OracleCustomerSearchService extends PureJpaCustomerSearchService
{..
to enable native queries when using Oracle as database.
LieGrue,
strub
[1] http://deltaspike.apache.org
On Monday, 16 June 2014, 11:27, hwaastad <[email protected]> wrote:
>
>
>Hi,
>Yes, I'll give altdd a shot.
>
>Thanks.
>
>br hw
>
>
>
>
>--
>View this message in context:
>http://openejb.979440.n4.nabble.com/Alternatives-and-beans-xml-tp4670031p4670033.html
>
>Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>
>