I have just started how to do these so called EJBs. I wrote my simple ejb. and the client application as well. deployed the app.
now i tried to run the application and got the following erro which is very confusing to a beginner like me so please help:
javax.naming.InitialContext Exception: Need to specify class name in environment or system property or as an applet parameter or in an application resource file: java.naming.factory.initial
Because EJBs operate in a distributed environment, EJB clients need to "find" the EJB objects by performing a naming lookup. The InitialContext is the starting point for all naming lookups.
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects.
Interface Comparable is used to allow objects of a cl…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop.
Define While Loop:
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java.