users@glassfish.java.net

Re: Glassfish 2.1.1: External resource (NOT external JNDI)?

From: <glassfish_at_javadesktop.org>
Date: Tue, 16 Mar 2010 09:22:34 PDT

> We have GF 2.1.1, and a JMS queue hosted on a
> different (non-GF) server.

Just wondering: Which queue are you using? MQ Series?

> How can we get GF to point to this external queue? It
> seems "external resource" in GF is only applicable
> for a resource listed in some external JNDI tree.
> While we [b]could[/b] use that, we think that defeats
> the purpose of JNDI - to be ONE central directory for
> resource lookups.
>
> Is "custom resource" applicable? Seems to be meant
> for adding some internal class to the GF JNDI, but
> maybe also usable in this case?

Yes, you are correct. See this series of 3 blogs as a starting point:
http://blogs.sun.com/chengfang/entry/how_to_create_custom_resources

We are successfully using Glassfish custom resources using MQ Series
which provides a class implementing the ObjectFactory interface.

I can provide more details if you like, but have to dig around since this was done some months ago.

Cheers, Jörg
[Message sent by forum member 'jthoennes' (joerg.thoennes_at_macd.com)]

http://forums.java.net/jive/thread.jspa?messageID=392191