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

Similar Messages

  • How do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full

    how do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full.. HELP!

    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.

  • How to read data from the excel file using java code.

    Hi to all,
    I am using below code to getting the data from the excel file but I can't get the corresponding data from the specific file. can anyone give me the correct code to do that... I will waiting for your usefull reply......
    advance thanks....
    import java.io.*;
    import java.sql.*;
        public class sample{
                 public static void main(String[] args){
                      Connection connection = null;
                          try{
                               Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                               Connection con = DriverManager.getConnection( "jdbc:odbc:Mydsn","","" );
                               Statement st = con.createStatement();
                               ResultSet rs = st.executeQuery( "Select * from [Sheet1$]" );
                               System.out.println("sample:"+rs);
                                  ResultSetMetaData rsmd = rs.getMetaData();
                                  System.out.println("samplersd:"+rsmd);
                               int numberOfColumns = rsmd.getColumnCount();
                                  System.out.println("numberOfColumns:"+numberOfColumns);
                                   while (rs.next()) {
                                            System.out.println("sample1:"+rs);
                                            for (int i = 1; i <= numberOfColumns; i++) {
                                                 if (i > 1) System.out.print(", ");
                                                 String columnValue = rs.getString(i);
                                                 System.out.print(columnValue);
                                            System.out.println("");
                                       st.close();
                                       con.close();
                                      } catch(Exception ex) {
                                           System.err.print("Exception: ");
                                           System.err.println(ex.getMessage());
                        }

    1: What is the name of the excel sheet?
    2: What is printed in this program? null ? anything?
    error?Excel file name is "sample.xls" I set excel file connectivity in my JDBC driver(DSN). Here in my program I am not giving that excel file name. I am giving only that excel sheet name. that is followed
    ResultSet rs = st.executeQuery( "Select * from [Sheet1$]" );The output of this program is given bellow.
    sample:sun.jdbc.odbc.JdbcOdbcResultSet@1b67f74
    samplersd:sun.jdbc.odbc.JdbcOdbcResultSetMetaData@530daa
    numberOfColumns:2

  • In the attached VI I dont understand why data from the inner case structures are not being transmitted to the array.

    In the attached VI I don't understand why data from the inner case structures are not being transmitted to the array.
    Thank you.
    Solved!
    Go to Solution.
    Attachments:
    TEMP.vi ‏25 KB

    It took me some time to figure what you are trying to do but I think I have it now.
    The SR is still required.
    What is happening is your "Bundle By Name" is replacing all of the fields of the cluster, not just the value coming out of the case structure. So to maintain the cluster stuff you do in earlier iterations you can either...
    1) Put the "Index array, Bundle by name, and Replace array" inside the case structure and ONLY bundle the value you are setting in that iteration. (as you will see Tim post shortly)
    OR
    2) Move the Index array before the Case, unbundle all of the fields and feed teh case structure and run them across the case so that ALL of your output tunnels come from the coresponding input tunnel EXCEPT for the filed you are trying to set.
    Ben
    Message Edited by Ben on 05-05-2010 01:31 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?

    Hi All,
    I am new to TestStand. Still in the process of learning it.
    What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?
    Thanks in advance,
    LaVIEWan
    Solved!
    Go to Solution.

    Hi,
    Using the Parameters is the correct method to pass data into and out of a sub sequence. You assign your data to be passed into or out of a Sequence when you are in the Edit Sequence Call dialog and in the Sequence Parameter list.
    Regards
    Ray Farmer

  • HT5463 Why is there not an option to allow texts from the same group of allowed callers in do not disturb mode? Seems like a no-brainer!

    Why is there not an option to allow texts from the same group of allowed callers in do not disturb mode? Seems like a no-brainer!

    www.apple.com/feedback

  • Why is the library on my phone different from the one on my computer (I have iTunes Match)

    Why is the library on my phone different from the one on my computer? (I have iTunes Match) I just want the song off my computer to be the songs I have on my phone.

    Hey there Sparkly3gs,
    It sounds like your camera is not rotating as expected in the camera app. I want to recommend starting by quitting the running apps on the phone.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that restart the phone:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If the issue persists, I would next backup your device to iTunes, and restore it:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    I would suggest before restoring from your backup setup the device as new and make sure the camera functions as expected. Then restore from your backup and verify it still works.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • Why is the bottom of my macbook separating from the computer? It looks like a screw is missing??

    Why is the rubber part on the bottom of my computer separating from the computer? It looks like a screw is missing? Is this typical? I bought it last March.

    Welcome to Apple Support Communities.
    Apple has a replacement program.
    This should answer your questions:
    http://www.apple.com/support/macbook-bottomcase/

  • Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Not a lot of details here, but my guess is this isn't working for you because you are wiring in the task to the Active Channels Property and not the actual Channel Name. I have attatched a screenshot of what I believe you are trying to do. The Task has 2 channels in it, so I need to index off one of the channels and wire it into the active channels input of the Channel Property node. Then I can read information about that channel
    Attachments:
    channel_name.JPG ‏69 KB

  • Failed to retrieve data from the database (Apache derby). Details: java.lang.reflect.InvacationTargetException

    Post Author: johnnighter
    CA Forum: Data Connectivity and SQL
    Hi,Good Day !I followed crxi_java_bean_data_source.pdf to setup and configure Crystal Report XI (Product Version 11.0.0.1282, CR Developer; Product Type: Full).Below is the sample code.import java.sql.*;public class CRSampleDataSourceBean {    private ResultSet resultSet = null;    private Connection connection = null;     private String connectionURL = "jdbc:derby:MyDatabase";    private String databaseClass = "org.apache.derby.jdbc.EmbeddedDriver";    private String query = "SELECT * FROM CUSTOMER";         public CRSampleDataSourceBean()     {        try         {                        Class.forName(databaseClass);                        connection = DriverManager.getConnection(connectionURL, "", "");        }         catch (ClassNotFoundException ex)         {            System.out.println("Ensure that database driver class is installed.");            ex.printStackTrace();        }         catch (SQLException ex)         {            System.out.println("SQL Exception #" + ex.getErrorCode() + " : " + ex.getLocalizedMessage());            ex.printStackTrace();        }    }            public ResultSet getResultSet() throws SQLException     {                Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);                resultSet = statement.executeQuery(query);        return resultSet;    }}Compile no error. It display at the "Java Beans Connectivity" screen, and able to select from the "Java Bean Classes" combobox.It display at the "Available Data Sources" (left hand side) with database name CRSampleDataSourceBean->getResultSet.  BUT when click the ">" or ">>" button, it display an error message "Failed to retrieve data from the database. Details: java.lang.reflect.InvacationTargetException". Please advice. regards,johnnighter    

    Post Author: pvierheilig
    CA Forum: Crystal Reports
    Have you been able to resolve this yet?  I don't have any reference to Oracle error codes but would suspect a quick Google of something like 'Oracle error code 997' should result in good information, since it is an Oracle error...
    Hope this helps.

  • Why do I get a "can't import spreadsheet because it was created with an unsupported application version" alert when the updated version was purchased direct from the Mac App Store? The spreadsheet is now lost somewhere!

    Why do I get a "can't import spreadsheet because it was created with an unsupported application version" alert when the updated version was purchased direct from the Mac App Store? The spreadsheet is now lost somewhere!

    Pages 4.3 should still be in an iWorks folder within your Applications folder. 
    http://www.apple.com/feedback/pages.html

  • HT201335 why can't i get sound when I mirror from the latest mac mini?

    why can't i get sound when I mirror from the latest mac mini?

    if you have sound icon on your menu bar: press alt on your keyboard and click mouse on sound icon - check is the correct audio output is selected.
    If you do not have this icon: System preferences > Sound > Output and check audio output

  • HT201272 why can't I re-download already purchased music from the itunes store?

    why can't I re-download already purchased music from the itunes store?

    What country are you in ? Re-downloading music isn't currently possible in all countries (the record companies need to agree to it for each country). If you are in a country where music can be re-downloaded, then if the tracks are still in the store then they should show under the Purchased link under Quicklinks on the right-hand side of the iTunes store home page on your computer's iTunes.

  • Analyse big data in Excel? Why the dynamic tables doesn't take all the data from the source table.

    Hi,
    I'm doing a internship in a production line.
    My job is to recover production data (input data) and test data (output data) using various types of software (excel, BusinessObject sap, etc).
    To this day, I have recovered hundreds of production data, and have also organized in excel but I need to analyze and plot them.
    I would like to know who can give me an idea of ​​how I could plot as much data and analysis.
    Now i trying to use dynamic charts and plot some data but I did not get acceptable answers.
    How could I compare, analyze and graph for example:
    Five columns of production (input) with five (5) columns tested (data output).
    After graphing.
    Someone can give me a technique to analyze data? ie I compare column by column?
    or some other technique? as a conglomerate could analyze data?
    o give you an idea of ​​the contect, now I perform an internship in a manufacturing turbines.
    My job is to analyze the input data (production) and to estimate the possible behavior of the turbines in the tests.
    As I said, use dynamic tables in excel, but i have not idea why the dynamic tables doesn't  take all the data from the source table.
    I appreciate your advice
    Thanks

    You can declare as PT source whole Columns [$A:$E], without rows number.
    Then You'll have all actually data.
    Oskar Shon, Office System MVP - www.VBATools.pl
    if Helpful; Answer when a problem solved

  • Why am I unable to install some apps updates from the app store?

    Why am I unable to install some apps updates from the app store? Does anybody know why? I need help!!!

    1.   Are you using the right signing in details?
    2.   Were the Apps originally bought via the App Store?
    3.   Have you checked if they are partially downloaded?
    There is a support link here ...   Apple - Support - Mac App Store - Contact Support

Maybe you are looking for

  • Active Directory, single sign-on and  SRM Users

    We are in the process of installing SRM 7.0. using the Classic Scenario. I am seeking clarification around the creation of users in that system given the following: - My Basis colleagues are in the process of implementing single sign-on using Active

  • Error while loading  data into External table from the flat files

    HI , We have a data load in our project which feeds the oracle external tables with the data from the Flat Files(.bcp files) in unix. While loading the data, we are encountering the following error. Error occured (Error Code : -29913 and Error Messag

  • Segment Derivation in New G/L

    Dear Experts, I'm assessing the chance of activating New G/L functionalities and I would like to have more information on Segment derivation. Segment has been introduced with new G/L and, and it can be derived in 3 ways: - Directly linked in the Prof

  • Know the price from cost center and actyviti type

    Hi expert, I Know the cost center and the actyvity type. I have to know the price: I can use the transaction KSBT but I need to know some BAPI or tables without using KSBT . Any idea ?? tks a lot, bye.

  • Problem Starting WL 5.1 Server, Using Console, on Win 2000

    Dear Sir / Madam, I installed WL 5.1 with Service Pack 8, on Windows 2000. It was working fine, prior to installing Svc PK 8. However now I can not start it from the console. Nevertheless I can start it from the Start Menu, by choosing "Weblogic Serv