GeeCON Prague 2014*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Help me deploy my 1st EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Help me deploy my 1st EJB" Watch "Help me deploy my 1st EJB" New topic
Author

Help me deploy my 1st EJB

Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

Hi all,

I'm busy reading EJB in Action 3.I followed the online instructions at manning.com/panda.I have install glassfish/java EE5 and have set my J2EE_HOME and JAVA_HOME enviromental variables.I also set the admin password in common.xml.I have used the asadmin command to start and stop the server.Now I got to the first example in the book but I dont know where to deploy the beans...I'm guessing it's somewhere in SUN/SDK/.Also when the classes are compiled,will I need to specify any specific files to include on the classpath??


===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

I assume that you have build the EJB JAR. You can use

Or you can use the Admin Console and deploy it from there.


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

Oh I didn't know they need to go in JAR.Maybe I'll download some tutorials...How are you finding Linux+???
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

Quite OK so far. Most of the stuff is pretty basic especially for a regular Linux user. The hardware portion is a bit too much to learn, though.
Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

So can I create the ejb-jar using the regular jar -cf syntax?Also where do I deploy the jar to?
 
GeeCON Prague 2014
 
subject: Help me deploy my 1st EJB