Hi Vlada,

I am running Jboss 2.1 with Tomcat (which I downloaded from
http://www.jboss.org/bin/jboss-tomcat-2.1-beta.zip). I think thats pretty
uptodate.

I did as you suggested:

1. Added the following entry to jboss.jcml
  <mbean code="org.jboss.naming.JNDIView"
name="DefaultDomain:service=JNDIView" >
  </mbean>
2. Hit http://localhost:8082 and JNDIView and list(). I got the attached
output. As you will notice, there is no DefaultDS in there :(
3. If the problem is that DefaultDS is merely not being shown, that an
InitialContext.lookup should atleast see it. I cant really test the
java:comp/env urls since my client is not an EJB (it is just a java class).
However, even a java:/DefaultDS or /DefaultDS gets me
NameNotFoundExceptions.

******* output from list() *************************************
The operation [list] was successfully invoked for the MBean
[DefaultDomain:service=JNDIView].
The operation returned with the value:

  +- RMITopicConnectionFactory (class:
org.jbossmq.SpyTopicConnectionFactory)
  +- TopicConnectionFactory (class: org.jbossmq.SpyTopicConnectionFactory)
  +- UILTopicConnectionFactory (class:
org.jbossmq.SpyTopicConnectionFactory)
  +- RMIXATopicConnectionFactory (class:
org.jbossmq.SpyXATopicConnectionFactory)
  +- XATopicConnectionFactory (class:
org.jbossmq.SpyXATopicConnectionFactory)
  +- jmx:KASHIF:rmi (class: org.jboss.jmx.server.RMIConnectorImpl)
  +- RMIQueueConnectionFactory (class:
org.jbossmq.SpyQueueConnectionFactory)
  +- QueueConnectionFactory (class: org.jbossmq.SpyQueueConnectionFactory)
  +- UILQueueConnectionFactory (class:
org.jbossmq.SpyQueueConnectionFactory)
  +- RMIXAQueueConnectionFactory (class:
org.jbossmq.SpyXAQueueConnectionFactory)
  +- topic (class: org.jnp.interfaces.NamingContext)
  |   +- testDurableTopic (class: org.jbossmq.SpyTopic)
  |   +- example (class: org.jbossmq.SpyTopic)
  |   +- testTopic (class: org.jbossmq.SpyTopic)
  |   +- metrics (class: org.jbossmq.SpyTopic)
  |   +- bob (class: org.jbossmq.SpyTopic)
  |   +- beancache (class: org.jbossmq.SpyTopic)
  +- XAQueueConnectionFactory (class:
org.jbossmq.SpyXAQueueConnectionFactory)
  +- queue (class: org.jnp.interfaces.NamingContext)
  |   +- D (class: org.jbossmq.SpyQueue)
  |   +- C (class: org.jbossmq.SpyQueue)
  |   +- B (class: org.jbossmq.SpyQueue)
  |   +- A (class: org.jbossmq.SpyQueue)
  |   +- controlQueue (class: org.jbossmq.SpyQueue)
  |   +- testQueue (class: org.jbossmq.SpyQueue)
  |   +- ex (class: org.jbossmq.SpyQueue)
  |   +- testObjectMessage (class: org.jbossmq.SpyQueue)
  |   +- E (class: org.jbossmq.SpyQueue)
  +- UILXATopicConnectionFactory (class:
org.jbossmq.SpyXATopicConnectionFactory)
  +- UILXAQueueConnectionFactory (class:
org.jbossmq.SpyXAQueueConnectionFactory)
  +- jmx (class: org.jboss.jmx.server.JMXAdaptorImpl)


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Vladimir
> Blagojevic
> Sent: Monday, March 26, 2001 10:32 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] JndiView does not show DefaultDS?
>
>
> Hi Kashif,
>
> Are you really running JBoss 2.1?  How are you getting this output?
>
> Well here is what is happening... you are somohow using old JNDIView Mbean
> that only lists global namespace not java: namespace. That is why
> you dont see
> DefaultDS.
>
> Try using HTMLAdmin tool :
> http://www.jboss.org/documentation/HTML/ch09s92.html
>
> Vlada
>
> Kashif Noorani wrote:
>
> > I am trying to get a handle on the DefaultDS which as showin
> the JBoss log
> > is bound to java:/DefaultDS
> >
> > [DefaultDS] Starting
> > [DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
> > [DefaultDS] Started
> >
> > However, I am getting the familiar NamingExceptions for
> DefaultDS not being
> > bound. I found it intriguing that the  jndiView did not list
> the DefaultDS:
> >
> > [c:\apps\ejb\jboss\jboss-2.1\bin]jndi
> > InitialContext
> >   +- RMITopicConnectionFactory
> >   +- TopicConnectionFactory
> >   +- UILTopicConnectionFactory
> >   +- RMIXATopicConnectionFactory
> >   +- XATopicConnectionFactory
> >   +- jmx:KASHIF:rmi
> >   +- RMIQueueConnectionFactory
> >   +- QueueConnectionFactory
> >   +- UILQueueConnectionFactory
> >   +- RMIXAQueueConnectionFactory
> >   +- topic
> >   |   +- testDurableTopic
> >   |   +- example
> >   |   +- testTopic
> >   |   +- metrics
> >   |   +- bob
> >   |   +- beancache
> >   +- XAQueueConnectionFactory
> >   +- queue
> >   |   +- D
> >   |   +- C
> >   |   +- B
> >   |   +- A
> >   |   +- controlQueue
> >   |   +- testQueue
> >   |   +- ex
> >   |   +- testObjectMessage
> >   |   +- E
> >   +- UILXATopicConnectionFactory
> >   +- UILXAQueueConnectionFactory
> >   +- jmx
> >
> > Anyone know whats going on?
> >
> > Kashif
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to