Confuse in Chapter 25 Persistence in the Web Tier's example book store.

Hi all,
I'm confusing about the example in Chapter 25 Persistence in the Web Tier.
the book store example creates the bookdbao in contextlistener
BookDBAO bookDBAO = new BookDBAO(emf);
context.setAttribute("bookDBAO", bookDBAO);and the bookdbao's constructor like this.
    public BookDBAO(EntityManagerFactory emf) throws Exception {
        try {
            em = emf.createEntityManager();
        } catch (Exception ex) {
            throw new Exception(
                    "Couldn't open connection to database: " + ex.getMessage());
    }and the servler get bookdbao like
BookDBAO bookDBAO = (BookDBAO) getServletContext().getAttribute("bookDBAO");so if many users access the servlet at the sametime,
they all get the same bookDBAO,
but i think em is not guaranteed to be threadsafe.
so the example is not thread-safe, is it?
thanks

Hi all,
I'm confusing about the example in Chapter 25 Persistence in the Web Tier.
the book store example creates the bookdbao in contextlistener
BookDBAO bookDBAO = new BookDBAO(emf);
context.setAttribute("bookDBAO", bookDBAO);and the bookdbao's constructor like this.
    public BookDBAO(EntityManagerFactory emf) throws Exception {
        try {
            em = emf.createEntityManager();
        } catch (Exception ex) {
            throw new Exception(
                    "Couldn't open connection to database: " + ex.getMessage());
    }and the servler get bookdbao like
BookDBAO bookDBAO = (BookDBAO) getServletContext().getAttribute("bookDBAO");so if many users access the servlet at the sametime,
they all get the same bookDBAO,
but i think em is not guaranteed to be threadsafe.
so the example is not thread-safe, is it?
thanks

Similar Messages

  • In Java EE 7's Firstcup tutorial, why does does the web tier consume the data from the dukes-age web service?

    In the Firstcup tutorial, the responsibilities of the web tier are listed as:
    dynamically generate content for the client
    collect input from the user
    return results from business tier components
    control the flow of client screens & pages
    maintain session state
    perform basic logic
    hold data temporarily in JavaBeans components
    Which of these responsibilities would retrieving data from a web service fall under?
    The tutorial also lists the technologies used in the web tier, and JAX-RS is not included in that list. The list of technologies used by the business tier does, however, list JAX-RS. I was surprised to find the DukesBDay JavaBeans component (in the web tier) calling the dukes-age web service, instead of the DukesBirthdayBean EnterpriseBean (in the business tier), which uses hard coded value for Duke's birth date.
    Is it typical for the web tier to consume web services in this way? What about when using an application client container, wouldn't that skip the web tier altogether, and in doing so also skip the web service call? Wouldn't DukesBirthdayBean in the business tier benefit from making the call to the web service, instead of having the date hard coded into it, and wouldn't this also solve the problem of the missing web service call when using an application client container?

    Hi Shadab,
    Here is a list of Web service standards supported by SAP in NetWeaver 7.1.1: [Supported Standards|http://help.sap.com/saphelp_nwpi711/helpdata/en/44/624479f7e608fae10000000a422035/frameset.htm] (also in [7.0|http://help.sap.com/saphelp_nw70/helpdata/EN/44/624479f7e608fae10000000a422035/frameset.htm] and [7.0.1|http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/44/624479f7e608fae10000000a422035/frameset.htm]). The Enterprise Services adhere to these standards, and on the provider side you have the tools to configure the authentication settings as needed. On the consumer side, one just has to use a Java release (or any other platform) that supports these standards.
    While I am not a Java developer, there should be [many ways to consume a Web service in Java|http://www.google.bg/search?q=consumewebservice+java].
    Hope this helps,
    Rossen

  • [svn] 2891: Add the web-tier compiler for J2EE to the Flex open source code base.

    Revision: 2891
    Author: [email protected]
    Date: 2008-08-19 07:35:22 -0700 (Tue, 19 Aug 2008)
    Log Message:
    Add the web-tier compiler for J2EE to the Flex open source code base.
    Added Paths:
    flex/sdk/trunk/modules/webtier/
    flex/sdk/trunk/modules/webtier/bootstrap/
    flex/sdk/trunk/modules/webtier/bootstrap/build.xml
    flex/sdk/trunk/modules/webtier/bootstrap/java/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/META-INF/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/META-INF/taglib.tld
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/default.properties
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/BootstrapBodyTag.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/BootstrapClassLoader.jav a
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/BootstrapFilter.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/BootstrapServlet.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/BootstrapTag.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/TagGenerator.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/jsp/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/jsp/FlashVarTa g.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/jsp/MxmlTag.ja va
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/wrappers/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/wrappers/ATGFi lterConfig.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/wrappers/ATGHt tpServletRequest.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/wrappers/ATGSe rvletConfig.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/wrappers/ATGSe rvletContext.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/wrappers/J2EEW rapper.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/util/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/util/FileUtils.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/util/J2EEUtil.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/hitachi.properties
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/interstage.properties
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/jrun.properties
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/tomcat.properties
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/weblogic.properties
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/websphere.properties
    flex/sdk/trunk/modules/webtier/build.properties
    flex/sdk/trunk/modules/webtier/build.xml
    flex/sdk/trunk/modules/webtier/coldfusion/
    flex/sdk/trunk/modules/webtier/coldfusion/build.xml
    flex/sdk/trunk/modules/webtier/coldfusion/lib/
    flex/sdk/trunk/modules/webtier/coldfusion/lib/cfmx_bootstrap.jar
    flex/sdk/trunk/modules/webtier/coldfusion/src/
    flex/sdk/trunk/modules/webtier/coldfusion/src/java/
    flex/sdk/trunk/modules/webtier/coldfusion/src/java/coldfusion/
    flex/sdk/trunk/modules/webtier/coldfusion/src/java/coldfusion/bootstrap/
    flex/sdk/trunk/modules/webtier/coldfusion/src/java/coldfusion/bootstrap/BootstrapBodyTag. java
    flex/sdk/trunk/modules/webtier/coldfusion/src/java/coldfusion/bootstrap/BootstrapTag.java

    JLundan,
    I want to thank you for responding to the thread I started on the forum at java.sun.com. Your solution to my problem of needing to print the code of the html pages that the file I included generates was just what I was looking for. However, I have some further questions to ask, if you don't mind. To clarify my task I should say that your rephrasing of the problem is accurate: "You wan't to display the contents of the HTML file that the web server produces in response of client's request?"
    Yes, this is what I need to do, but also it needs to display the source code of that html file that the server produces in response to the client's request. Also, in this case, I am the client requesting that the server return some html file, and I'm not sure where the server is. But the webserver.java file that I shared on the forum is on my local machine. I was wondering if I could modify this webserver.java file at my home so that any html file the server returns to me would automatically display the source code. This is a school project of mine and I am stuck on this one thing here.
    Further, where would I put the "foo.html" file so it can be written to?
    FileOuputStream fos = new FileOutputStream("foo.html");
    fos.write(bytes);
    fos.close();
    Thanks so much for your help. I look forward to your response, at your convenience.
    Regards

  • JAAS outside the Web Tier

    Tried posting this on the Glassfish users list to no avail
    Glassfish realms can be used to provide, in combination with j_security_check, security and authorization for web applications.
    What I don't understand however is how to use those services outside the web tier. For example, in JMS. The default JMS provider in Glassfish is OpenMQ and also supports JAAS.
    So, how do you use a Glassfish realm to clamp down your topics and queues? From the Glassfish administration console, in "New JMS Connection Factory" the only options available are properties for the password and the user name which seem to be globally set per factory.
    What am I missing here? Glassfish supports JAAS. OpenMQ supports JAAS. OpenMQ is inside Glassfish. However, OpenMQ inside Glassfish can't use Glassfish realms.

    I believe you are mistaken. My question was one of integration, not of syntax. Integration of the JAAS modules and realms already found in Glassfish in combination with OpenMQ.
    I already know OpenMQ supports JAAS and I know how to setup JAAS on a standalone OpenMQ instance.
    But this is not the case here. Under a Glassfish standard install, the OpenMQ extension folder is empty. I'm looking for either an existing bridge between the copy of OpenMQ that is embedded inside Glassfish and the Glassfish realms that the container holds or confirmation that no such bridge exists.
    At the moment, it seems the answer to this question is no, OpenMQ isn't setup to interoperate with Glassfish at that level. Furthermore, I'm unsure if I could use the same JAAS modules that are already setup in the login.conf of Glassfish due to concurrency issues.

  • Intra page "security" within the web tier

    we currently have a web application using turbine/velocity technologies. we currently have security at the page level where based on a users's role (credentials managed in oracle database tables), they can or can't see a particular page.
    now we have a requirement to present a different view based on the user's role. for instance, users in the "worker" role can't cancel an order, but they can update an order. thus they wouldn't see the cancel button. somone in the "supervisor" role could cancel an order and should see the cancel button. we want the ability to take this to the level of specifying view (and access) to any object on a particular page/screen/form/whatever.
    so, i'm interested in what others have done to perhaps tackle this interesting issue of providing component level views based on a users credentials. we also do not currently have security on our back end components (slsb), and it would be nice to use the same security model in both areas. meaning you've gotta provide security credentials to get access to the beans and those same credentials are the ones used by the web tier.
    any thoughts, reading suggestions, patterns, etc would be most most appreciated.
    Thanks!
    ~mark

    i think you should look towards jGuard (http://jguard.sourceforge.net).
    jGuard provides easy JAAS integration into J2EE.
    with jGuard, you can configure, and change on-the-fly your authentication and/or authorization settings in a unique way(works on multiple application servers).
    jGuard provides too a tag library to protect your ressources depending on your roles,or your access right to a specific url, or a specific credential like it seems you are looking for.
    to have more information on the jGuard features, you can grab them on the web site( http://jguard.sourceforge.net), or on the sourceforge page (http://sourceforge.net/projects/jguard).
    hope it helps,
    Charles (jGuard team).

  • The code you entered is invalid. Please try again.   I bought the card at my school book store today and the code is not activating.  Paid almost $250 for this I need this to activate.

       I bought the card at my school book store today and the code is not activating.  Paid almost $250 for this I need this to activate.  It is for Adobe Creative Cloud 12- month prepaid membership.  The card says it is windows and mac compatible and I am using Windows.  It is Student and Teacher Edition and I am a student.  I also have light room 5 which was purchased the same way and it works. 

    Hi johnashton07,
    We have noticed that some of our customer's tends to miss-type the code as there is a bit of confusion around the font of the redemption code.
    Common miss-type issues  found are mentioned below.
    Zero(0)  -  letter "O" as in Oscar.
    Five (5) - Letter "S" as in Sam.
    Two (2)  - Letter "Z" as in Zolo.
    Kindly try replacing these characters and please revert to the PM.
    Thanks,
    Atul Saini

  • Resource Injection in Web Tier (JSP and Servlets)

    Hi All
    I was wondering whether someone will be kind enough enough to clear this up for me as it causing me some confusion. I am using OC4J 10.1.3.4 and Java 5. I have been reading the documentation on OC4J and at one point it says that OC4J does not support resource injection(i.e. annotations) in the web tier and you'll have to use JNDI to access resources such as EJBs from the Web tier(see Sub heading Servlet or JSP Client on http://download.oracle.com/docs/cd/B25221_04/web.1013/b14428/usclient.htm) but at other points in the documentation, it seems to suggest that that resource injection is supported see(http://database.in2p3.fr/doc/oracle/Oracle_Application_Server_10_Release_3/web.1013/b28221/undejbs001.htm#CIHFEJAC).
    I am just wondering what the definitive answer is. Does OC4J support resource injection in the web client(in particular, JSP) or not. BTW I am trying to inject an EJB into a JSP client. It doesn't seem to work with resource injection but works OK with JNDI.
    Thanks

    Does any one have any sort of explanation on this?

  • Unable to run postclone script in Web tier

    Hi guys,
    I am trying to clone an existing Oracle Ebsuiness Suite 12.1.3 environment.
    Now I am trying to execute command: perl adcfgclone.pl appsTier in the Web tier node, but I am getting next error message:
    Executing script in InstantiateFile:
    /oramet01/oraprodmet/apps/tech_st/10.1.3/perl/bin/perl -I /oramet01/oraprodmet/apps/tech_st/10.1.3/perl/lib/5.8.3 -I /oramet01/oraprodmet/apps/tech_st/10.1.3/perl/lib/s
    ite_perl/5.8.3 -I /oramet01/oraprodmet/apps/apps_st/appl/au/12.0.0/perl -I /oramet01/oraprodmet/apps/tech_st/10.1.3/Apache/Apache/mod_perl/lib/site_perl/5.8.3/sun4-sola
    ris-thread-multi /oramet01/oraprodmet/apps/tech_st/10.1.3/appsutil/clone/ouicli.pl
    script returned:
    Beginning OUI CLI cloning for s_weboh_ohTue Oct 25 17:56:40 2011
    /oramet01/oraprodmet/apps/tech_st/10.1.3/jdk/bin/java -classpath /oramet01/oraprodmet/apps/apps_st/comn/clone/jlib/java:/oramet01/oraprodmet/apps/tech_st/10.1.3/oui/jli
    b/OraInstaller.jar:/oramet01/oraprodmet/apps/apps_st/comn/clone/jlib/xmlparserv2.jar:/oramet01/oraprodmet/apps/apps_st/comn/clone/jlib/ojdbc14.jar oracle.apps.ad.clone
    .util.OracleHomeCloner -OUICLI -e /oramet01/oraprodmet/inst/apps/PRODMET_gpmappora1-e/appl/admin/PRODMET_gpmappora1-e.xml -nolink -oaVar s_weboh_oh -homestub weboh -lo
    g /oramet01/oraprodmet/inst/apps/PRODMET_gpmappora1-e/admin/log/ohclone.log
    Finished OUI CLI cloning for s_weboh_oh with return code: 16777215Tue Oct 25 17:56:40 2011
    The difference that I have noted, is that in the source node the Java version in /usr/java path is pointing to 1.6.0.22:
    [oracrp ] ./java -version
    java version "1.6.0_22"
    Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
    Java HotSpot(TM) Server VM (build 17.1-b03, mixed mode)
    [gpmtest1-f]/usr/java/bin
    In the target node it is pointing to:
    $ ./java -version
    java version "1.5.0_21"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_21-b01)
    Java HotSpot(TM) Server VM (build 1.5.0_21-b01, mixed mode)
    $ pwd
    /usr/java/bin
    Any help or advice will be really appreciated.
    Thanks in advance.
    Kind regards,
    Francisco

    Hi,
    When I try to run ouicli.pl manually, I get next error message:
    $ pwd
    /oramet01/oraprodmet/apps/tech_st/10.1.3/appsutil/clone
    $ ./ouicli.pl
    Beginning OUI CLI cloning for s_weboh_ohTue Oct 25 19:09:10 2011
    /oramet01/oraprodmet/apps/tech_st/10.1.3/jdk/bin/java -classpath /oramet01/oraprodmet/apps/apps_st/comn/clone/jlib/java:/oramet01/oraprodmet/apps/tech_st/10.1.3/oui/jlib/OraInstaller.jar:/oramet01/oraprodmet/apps/apps_st/comn/clone/jlib/xmlparserv2.jar:/oramet01/oraprodmet/apps/apps_st/comn/clone/jlib/ojdbc14.jar oracle.apps.ad.clone.util.OracleHomeCloner -OUICLI -e /oramet01/oraprodmet/inst/apps/PRODMET_gpmappora1-e/appl/admin/PRODMET_gpmappora1-e.xml -nolink -oaVar s_weboh_oh -homestub weboh -log /oramet01/oraprodmet/inst/apps/PRODMET_gpmappora1-e/admin/log/ohclone.log
    Finished OUI CLI cloning for s_weboh_oh with return code: 16777215Tue Oct 25 19:09:10 2011
    Any help or advice will be really appreciated.
    Thanks in advance.
    Kind regards,
    Francisco

  • Java EE 5 Web Tier Proposed Final Draft

    We're pleased to announce the availability of the Public Review of the next versions of the specifications for the Java Web tier. This includes Servlet, JavaServer Pages (JSP), the JSP Standard Tag Library (JSTL) and JavaServer Faces (Faces). Servlet is being developed under JSR-154, JSP 2.1 is developed under JSR-245, JSTL is developed under JSR-052 and Faces 1.2 is developed under JSR-252. The expert groups are working together to improve the alignment between these these powerful web technologies.
    Building on the work that was accomplished with the Early Draft Review, this Public Review covers two additional areas that required better integration between JSP and Faces: - Tree Creation and Content Interweaving - Deferred expressions nested within iteration tags
    Please see Appendix E of the JSP spec and the Preface of the Faces spec to see details of what's changed in JSP and Faces. Please see the change-logs for the Servlet and JSTL specs for what's changed in Servlet and JSTL.
    To access the specifications:
    JSP 2.1 PR (JSR-245)
    http://jcp.org/aboutJava/communityprocess/pfd/jsr245/
    Faces 1.2 PR (JSR-252)
    http://jcp.org/aboutJava/communityprocess/pfd/jsr252/
    To access the change-logs
    Servlet 2.5 (JSR-154)
    http://jcp.org/aboutJava/communityprocess/maintenance/jsr154/index3.html
    JSTL 1.2 (JSR-052)
    http://jcp.org/aboutJava/communityprocess/maintenance/jsr052/index2.html
    Sincerely,
    The Web Tier Expert Groups!

    Any news on JSR-267?

  • Configuring Oracle Access Manager to work with Oracle Web Tier (11.1.1.3)

    I am trying to follow http://docs.oracle.com/cd/E14571_01/core.1111/e12035/oam_11g.htm to setup a load balanced OAM configuration. Following the documentation from the article (section 11.5) I'm not able to quite get this working. I believe there is a typo in 11.5.1 step 4 as admin.mycompany.com should be pointing to the IDMHOST1 and IDMHOST2, but please correct me if I'm wrong.
    My question more comes in with 11.5.2. When you declare that the OAM Server Host is sso.mycompany.com and port to be 443 you are expecting that OAM makes a call back up to the webcache but I don't believe this is happening. When I define OAM Server Host as a single machine name with OAM installed it works but when I use the load balanced URL that points to the web tier it is unable to find the server. If the call was making it up to the webcache then it would have the definition of sso.mycompany.com but if it never makes it there then it will never have that definition and the 'no server' error makes sense. Can anyone please clarify this for me?

    I am trying to follow http://docs.oracle.com/cd/E14571_01/core.1111/e12035/oam_11g.htm to setup a load balanced OAM configuration. Following the documentation from the article (section 11.5) I'm not able to quite get this working. I believe there is a typo in 11.5.1 step 4 as admin.mycompany.com should be pointing to the IDMHOST1 and IDMHOST2, but please correct me if I'm wrong.
    My question more comes in with 11.5.2. When you declare that the OAM Server Host is sso.mycompany.com and port to be 443 you are expecting that OAM makes a call back up to the webcache but I don't believe this is happening. When I define OAM Server Host as a single machine name with OAM installed it works but when I use the load balanced URL that points to the web tier it is unable to find the server. If the call was making it up to the webcache then it would have the definition of sso.mycompany.com but if it never makes it there then it will never have that definition and the 'no server' error makes sense. Can anyone please clarify this for me?

  • Web-tier design question

    Hello,
    The web tier framework I'm working utilizes Struts, and I have a question about using interfaces in base action classes. We have created static utility wrapper methods for accessing different scopes and services. Now in our base action class we have wrapper methods which wrap calls to the static utility methods. Now my colleague suggested that we create an interface that defines these wrapper methods to be used in the base classes and implement this interface in all our web-tier base classes i.e. BaseAction, BaseFilter, BaseTilesAction.
    Is this overkill? I don't see the advantage because we're never instantiating these classes. However, we would be placing a rule that these classes must contain certain functionality.
    Any insight would be greatly appreciated.
    Thanks

    Does it make sense to wrap calls to utility methods which are static?Depends - what does that accomplish? Fewer lines of code? Is there state involved in the calls (create object - set state - call method - get results)? If it accomplishes nothing concrete within the current requirements specification, refactor it later if you find a concrete reason to do so.
    There may be reasons to do the non-easy thing. Such as you are going to sell the classes and customers will subclass them. But if that isn't about to happen soon, try hard not to gold plate and complexify the code.
    How big is your application - how many servlets do you expect? How many concurrent developers (1, 2, 10, 100)?

  • When to use the EJB tier?

    Could someone explain in simple and general terms when, say for a brand new application, you should or should not use the EJB tier over retaining everything in the web tier? Obviously it will depend on what the application is, but how so?

    I generally use EJBs when i want propper transactional support in my webapps as you get lots of stuff thrown in ejbs thats saves me having to write code.
    There are loads of reasons why you should / shouldnt use ejbs though so have a look at these for a bit more info.
    When to use EJBs :
    http://www.jguru.com/faq/view.jsp?EID=126400
    or alternatively .....
    When not to use EJBs
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=11&t=006707
    Hope thats helps.
    Gaz.

  • UnmarshalException (ClassNotFoundException) on the presentation tier

    Hi!
    We experience a problem when throwing application exceptions from a session bean
    in one cluster to the client, implemented as a servlet running in another cluster.
    We currently use WLS 6.1 SP1.
    When the session bean throws a "home grown" subclass of java.lang.Exception, the
    presentation tier never receives the exception. Instead, a ClassNotFoundException
    occurs and is thrown as an UnmarshalException. The specific exception class IS available
    to the web application class loader. There are no problems with returning instances
    of our own classes from the session bean to the web application.
    I am pretty sure that the problem can be solved by including the exception classes
    in the system classpath. This is however not an option, as the classes may exist
    in several version across projects deployed on the cluster. Also I suspect that our
    platform people will not accept that we enable network class loading on the presentation
    server.
    Are there any other solutions to this problem (which do not involve a redesign of
    our services).
    Best regards,
    Jesper

    Just to follow up: I have now tried with NetworkClassLoadingEnabled="true". This no
    longer results in a ClassNotFoundException. However, the network loaded class is
    not compatible with the class already known in the web tier.
    Any suggestions are welcome...
    Regards,
    Jesper
    "Ade Barkah" <[email protected]> wrote:
    The reason I ask is that one would expect a ClassCastException instead of
    a
    ClassNotFoundException if the client has an incompatible copy? However,
    going back through this newsgroup's achives, I see there have been a few
    others
    intermittently experiencing what you're seeing, none with solutions.
    Since the client can already "see" the class, I doubt putting it in the
    system
    classpath would solve it? Network classloading should, but as you say it
    may not be acceptable. I'll try to do some further digging here when I have
    time... sorry I can't help further.
    regards,
    -Ade
    "Jesper Kamstrup Linnet" <[email protected]> wrote in message
    news:[email protected]...
    Hi Ade,
    Yes, I know for sure that it works on the presentation tier since theweb
    application
    uses the same exception class internally.
    Regards,
    Jesper
    "Ade Barkah" <[email protected]> wrote:
    Jesper,
    Can you verify that the exception class (and not merely its
    interface/definition) is available to the
    client app? I.e., if from the client code you do a "Exception test =
    new
    HomeGrownException()"
    will it work at runtime??
    regards,
    -Ade
    <Jesper Kamstrup Linnet jesper.linnet> wrote in message
    news:[email protected]...
    Hi!
    We experience a problem when throwing application exceptions from asession bean
    in one cluster to the client, implemented as a servlet running in
    another
    cluster.
    We currently use WLS 6.1 SP1.
    When the session bean throws a "home grown" subclass ofjava.lang.Exception, the
    presentation tier never receives the exception. Instead, aClassNotFoundException
    occurs and is thrown as an UnmarshalException. The specific exceptionclass IS available
    to the web application class loader. There are no problems with
    returning
    instances
    of our own classes from the session bean to the web application.
    I am pretty sure that the problem can be solved by including the
    exception
    classes
    in the system classpath. This is however not an option, as the classesmay
    exist
    in several version across projects deployed on the cluster. Also I
    suspect
    that our
    platform people will not accept that we enable network class loading
    on
    the presentation
    server.
    Are there any other solutions to this problem (which do not involve
    a
    redesign of
    our services).
    Best regards,
    Jesper

  • Does Weblogic with Apex 4.0 replaces OAS/SAO/Oracel web tier like...?

    Hi OTNian,
    Could you all please help me to understand below :
    Does Weblogic with Apex 4.0 replaces OAS/SAO/Oracel web tier like HTTP sever functionality ?
    background of quesion is:
    we had hosted our oracle webplsql application using Oracle web tier using DAD configuration.
    now some one sugegsted that we can use WLS(Weblogic server) with Apex 4.0,that too can work as HTTP sever for Oracel Webplsql application.

    Hi,
    >
    You asked:
    Does Weblogic with Apex 4.0 replaces OAS/SAO/Oracel web tier like HTTP sever functionality ?
    >
    OAS = Oracle Application Server
    SAO = Service Oriented Architecture ( this is not a server)
    Oracle Web Tier is a bundle of matching servers for the web tier. Again is not a single server, its a collection.
    APEX = A Rapid Application Development tool for webapplication development.
    Oracle Apex runs with a number a J2EE Containers (Application Servers) and Oracle HTTP Server as well. It does not use OAS, only the OHS (mod_pls) and Cache, when configured on OHS.
    APEX web access can be configured with ApexListener in a J2EE Container like WLS, Glassfish,etc.
    PLSQL Web applications can be integrated into APEX applications and features, in the loose sense of the term, as they are.
    Please search the forum to see what others have been doing for this.
    I hope this clears up some aspects of your query.
    Regards,

  • Using Web-tier compiler...

    Hi everybody,
    I am in search of a compiler that can be called on a webserver for instance the web-tier.
    However web-tier can't compile as3 files I think I am not really sure. And if it's possible I have no clew of how to do this.
    Can anybody tell me if it's possible to use the web-tier compiler to compile as3 files on the server?
    I only read about mxml files that can be send and requested. Is this the same way for as3 files?
    If it is possible does anybody have a good example of how this works?
    Kind regards

    One can definitely use Flex SDK compiler on a server with command line invocations by server side build scripts - this is done all the time.
    You should post this question on Flex forum for more details.

Maybe you are looking for