"jboss.mq.destination:service=Queue,name=myQueue" does it!
thnxs!
----- Original Message -----
From: "Michael Bartmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 28, 2002 3:48 PM
Subject: Re: [JBoss-user] MalformedObjectNameException: missing domain
> "myQueue" seems to be your queues name.
> "queue/myQueue" is a possible JNDI name (depends on your config)
> "jboss.mq.destination:service=Queue,name=myQueue" is a possible
ObjectName. (depends on your config)
>
> Regards,
> Michael Bartmann
>
>
> G.L. Grobe wrote:
> > I'm getting a "MalformedObjectNameException: missing domain" and am
> > wondering what the variable queName is supposed to be set to (thinking
that,
> > that's what's wrong).
> >
> > ---
> > String adaptorName = "jmx:myServer:rmi";
> >
> > try {
> > RMIAdaptor adaptor = (RMIAdaptor) ctx.lookup(adaptorName);
> > ObjectName name = new
ObjectName("jboss.mq:service=DestinationManager");
> > RemoteMBeanServer server = new RMIConnectorImpl(adaptor);
> >
> > // i've also tried using "queue/myQueue" here, but no difference
> > ObjectName queName = new ObjectName("myQueue");
> >
> > boolean registered = server.isRegistered(queName);
> >
> > String[] sig = {"java.lang.String"};
> > Object[] arg = {"myQueue"};
> >
> > if (registered) {
> > server.invoke(name, "destroyQueue", arg, sig);
> > }
> >
> > server.invoke(name, "createQueue", arg, sig);
> > }
> >
> > ---
> >
> > Could it be something I may have left out in my context. Here's what's
> > included in that ...
> >
> > env.put(Context.INITIAL_CONTEXT_FACTORY,
> > "org.jnp.interfaces.NamingContextFactory");
> > env.put(Context.PROVIDER_URL, props.getProperty("builder.manager") +
> > ":1099");
> > env.put(Context.URL_PKG_PREFIXES,
"org.jboss.naming:org.jnp.interfaces");
> >
> > ---
> >
> > Any help much appreciated.
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Get the new Palm Tungsten T
> > handheld. Power & Color in a compact size!
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Get the new Palm Tungsten T
> handheld. Power & Color in a compact size!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user