tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Struberg <strub...@yahoo.de>
Subject Re: Alternatives and beans.xml
Date Wed, 25 Jun 2014 11:25:31 GMT
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 <helge@waastad.org> 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.
>
>
>
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message