You cannot access JCA resources outside of JBoss. The reason your code is 
failing is that the java: namespace is not available. *-ds.xml definitions are 
only for resources that are targeted to be used in the EE container. If you 
simply want to post to destination outside of JBoss, create the destination and 
use the JNDI lookup


  | 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("ConnectionFactory");
  | 

>From there you can create a connection and begin producing messages. 



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992347#3992347

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992347
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to