Hallo,

try to inject the Queue directly (private Queue backQueue;)

- Romain

2011/5/11 Rupp, Hans <[email protected]>

> Hallo,
>
>
>
> we unit test our application with OpenEJB 3.1.4.
>
> We have to use JMS. MDBs are no problem, however a Stateless Session
> Bean has to act as an sender.
>
> I have
>
> @Resource(mappedName = "jms/blaFeedbackQueue")
>
> private Destination backQueue;
>
>
>
> @Resource(mappedName = "jms/blaConnectionFactory")
>
> private ConnectionFactory connectionFactory;
>
>
>
> in this SSB. Of course our tests no fail with
>
> WARN - Jar not loaded. classpath.ear.  No provider available for
> resource-ref 'n
>
> ull' of type 'javax.jms.Destination' for 'BendaParser'.
>
> org.apache.openejb.OpenEJBException: No provider available for
> resource-ref 'nul
>
> l' of type 'javax.jms.Destination' for 'BendaParser'.
>
>
>
> Is there a way to set up a mock messaging environment with OpenEJB?
>
>
>
> Thanks,
>
>
>
> Hans
>
>
>
>
>
>
>
> 40 Jahre DZBW
> Herzlichen Dank unseren Kunden und Partnern. Wir freuen uns auf die
> gemeinsame Fortsetzung der konstruktiven, vertrauensvollen Zusammenarbeit.
> Ihre Datenzentrale Baden-Württemberg
>
> _______________________________________________________________________________
>
> Abonnieren Sie unseren Infobrief und erfahren Sie regelmäßig die neuesten
> Nachrichten über unsere Lösungen, aktuellen Projekte und Entwicklungen.
> Melden sie sich an mit diesem Link http://www.datenzentrale.de/Info-Brief
>
> _______________________________________________________________________________
>
> Datenzentrale Baden-Württemberg, Anstalt des öffentlichen Rechts
> Krailenshaldenstr. 44, 70469 Stuttgart
> Telefon (0711) 8108-20, Telefax (0711) 8108-21350
> E-Mail [email protected], Internet www.datenzentrale.de
> Vorstand: Karl Tramer (Vors.) und Harald Schätzle, Vorsitzender des
> Verwaltungsrats: Gunter Czisch
> USt-Id-Nr. DE147794223
>
> _______________________________________________________________________________
>
>
>

Reply via email to