Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

reusing EJB

Thread view: 
crash.test.dummy - 24 Mar 2006 20:15 GMT
hi,
  i have an existing EJB jar that performs about 90% of the tasks that
i need, and the other 10% is to perform related tasks but was not
present in the original EJB jar.

  i wanted to reuse the original EJB and possibly extend some of its
classes to accomplish the 10%. but how do i structure my new EJB jar
such that I don't need to copy the codes from the original EJB jar to
my new EJB jar?

  my idea is to just include the original EJB jar to a library folder
or something. i have no problem with copying the ejb-jar.xml from the
original to the new EJB jar, just not the codes.

  can this be done?
thanks.
James McGill - 24 Mar 2006 20:30 GMT
>    can this be done?

Probably; it's really just a java class, and there's nothign much that's
magical about it being an EJB.  You might have difficulty constructing
it; for example you might have to call the lifecycle methods or
something.  And if an EJB depends on container resources that's runtime
stuff in an appserver, you won't have any of that in isolation.  

The answer to your question depends on what your EJB does, how it does
it, and how you intend to use it now.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.