• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need help in making ejb.jar

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 .
 
What are you doing? You are supposed to be reading this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic