[jboss-user] [Messaging, JMS & JBossMQ] - Re: namenotfound exception in JMS Client
nsv
do-not-reply at jboss.com
Fri Dec 8 16:55:15 EST 2006
sorry misunderstood,
i tried without java: but still it doe not work, i get the same error
AlarmMgrConnectionFactory not bound
please see the below code
Properties properties = new Properties();
| properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
| properties.put(Context.URL_PKG_PREFIXES, "org.jnp.interfaces");
| properties.put(Context.PROVIDER_URL, "localhost:3099");
| InitialContext ctx = new InitialContext(properties);
| Object obj = ctx.lookup("AlarmMgrConnectionFactory");
But in the server log file i see that AlarmMgrConnectionFactory jndiname is java:AlarmMgrConnectionFactory
below are the lines from the log file
2006-12-09 03:18:37,501 DEBUG [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Binding object 'org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl at c8f0a4' into JNDI at 'java:AlarmMgrConnectionFactory'
| 2006-12-09 03:18:37,501 INFO [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=AlarmMgrConnectionFactory' to JNDI name 'java:AlarmMgrConnectionFactory'
| 2006-12-09 03:18:37,501 DEBUG [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Started jboss.jca:service=ConnectionFactoryBinding,name=AlarmMgrConnectionFactory
| 2006-12-09 03:18:37,501 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.jca:service=ConnectionFactoryBinding,name=AlarmMgrConnectionFactory dependent components: []
| 2006-12-09 03:18:37,501 DEBUG [org.jboss.system.ServiceController] starting service jboss.jca:service=ConnectionFactoryBinding,name=AlarmMgrConnectionFactory
| 2006-12-09 03:18:37,501 DEBUG [org.jboss.system.ServiceController] Ignoring start request for service: jboss.jca:service=ConnectionFactoryBinding,name=AlarmMgrConnectionFactory
| 2006-12-09 03:18:37,501 DEBUG [org.jboss.system.ServiceController] starting service jboss.jca:service=TxCM,name=EventConnectionFactory
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992350#3992350
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992350
More information about the jboss-user
mailing list