How to upgrade web app to J2EE compliant, EJB, etc.

I support an application that was designed and created before the EJB 2.0 spec
came out. It was built by a regional consulting company, who used their own application
framework instead of EJB stuff. Their framework mainly consists of classes to
handle transactions, JDBCconnections, and what is basically their equivalent of
an EJB, called a Domain Object. The framework is actually pretty impressive and
works quite well.
I'm trying to evaluate whether it would be worth 'upgrading' the entire application,
to use EJBs and other things to make it J2EE compliant. I've worked with JSPs
and servlets for a couple years, but I've no experience with EJBs. I've pieced
together an extremely simply stateless-session bean and have been able to use
it on a JSP, but now I'm trying to get entity beans working, and can't find any
examples or tutorials of how to invoke, load, create, etc. an EJB in a JSP/servlet.
Can anyone recommend a resource for this? I've just ordered the latest Enterprise
Java Beans book from OReilly, but I didn't know how much that had on actually
using EJBs within JSPs and servlets.
Thanks

Hello Karthik,
I just tried to solve my problem with your suggestions, unfortunately, my JSP channel still doesn't work :(
The portal server keeps reporting "Server Error..." when I tried to add query at the end of the href.
Do you still have any other suggestions?
Thank you

Similar Messages

  • How to debug web app with weblogic?

    I wrote a web app that includes jsp files and some javabeans, then I put the jsp files to directory
    mydomain\applications\DefaultWebApp
    then I complied javabeans and put those classes to
    mydomain\applications\DefaultWebApp\WEB-INF\classes
    Then I start the weblogic,it runs very well.
    I modified some javabean, complie them and put classes override the old classes,
    but the web app can not find the new classes.
    Any one know How to debug web app(with javabeans) in weblogic?
    thanks!

    how to config the hot deploy?
    thxSorry, for this delay in responding. I had set notify me with email option in Watch This topic; but I never did get any email notification.
    I use wls6.1; I think the process may be very similar to this in wls8.x. In wls6.1 (sp5), this is done via the -
    Dweblogic.ProductionModeEnabled=False or
    Dweblogic.ProductionModeEnabled=True
    in the startup cmd/sh script. Out of the box, wls6.1 is set to Dweblogic.ProductionModeEnabled=False which automatically enables hot deploys.

  • Instructions How To Add Web Apps

    Can someone tell me how to add web apps like the games and flashlight. I'm having a mental block lol Theres no download button on the apple site or in itunes that ive found.
    Thanks!

    Hi Jraps39
    Currently there are 2 answers to this question.
    The first applies if your iPod touch hasn't been updated with the January Software Upgrade which you can purchase through the iTunes music store. If this is the case then there is no official supported way of adding buttons to your home screen to those web apps. You can however bookmark them in Safari.
    If you have downloaded the January Software Upgrade through the iTunes Music Store then you will be able to tap the plus sign in the middle of the button bar at the bottom of the webpage in Safari and it will give you the option to "Add to Home" which will add an icon to your home screen.
    Some users have found alternative methods that are unofficially supported and cannot be mentioned on this forum however I hope the above answers your question.

  • How to put web app to Oracle 8i Jserver ?

    I've developed a web app with JDev3.1 , Oracle8i 8.1.6 on NTServer4.0.
    and want to put it on Oracle Jserver 8.1.6:
    The app works well within JDev3.1.
    I depolyed my Business Components project and test well.
    I would like to know how to put web app to Jserver. Is it possible?

    when you say "web app" i am assuming you mean an applet, servlet or java server page(jsp) ??
    if you mean this, then you need to move to the rdbms 8.1.7 environment for this support.
    rdbms 8.1.7 supports servlets and jsp's in two different ways :
    externally -- on the rdbms 8.1.7 platform
    they can be run in an external apache front end included with the 8.1.7 rdbms.
    internally -- inside the rdbms 8.1.7
    they can be deployed internally to 8.1.7 in the "oracle servlet engine" (ose)
    applets and html static pages still need to be deployed to a web server on the mid-tier OR the external apache front end included with the 8.1.7 rdbms to optimize performance.
    i hope this helps ...
    p.s. if i've misunderstood your question , please restate it.
    null

  • How to enable JMS to be J2EE Compliant from within JVM

    I am wondering how I can use JMS in J2EE compliant mode from within the JVM via a Java stored procedure.
    I know that I can set a property (i.e. oracle.jms.j2eeCompliant="true") at execution time, but was wondering how I can make the entire JVM J2EE compliant.

    You cannot make the JVM J2EE compliant! However, you can use some J2EE APIs such as JMS, on top of J2SE.
    See a basic use of JMS in Java stored procedure
    http://otn.oracle.com/sample_code/tech/java/jsp/samples/jms/Readme.html
    Note: the main purpose of JMS support within the database is to integrate with AQ.
    Kuassi

  • How to get web app root?

    IF im in a servlet/jsp how do I get the web app root? for example, if my web app's url in the browser is http://www.server.com/webapp/Servlet
    then "webapp" is the root... how do I get that in code? I don't want request URI or anything like that... just simply the web app root without anything else. Thanks

    have u tried this
    http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletRequest.html#getContextPath()
    = request.getContextPath();
    or one of the other similar methods in httprequest. one them does the trick

  • How to enable web-app "parent-last" classloading in WLS 10.3?

    Hello,
    We are having some issues when using Groovy to execute ant tasks in a webapp. They are due to the classloading order in WLS.
    The problem is this :
    - Our webapp is using Groovy 1.5.6.
    - Groovy 1.5.6 uses ant 1.7. When groovy calls ant tasks such as <untar>, <unjar>, etc, it is passing the <mapper> element, which is supported in ant 1.7.
    - When this webapp is deployed in WLS 10.3, Groovy tries to call these ant tasks, but WLS has ant 1.6 which does not support the nested <mapper> element groovy is trying to pass.
    - The groovy script blows up with an ant error because of the unsupported element.
    - We are packaging ant 1.7 jars in the WEB-INF/lib dir of our WAR file, but WLS is loading the classes from it's own classpath first, so we do not get the 1.7 impl loaded.
    The solution is to enable "parent-last" classloading for this webapp, but I can not find any documentation on how to do this.
    In Websphere you can set a checkbox for it in the console.
    In Orion, you add to the orion-web.xml file this tag <web-app-class-loader search-local-classes-first="true"/>
    ** In WebLogic, how do you do this?
    I have been searching the documentation and asking around, and I can not find an answer yet. Thanks in advance for your help!

    Try either a filtering classloader as described here:
    http://edocs.bea.com/wls/docs103/programming/classloading.html#wp1097187
    Or prefer-web-inf-classes in weblogic.xml:
    http://edocs.bea.com/wls/docs103/programming/classloading.html#wp1082452

  • How to change web-app display name within EAR file?

    Currently we are deploying an EAR file (which contains a web-app and an EJB) per
    BEA recommendations. The web-app shows up on the admin console with '/' as the
    name. Is there anyway to change this to the name I want?
    thx,
    Matt

    FYI - here is the entire content of applicaiton.xml in the EAR file we deploy:
    <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application
    1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
    <application>
    <display-name>RVApp</display-name>
    <module>
    <ejb>RVTrackingBean</ejb>
    </module>
    <module>
    <web>
    <web-uri>RVWebApp</web-uri>
    <context-root>/</context-root>
    </web>
    </module>
    </application>
    "Erik Johnson" <[email protected]> wrote:
    >
    No, you can't change that in the console. It's defined in the application's
    application.xml
    descriptor file.
    erik
    "Matt Savino" <[email protected]> wrote:
    Currently we are deploying an EAR file (which contains a web-app and
    an EJB) per
    BEA recommendations. The web-app shows up on the admin console with'/'
    as the
    name. Is there anyway to change this to the name I want?
    thx,
    Matt

  • How to expose Web App data to search engines

    Hi Guys - Need direction please
    My website contains a business directory (web app)
    The web app items are in a secure zone (the client only want registered/paid members to create their business profiles) = customer submitted web app
    It is also required that the directory is indexed by "elgooG".
    When searching for a type of business on "elgooG", they want the listed business information found, with a link to the actual detail
    e.g.: website.com\directory\Joe-blogs-plumbing
    First problem, the web app item sits behind a login (secured)
    How would you configure this so that we have the Web App item secured (paid), but also visible to search engines and general public?
    Much appreciated

    There is no reason for the whole web app to be under a securezone.
    Once you assign the owner of the item they can only edit it when they login.
    All you need to do is have a listing directory on your site that shows these. IF you do not want that and it only under a securezone of course it will never get indexed by google.
    If you want the public listing of these you just need a page and put in the web app module that outputs the list. Things like the edit link wont show unless your logged in.

  • How to deploy web app from PC to Linux with Netbeans ?

    I am developing a web app in Netbeans 6.0 on my PC, using the Tomcat comes with the IDE, now I need to deploy it to a Linux server running Tomcat, can I do it from inside the IDE ? Can it copy all the servlets and other java classes to the Linux for me ? If so, what info does it need from me ? Login, password ... ?
    If not, how can I do it by hand ?
    Frank

    RTFM
    You need to consult the NetBeans Help to see if it will export a WAR/EAR. Regarding getting it over to Linux, there are some issues there. But if you have visibility to the Linux deploy directory from your PC then it's possible. It's certainly possible to do ALL of this using Apache Ant.

  • How to develop web app by ADF Faces rich web client ?

    i want developer web app by adf face rich
    but have not adf rich tag library in jdev 10.1.3
    how to develop by adf rich?

    Hi,
    don't know what you mean by ADF Faces rich web client, but if you mean our Ajax component set, then this is not yet available outside of Oracle. If you mean ADF Faces as we have it in JDeveloper 10.1.3, create a JSF page and step through the creation process, toggle the ADF Faces libraries to make ADF Faces available
    Frank

  • How to sort web app items based on few fields of it on search result page?

    I have a web app and its search. The search results are on multiple pages means it has pagination. My client's requirement is to have a feature which will sort results based on some web app items. for example we have a field price so when user select the price it needs to sort from high to low. Any one have idea how to do it?

    I have just been playing around with this for something else, all you need to do is duplicate your price field into the weighting field and it will automatically sort from High to low for you.
    Cheers
    Duncan

  • How to exclude Web App from search results

    Hi
    Search results link to a unstyled Web App instead to the actual page it resides in.
    Please do this:
    1. go to: http://kinship.businesscatalyst.com/
    2. search for "Michael" on the top global search
    3. on the search results page click on the name (link).
    4. you will see Michael's web app item not the actuall page it resides in (http://kinship.businesscatalyst.com/About/the-team)
    How to avoid getting web app results in search?
    Thanks
    Micha

    Hi Micha
    Just add “&OT=35 “ at the end of the action in your search form:
    Ex:
    <form name=”xxxx” method=”post” action=”/Default.aspx?SiteSearchID=3566&amp;ID=/results&OT=35”>
    <div class=”search-box”><input type=”text” class= ............../>
    <input type=”submit” class=”cat_button” value=”search” />
    </div>
    </form>
    Here are the rest of the content types IDs, should you come across similar situations in the future:
    Web Pages = 1
    Literature = 6
    Announcements = 7
    FAQs = 9
    Forums = 43
    Blogs = 55
    Web Apps = 35
    Catalogs = 26
    Bookings = 48
    You can exclude multiple areas from a search, simply list them with commas: &OT=35,1,6

  • How to convert Web app into a channel?

    To whom it may concern,
    Does anyone know how to convert a Web app into a channel inside the Portal server 6.0?
    I developed the web app and tried to create a provider and a channel for it, but the Portal server did not recognize the WEB-INF folder and give me errors saying that it couldn't locate the class files.
    I also have a problem with URL inside my jsp page (channel).
    For example, I have two jsp pages:
    /etc/opt/SUNWps/desktop/default/MyCustomProvider/test1.jsp
    /etc/opt/SUNWps/desktop/default/MyCustomProvider/test2.jsp
    and when I try to put a link from test1.jsp to test2.jsp using
    ... and make a channel based on test1.jsp. The channel will display the link as "http://mydomain/portal/test2.jsp" and result in "Error: page not found". I want the link to point to
    /etc/opt/SUNWps/desktop/default/MyCustomProvider/test2.jsp
    To summarize my questions,
    1) Where should the web app be located in the Portal server?
    2) How to make a link inside one jsp page (channel) to point to another page inside the same folder?
    Thank you in advance

    Hello Karthik,
    I just tried to solve my problem with your suggestions, unfortunately, my JSP channel still doesn't work :(
    The portal server keeps reporting "Server Error..." when I tried to add query at the end of the href.
    Do you still have any other suggestions?
    Thank you

  • How to inspect web app using safari and ipad and USB cable?

    On my mac I have
    OSX 10.10.2 (14C109)
    Safari Version 8.0.3 (10600.3.18)
    On my Ipad 2 (MC769X/A) i have
    OS 8.1.3 (12B466)
    Safari Web Inspector "on"
    Javascript "on"
    There are no "privacy" or "private mode" settings that I can see.
    I physically connected my iPad to my Mac and chose that I trust this computer. Confirmed that it's connected by looking in iTunes (and quit iTunes afterwards).
    I opened a web app on my iPad that's running on my local server, and then opened safari on the mac.
    I then opened the Develop menu and can see the ipad. The menu does not contain any other entries other than "Use for development..."
    My mac also shows "No inspectable applications", whatever that means.
    If I choose "Use for development" under the iPad menu, nothing at all happens and the menu item disappears.
    To get the iPad sub-menu back again I have to quit Safari and then re-open it.

    I'm sorry I don't buy this as an answer because:
    it's for a question that is 2 years old and for older devices. My devices are all the latest version
    I have XCode and I'm a member of the develop program already.
    XCode does not offer a way to create a project or other pairing between safari on the mac and on the ipad, since that is a built in feature of Safari
    It works with IOS Simulator, but not with the actual device even when all correct steps have been followed to pair / connect them
    The problem I'm trying to resolve works in IOS Simulator but does not work on an actual device.

Maybe you are looking for