[jboss-user] [JNDI/Naming/Network] - Re: Difference between 'java: Namespace' and 'Global JNDI Na
kooudy
do-not-reply at jboss.com
Tue Apr 24 05:48:14 EDT 2007
Sorry, I am late, but no email notification have received
| <xa-datasource>
| <jndi-name>project</jndi-name>
| <use-java-context>false</use-java-context>
| <track-connection-by-tx/>
| <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
| <xa-datasource-property name="ServerName">localhost</xa-datasource-property>
| <xa-datasource-property name="PortNumber">5432</xa-datasource-property>
| <xa-datasource-property name="DatabaseName">test</xa-datasource-property>
| <xa-datasource-property name="User">abc</xa-datasource-property>
| <xa-datasource-property name="Password">cba</xa-datasource-property>
| </xa-datasource>
|
Getting datasource (from Stateless EJB 3.0):
| Context ctx = new InitialContext();
| DataSource ds = (DataSource) ctx.lookup("project");
|
Without <use-java-context>false</use-java-context><track-connection-by-tx/> I am not able to get DS.
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040132#4040132
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040132
More information about the jboss-user
mailing list