users@genericjmsra.java.net

"message-destination-link" must be declared

From: zhang jianhua <zangjianhua_at_yahoo.com>
Date: Mon, 27 Feb 2006 10:03:33 -0800 (PST)

I'm working on migrating our application from
Weblogic/JBoss to Sun Application Server. There is a
Message Bean to subscribe a durable topic on external
JMS server(locates in another Sun Application Server).


I follow the sample tibco server, but failed. I have
two questions.

1. How do I set JndiProperties? It always returns
NameNotfound? I'm sure that the ConnectionFactory JNDI
exists, since it works if I use a standalone
application. I traced the source and found the
exception was thrown by calling
"lookup(this.jndiName)". I set the JndiProperties as
"java.naming.provider.url=iiop://localhost:36613".

=======ObjectBuilderFactory.java===========
        public Object createObject() throws
ResourceException {
            try {
                Hashtable props =
parseToProperties(this.jndiProps);
                debug("Properties passed to
InitialContext :: " + props);
                InitialContext ic = new
InitialContext(props);
                debug("Looking the JNDI name :" +
this.jndiName);
                return ic.lookup(this.jndiName);
}

2. I see message-destination-link in the sample
ejb-jar.xml. But I could not find it on
http://java.sun.com/dtd/ejb-jar_2_0.dtd.

Does anyone have sample code to connect another Sun
Application Server?

Thanks in advance.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com