standalone primrose context  
guest Tue Feb 12 13:44:33 GMT 2008
 
hi
I am running my stand alone program trying to get the data source from jboss .
When I register a datasource in *-ds.xml it is running fine .
This all the case of before installing the primrose in my jboss server.

After I install jboss I removed the entity of datasource and asked to run my web portals. as they are using struts(Server Components), it is running fine. I'm also running one more batch file which is a stand alone program takes the context of jboss and obtains a datasource, if jboss running this batch file will work other wise not.

This primrose does not allowing my code to get the datasource for my batch as it says no pool is obtained.

I tried the standalone*.java it is working fine but the problem is I donot want to run the batch file when server is not running. and the stand alone program set the system properties to its own initial contexts.

how can I access the primrose context with out changing the contexts of jboss

here is my code

Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
props.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
props.put(Context.PROVIDER_URL,"jnp://localhost:1099");
InitialContext ctx = new InitialContext(props);

Object ref = ctx.lookup("OracleDAODS");
ds = (DataSource)ref;
java.sql.Connection conn = ds.getConnection();

This is the code that I have written as it works better for a webcomponents but not my batch files.






















 
guest Tue Feb 12 13:47:18 GMT 2008
 
please read the line of paragraph 2 as

after I install primrose
sedj Wed Feb 13 17:11:41 GMT 2008
 
Hi,

I'm not entirely sure what you mean, but it sounds as if you are trying to remotely access a JBoss server's pools ? Is this correct ? If it is, thats not possible because primrose does not support XADatasources.
guest Mon Jul 05 15:12:00 BST 2010
 
6ttoOE cezjspjpohnu, [url=http://ctmsceqocjlu.com/]ctmsceqocjlu[/url], [link=http://tusmfidxdsjk.com/]tusmfidxdsjk[/link], http://zvtipfaftfeq.com/
guest Mon Jul 05 15:12:06 BST 2010
 
6ttoOE cezjspjpohnu, [url=http://ctmsceqocjlu.com/]ctmsceqocjlu[/url], [link=http://tusmfidxdsjk.com/]tusmfidxdsjk[/link], http://zvtipfaftfeq.com/