my dog learned polymorphism*
The moose likes BEA/Weblogic and the fly likes multiple Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "multiple "web applications" , common EJB Watch "multiple "web applications" , common EJB New topic
Author

multiple "web applications" , common EJB's

Joshua White
Ranch Hand

Joined: Jun 04, 2001
Posts: 97
Our development team finally upgraded from weblogic 4.5.1 to weblogic 5.1.
I have read the documentation on how to write a J2EE web application on weblogic 5.1 stilll have several questions that remain unanswered. For example, what do you do with "utility classes" that are used in several web applications? What do you do with EJB's that are used in several different web applications?
I would make sense to me that you could deploy all of your entity beans in one space, referencing them from several different "web applications." Could someone please clarify how this would be done? Could this be done with classes as well?

Shubhrajit Chatterjee
Ranch Hand

Joined: Aug 23, 2001
Posts: 356
Originally posted by Joshua White:
Our development team finally upgraded from weblogic 4.5.1 to weblogic 5.1.
I have read the documentation on how to write a J2EE web application on weblogic 5.1 stilll have several questions that remain unanswered. For example, what do you do with "utility classes" that are used in several web applications? What do you do with EJB's that are used in several different web applications?
I would make sense to me that you could deploy all of your entity beans in one space, referencing them from several different "web applications." Could someone please clarify how this would be done? Could this be done with classes as well?

Use a startup class for the utility classes that are required tro be loaded at startup. Other utility classes may be used by setting them in weblogic classpath(in startWebLogic.sh/startWebLogic.cmd file)
In weblogic 5.1 any EJB that are regiistered in weblogic.properties file are available to all web apps
See weblogic EJB demo properties in your weblogic .properties file for more info

------------------
Shubhrajit :-)


Shubhrajit
Joshua White
Ranch Hand

Joined: Jun 04, 2001
Posts: 97
Shubhrajit,
That is exactly what I am looking for. Perhaps you can clarify a couple of other questions I have on the same topic.
If I put my utility classes (Those that are application independent) in the weblogic classpath (located in the startWebLogic.sh file) using the com.mydomainname.somepackage, could I define classes in the WEB-INF/classes directory such as com.mydomainname.util? I am unsure if they can co-exist.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: multiple "web applications" , common EJB's
 
Similar Threads
Question about resuable EJB's and where to deploy them.
Deserialization problem - InvalidClass w/ negative serialVersionUid for local class
Unable to build EntityManagerFactory
Stateful EJB internal mechanism
Packaging of EJB classes