• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

multiple "web applications" , common EJB's

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

 
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
It's just like a fortune cookie, but instead of a cookie, it's pie. And we'll call it ... tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic