aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Need help in making ejb.jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Need help in making ejb.jar" Watch "Need help in making ejb.jar" New topic
Author

Need help in making ejb.jar

santosh kumar sharma
Greenhorn

Joined: Apr 05, 2010
Posts: 10
Hi,

I am new to EJB. I am using Eclipse3.5 version with glassfish as the server.
In the Eclipse3.5 i can make ear file only by making a enterprise application project. I am unable to deploy this file in the glassfish server.

Also without using any tool how can we make an ejb-jar, so that we can deploy it to any server.
I cam make the classes the bean, home and remote interface and the deployment descriptor. What's the process tp be followed after this step.
Kindly guide me, i am stuck up at the first chapter of Headfirst ejb for two days.
Tim Mercer
Greenhorn

Joined: Apr 05, 2010
Posts: 3
Have you registered glassfish with Eclipse? If you have, what are the settings that you have configured. Double click on the glassfish server in server perspective.
santosh kumar sharma
Greenhorn

Joined: Apr 05, 2010
Posts: 10
Hi, thanks for reply.
When i double click on the servers in the server view (at the bottom, next to console), there is only the Overview tab, with general information, port userid, password, Domain name, domain directory etc.

When i click the menu Window->preferences, then server. There is nothing in the Profilers, but the entries are correct in the Runtime environment.

Could you me more specific regarding the server settings you are referring to.

Also i have two issues mainly.
1) I want to generate jars, deploy using java 1.6, eclipse3.5 and glassfish combo.
2) I want to genrate ejb-jars without any tools, i.e without eclipse and in a general way so that i can deploy it on any server. yes that would need some changes, but that can be implemented, i guess.
adil qureshi
Ranch Hand

Joined: Jul 11, 2008
Posts: 48
santosh kumar sharma wrote:Hi,

I am new to EJB. I am using Eclipse3.5 version with glassfish as the server.
In the Eclipse3.5 i can make ear file only by making a enterprise application project. I am unable to deploy this file in the glassfish server.

Also without using any tool how can we make an ejb-jar, so that we can deploy it to any server.
I cam make the classes the bean, home and remote interface and the deployment descriptor. What's the process tp be followed after this step.
Kindly guide me, i am stuck up at the first chapter of Headfirst ejb for two days.


There is a other way round you can do it. You can manually start your glass fish server hit localhost:4848 and login , i think the default password is adminadmin here From the console you can manually deploy after creating the Jar or Ear file .Also you can create Jar very easily using standard java Jar commands.
Also can you tell which EJB version you are using ,I will suggest EJB 3.0 .


SCJP 1.5,SCWCD 1.5
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Need help in making ejb.jar