Hi Friends,

I am very new to EJB, i need to configure jndi.properties  file in
netbeans, i dont know how to do it in netbeans.
i have seen below example, i tried to run it on my netbeans, but it
also failed with error "need to specifiy class name in enviornment or
system property"

import javax.naming.*;
 public class JNDIBind
{
private final static String JNDI = “sams/book”;

public static void main(String[] args) {
 try {
 Context ic = new InitialContext();
 ic.bind(JNDI,”Teach Yourself J2EE in 21 Days”);
 System.out.println(“Bound “+JNDI);
 }
 catch (NamingException ex) {
 System.err.println(ex);
 System.exit(1);
 }
 }


Please advice.

Regards-Sanjay

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to