Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
hi,

I'm new to JMS. but i have good knowledge of JMS. my problem is, I'm not able to run even a simple jms example.

I'm getting "javax.naming.NoInitialContextException: Need to specify class name in environment or system property" when i execute the following code
C#
Context con = new InitialContext();

 Car car = new Car();

con.bind("car",car);
Object lookup = con.lookup("car");


help me out to sesolve tis problem. i have been trying tis for the whole day.


Thanks in Advance
Posted
Updated 18-Dec-11 23:29pm
v3

1 solution

This hints[^] that a likely cause is a missing definition on your config.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900