Hello, I am using JBoss-3.0.0 and Mysql database. In my application i am using MessageDrivenBeans(MDB), when i am sending messages to server, in my bean it's giving an error (in lookup for the datasource) after getting the intial context, DataSource not bound why? i followed all the standard instructions to configure the DataSource, here the error is
8:34:39,823 ERROR [STDERR] javax.naming.NameNotFoundException: DefaultDS not bound 18:34:39,824 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:495) 18:34:39,825 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:503) 18:34:39,827 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:509) 18:34:39,828 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:282) 18:34:39,829 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 18:34:39,830 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 18:34:39,831 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 18:34:39,832 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324) 18:34:39,834 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) 18:34:39,835 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Transport.java:148) 18:34:39,836 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method) 18:34:39,837 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Transport.java:144) i created the ejb-jar.xml and jboss-xml as mentioned in JBoss documentaion, in ejb-jar.xml //////////////////// <resource-ref> <description>The default DS</description> <res-ref-name>jdbc/DefaultDS</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> in jboss.xml ///////////////////////////////// <resource-ref> <res-ref-name>jdbc/DefaultDS</res-ref-name> <jndi-name>java:/DefaultDS</jndi-name> </resource-ref> in Mdb lookup ///////////////////////////////////// InitialContext ic = new InitialContext(); DataSource ds = (DataSource) ic.lookup("jdbc/DefaultDS"); can anyone help me? I tried all the ways..but i am unable to do thanks in advance.. -- Madhu Sudhan .A M.Tech,MIGS,(MS) Software Engineer -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. infoGLYPTIC Software (P) Ltd Ph: 523 4448/49/50, fax: 523 4451 ext: 335 Cell: 98451 05295 [EMAIL PROTECTED] -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user