cancel
Showing results for 
Search instead for 
Did you mean: 

Java - Suggestion

Former Member
0 Kudos

I am basically new to Java and trying to learn this language. I installed JDK and learning the basic concepts of Java(class, Objects, Inheritance, Function Overloading, Overhiding, Exception handling etc), by writing many programs and I am able to get the concepts of OOPS Very Well

You can guide me anything else I need to cover in the Core Java.

Now I have few other goals. Like learning

1) EJB 2) Servlets and 3) Web Service 4) J2ee

To do the above task would you please tell me what are all the softwares I need to install at my machine.

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Bruce Eckel's 'Thinking in Java' is an excellent book on Java. It is available for download. E.g. here:

http://www.mindview.net/Books/TIJ/

Other good resources can be found at

http://java.sun.com/javaee/reference/index.jsp

Good luck

Roelof

Former Member
0 Kudos

Thanks Knibbe for your answer. Bascially I am not looking for any documents at this point. I an trying to understand how should I approach JAVA i.e without learning the fundamentals I cannot jump into the higher level concepts like servlets for example.

So I am trying to see what exactly I need to study in Java?

Would some could help me out please? thanks

Former Member
0 Kudos

Hi,

Well you could install Tomcat and have a look at (and make changes to) the examples there. JSP's is the easy approach for creating servlets. EJB's are not supported in Tomcat. For that, you can use NWDS.

Also NWDS has some wizards for generating J2EE modules and applications, for creating beans etc. if you select the right perspective.

NWDS has a nice visual interface for exploring these concepts.

Still I recommend downloading the Thinking in Java PDF. It is also a great reference for Java concepts, you don't need to read it entirely.

Good luck,

Roelof

Former Member
0 Kudos

Thanks Knibbe. I have the Thinking in Java PDF already, based on that only I have covered the fundamental concepts. And now I need to move on to the next level.

Please suggest me which area I need to cover next?

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Jenni,

Go through this link for J2EE examples using this you can also enhance your application.

http://help.sap.com/saphelp_nw04/helpdata/en/7d/cf0c8abcc34594ba9d3bbd5dd22155/frameset.htm

http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html

http://www.weblogic.com/docs/examples/ejb/Package-examples.ejb.html

http://www.dynamic-apps.com/tutorials/EJB_1.jsp

http://www.tusc.com.au/tutorial/html/chap6.html

Deploy your EJB project(specify JNDI name) in Application server. you can call your EJB using following code.

Create simple java applcation do the following steps:

public class SSample {

public static void main(String[] args) {

SampleEJB remote = null;

try {

Context ctx = new InitialContext();

SampleEJBHome home = (SampleEJBHome) ctx.lookup("SampleJNDI");

remote = home.create();

} catch (Exception e) {

System.out.println("Exception:" + e.getLocalizedMessage());

}

String result = remote.add(aFirst,aSecond,);

System.out.print("Result:" + result);

} catch (Exception ex) {

System.out.println("Exception:" + ex.getLocalizedMessage());

}

}

}

Go To Run > choose your program(client program to call ejb method) >

Arguments : VM Environment

paste the following code

-Djava.naming.factory.initial=com.sap.engine.services.jndi.InitialContextFactoryImpl

-Djava.naming.provider.url=191.168.0.101:50004

replace the server IP address with your server IP address where your ejbs are running.

Under Class path settings for the program put the following jar files.

You can search for them from net weaver soruce folders

or copy from c:\usr\... (search under this folder)

connector.jar

activation.jar

ejb20.jar

ogging.jar

exception.jar

sapj2eeclient.jar

sapj2eenginedeploy.jar

and RUN >>>

this makes testing of your client programs easier, you can find the error trace on which line and saves lot of time.

Regards

Suresh KB

Answers (3)

Answers (3)

Torsten_
Advisor
Advisor
0 Kudos

Hi,

all you need to start with J2EE you will find here:

http://www.jboss.com/docs/index

Best Regards,

Torsten

Former Member
0 Kudos

Hi,

If you are interested in taking certification for Java, visit http://www.sun.com/training/certification/java/index.html

There are different levels of certification and these will help you in learning the java language effectively and quickly.

Regards,

Giri

Former Member
0 Kudos

Hi

For having handson on EJB,J2EE You can download

eclipse 3.2 or BEA Workshop Studio from the following link

<a href="http://www.bea.com/callisto/eclipse.html">http://www.bea.com/callisto/eclipse.html</a>

You can also download IBM Websphere 6.1version.Its a trial version for 30 days.

<a href="http://www-128.ibm.com/developerworks/downloads/ws/was/?S_TACT=105AGX28&S_CMP=WCBDD">http://www-128.ibm.com/developerworks/downloads/ws/was/?S_TACT=105AGX28&S_CMP=WCBDD</a>

In these softwares you can create simple Enterprise j2ee,stand alone java,EJB,Struts etc applications.

You can find relevent documentation in the above sites.

You can also refer the following books

1.Headfirst servlets

2.headfirst EJB

For creating simple Web services application you can download "Java web Services developer pack" from the sun microsystem site.you will find all the relevent documents

in the site only.