[jboss-user] [JNDI/Naming/Network] - Re: Difference between 'java: Namespace' and 'Global JNDI Na

2007-06-06 Thread sirji

How can we lookup remote JMS queue/topic or JMS connection factory? Can we use 
use-java-context there as well?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051695
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Difference between 'java: Namespace' and 'Global JNDI Na

2007-06-06 Thread jaikiran
anonymous wrote : How can we lookup remote JMS queue/topic

queue/topic are bound in the Global JNDI and will be available to remote 
client. You have any code, where you are not able to do this? 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051811
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Difference between 'java: Namespace' and 'Global JNDI Na

2007-06-06 Thread jaikiran
As far as the ConnectionFactory is concerned, even that is available in the 
Global JNDI namespace under the name ConnectionFactory.

This chapter might help, it has some JMS examples on JBoss:

http://docs.jboss.com/jbossas/admindevel326/html/ch6.chapt.html

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051815
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Difference between 'java: Namespace' and 'Global JNDI Na

2007-05-04 Thread kooudy
It seems that it works :)
thanks

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4043156
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Difference between 'java: Namespace' and 'Global JNDI Na

2007-05-02 Thread jaikiran
I went back and looked at the code that you posted:
anonymous wrote : 
  | Context ctx = new InitialContext();
  | DataSource ds = (DataSource) ctx.lookup(project);

This should be:

Context ctx = new InitialContext();
  | DataSource ds = (DataSource) ctx.lookup(java:/project);

And with this lookup code, you need not have the use-java-context attribute 
in the ds.xml.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4042452
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Difference between 'java: Namespace' and 'Global JNDI Na

2007-04-27 Thread kooudy
By using java context:

16:40:16,964 ERROR [NewProject] project not bound
  | com.test.ProjectException: project not bound
  | at com.test.Project.getConnection(Project.java:208)
  | at com.test.Project.getNextID(Project.java:177)
  | at com.test.Project.create(Project.java:99)


Project DS is present in jndi namespace:

java: Namespace
  | 
  |   +- jaas (class: javax.naming.Context)
  |   |   +- HsqlDbRealm (class: 
org.jboss.security.plugins.SecurityDomainContext)
  |   |   +- jbossmq (class: org.jboss.security.plugins.SecurityDomainContext)
  |   |   +- JmsXARealm (class: 
org.jboss.security.plugins.SecurityDomainContext)
  |   +- TransactionPropagationContextImporter (class: 
org.jboss.tm.TransactionPropagationContextImporter)
  |   +- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl)
  |   +- comp.ejb3 (class: javax.naming.Context)
  |   |   NonContext: null
  |   +- worksheet (class: javax.sql.DataSource)
  |   +- project (class: javax.sql.DataSource)
  |   +- JBossCorbaNaming (class: org.omg.CosNaming.NamingContextExt)


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4041429
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Difference between 'java: Namespace' and 'Global JNDI Na

2007-04-25 Thread jaikiran
There should not be any problems accessing the datasource from that bean. Can 
you post the exception that you are seeing?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040459
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Difference between 'java: Namespace' and 'Global JNDI Na

2007-04-24 Thread kooudy
Sorry, I am late, but no email notification have received


  | xa-datasource
  | jndi-nameproject/jndi-name
  | use-java-contextfalse/use-java-context
  | track-connection-by-tx/
  | 
xa-datasource-classorg.postgresql.xa.PGXADataSource/xa-datasource-class
  | xa-datasource-property 
name=ServerNamelocalhost/xa-datasource-property
  | xa-datasource-property name=PortNumber5432/xa-datasource-property
  | xa-datasource-property 
name=DatabaseNametest/xa-datasource-property
  | xa-datasource-property name=Userabc/xa-datasource-property
  | xa-datasource-property name=Passwordcba/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-contextfalse/use-java-contexttrack-connection-by-tx/ I 
am not able to get DS.

thanks



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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040132
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Difference between 'java: Namespace' and 'Global JNDI Na

2007-04-23 Thread jaikiran
Can you post the -ds.xml contents and also the code from where you are looking 
up the datasource? Where does this lookup code belong - servlet/jsp?


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4039698
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Difference between 'java: Namespace' and 'Global JNDI Na

2007-04-19 Thread jaikiran
The java: namespace can be accessed only by the clients which are within the 
same JVM as the application server. The global JNDI namespace is accessible for 
all clients (remote and local clients) even if they are not in the same JVM as 
the application server.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038855
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Difference between 'java: Namespace' and 'Global JNDI Na

2007-04-19 Thread kooudy
OK,
but, I have datasource within java namespace and I am not able to get this one 
(within JBoss JVM) until I move it in global namespace, as I have mentoined.

Thank you




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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038971
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user