users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Wed, 17 Mar 2010 08:01:28 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?

No, webMethods Broker

> > 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_cus
> tom_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

Thanks for the blog link. Will see if it helps and post back the results here.

Regards
Simen
[Message sent by forum member 'simenro' (simen.rokaas_at_statkraft.com)]

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