File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple "web applications" , common EJB's

 
Joshua White
Ranch Hand
Posts: 97
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 356
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 :-)
 
Joshua White
Ranch Hand
Posts: 97
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic