[JBoss-user] [Messaging, JMS JBossMQ] - MDB with JBoss

2004-04-14 Thread danb99
I am trying to get the MDB example from the JBoss documentation running. Here is what 
I have to get a connection and a queue, etc:

public void setupPTP() throws JMSException, NamingException
{
Properties properties = new Properties();

properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
org.jnp.interfaces.NamingContextFactory);

properties.setProperty(Context.PROVIDER_URL, jnp://localhost:1099/);

properties.setProperty(Context.URL_PKG_PREFIXES, 
org.jboss.naming:org.jnp.interfaces);

InitialContext iniCtx = new InitialContext(properties);
Object tmp = iniCtx.lookup(ConnectionFactory);
QueueConnectionFactory qcf = (QueueConnectionFactory)tmp;
conn = qcf.createQueueConnection();
queA = (Queue)iniCtx.lookup(queue/A);
queB = (Queue)iniCtx.lookup(queue/B);
session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
conn.start();
}

When executing Object tmp = iniCtx.lookup(ConnectionFactory) I get this exception:

javax.naming.CommunicationException.  Root exception is java.rmi.ConnectException: 
Connection refused to host: 64.91.160.168; nested exception is: 
java.net.ConnectException: Connection refused: connect

Can anyone tell me what I am doing wrong? Where is 64.91.160.168 coming from?

Thanks!!
Dan


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3830593#3830593

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3830593


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: MDB with JBoss

2004-04-14 Thread danb99
My hosts file has just one entry:

127.0.0.1   localhost

Any other suggestions?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3830664#3830664

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3830664


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user