Using the Model Facade Pattern in a Java EE 5 Web application

Hi,
Yutaka and I did a Tech tip
http://java.sun.com/mailers/techtips/enterprise/2006/TechTips_Nov06.html#2 on using a model facade pattern in Java EE 5 web-only applications recently. We got some questions about it, and these were some of the questions raised...
Question 1) the first part of the tech tip(it has two articles in it) http://java.sun.com/mailers/techtips/enterprise/2006/TechTips_Nov06.html showed how to access Java Persistence objects directly from a JSF managed bean, is this a good practice?
Question 2) when to use a facade(as mentioned in the second part of tech tip) ?
and maybe
Question 3) why doesn't the platform make this easier and provide the facade for you?
Briefly, I will take a shot at answering these three questions
Answer 1) You can access Java persistence directly from your managed beans, but as your application grows and you start to add more JSF managed beans or other web components(servlets, JSP pages etc) that also directly access Java Persistence objects, you will start to see that you are cutting/pasting similiar code to handle the transactions and to handle the Java Persistence EntityManager and other APIs in many places. So for larger applications, it is a good practice to introduce a model facade to centralize code and encapsulate teh details of the domain model management
Answer 2) IAs mentioned in answer 1, its good to use a model facade when your application starts to grow. For simple cases a spearate model facade class may not be needed and having managed beans do some of the work is a fast way to jumpstart you application development. But a facade can help keep the code clean and easier to maintain as the aplication grows.
Answer 3) First note that both of the articles in the tech tip were about pure web apps(not using any EJBs) and running on the Java EE5 platform. Yes it would be nice if a facility like this was made available for web-only applications(those not using EJBs). But for web-only applications you will need to use a hand-rolled facade as we outlined in the tech tip. The Java EE platform does provide a way to make implementing a facde easier though, and the solution for that is to use a Session Bean. This solution does require that you use ythe EJB container and have a Session Bean facade to access your Java Persistence objects and manage the transactions. The EJB Session Facade can do a lot of the work for you and you dont have to write code to manage the transactions or manage the EntityManager. This solution was not covered in this tech tip article but is covered in the Java BluePrints Solutions Catalog for Perssitence at
https://blueprints.dev.java.net/bpcatalog/ee5/persistence/facade.html in the section "Strategy 2: Using a Session Bean Facade" . Maybe we can cover that in a future tech tip.
Please ask anymore questions about the tech tip topic on this forum and we will try to answer.
hth,
Sean

Hi Sean,
I'm working on an implementation of the Model Facade pattern where you can possibly have many facades designed as services. Each service extends a basic POJO class which I'm calling CRUDService: its short code is provided below for your convenience.
The CRUDService class is meant to generalize CRUD operations regardless of the type of the object being used. So the service can be called as follows, for example:
Job flightAtt = new Job();
SERVICE.create(flightAtt);
Runway r = (Runway) SERVICE.read(Runway.class, 2);
Employee e = (Employee) SERVICE.read(Employee.class, 4);
SERVICE.update(e);
SERVICE.delete(r);SERVICE is a Singleton, the only instance of some service class extending CRUDService. Such a class will always include other methods encapsulating named queries, so the client won't need to know anything about the persistence layer.
Please notice that, in this scenario, DAOs aren't needed anymore as their role is now distributed among CRUDService and its subclasses.
My questions, then:
. Do you see any obvious pitfalls in what I've just described?
. Do you think traditional DAOs should still be used under JPA?
. It seems to me the Model Facade pattern isn't widely used because such a role can be fulfilled by frameworks like Spring... Would you agree?
Thanks so much,
Cristina Belderrain
Sao Paulo, Brazil
public class CRUDService {
    protected static final Logger LOGGER = Logger.
        getLogger(Logger.GLOBAL_LOGGER_NAME);
    protected EntityManager em;
    protected EntityTransaction tx;
    private enum TransactionType { CREATE, UPDATE, DELETE };
    protected CRUDService(String persistenceUnit) {
        em = Persistence.createEntityManagerFactory(persistenceUnit).
            createEntityManager();
        tx = em.getTransaction();
    public boolean create(Object obj) {
        return execTransaction(obj, TransactionType.CREATE);
    public Object read(Class type, Object id) {
        return em.find(type, id);
    public boolean update(Object obj) {
        return execTransaction(obj, TransactionType.UPDATE);
    public boolean delete(Object obj) {
        return execTransaction(obj, TransactionType.DELETE);
    private boolean execTransaction(Object obj, TransactionType txType) {
        try {
            tx.begin();
            if (txType.equals(TransactionType.CREATE))
                em.persist(obj);
            else if (txType.equals(TransactionType.UPDATE))
                em.merge(obj);
            else if (txType.equals(TransactionType.DELETE))
                em.remove(obj);
            tx.commit();
        } finally {
            if (tx.isActive()) {
                LOGGER.severe(txType + " FAILED: ROLLING BACK!");
                tx.rollback();
                return false;
            } else {
                LOGGER.info(txType + " SUCCESSFUL.");
                return true;
}

Similar Messages

  • When I now use the cmd-tab shortcut to go to a different open application it madly scrolls through all the open applications and does not let me select one. Any ideas as to what might be wrong. It doesn't appear to be a sticking key?

    When I now use the cmd-tab shortcut to go to a different open application it madly scrolls through all the open applications and does not let me select one. Any ideas as to what might be wrong. It doesn't appear to be a sticking key?

    Problem with the cmd-tab keyboard shortcut now cured with the latest software update, so the original problem must have been a software glitch.

  • JAVA Caching in Web Application

    Hi friends!!
    I am currently working on a web application using Servlets & Jsp. I hav to develop CACHE MANAGEMENT module for it!!!
    For this development restriction is i cannot use any External cache package(like JCS, Swarm Cache).
    So i hav to use the Cache class which comes with Java Software.(developed by sun)
    But i hav not found any such class.
    pLz tell me if anybody knows the Java class used in Object Caching!!!

    However, when the link is clicked second time then the request is not received by our servlet Impossible mate.. can you show your code. You sure there are no javascript errors ?
    Why dont you just remove your object from the session after displaying the data from it and see if your page "automatically" hits the servlet when the link is clicked.
    cheers..
    S

  • Best combination of technologies for Java db-supported web application?

    Hi everyone!
    I was given the task to develop a Java database-supported web application and am now wondering what combination of technologies would best fit my requirements.
    Basically, I am supposed to transform an "Excel-based" application into a Java-based web application that can be run in a browser in our intranet (I know, that's what a web application is supposed to do).
    The Excel application consist of an Excel sheet that holds all the data and a VBA form, that shows and lets you edit all the details/fields of a row and lets you navigate through the rows. Furthermore there are certain macros to filter the data table.
    Now, to transform the application, all data from Excel will be moved to an Oracle relational database and I want to rebuild the functionality with Java.
    Consequently, the Java application is intended to...
    - output the table as is in the browser
    - easily let you filter the data of the table
    - let you create (and save) custom filters
    - show detail view of a row
    - navigate through the rows of the (filtered) table
    - save the data that is entered/edited/deleted in the detail view back to the table in the database
    So, what are the best (and easiest to use) tools and technologies to develop such an application?
    Currently my reasearch has led me to the following conclusions:
    *1.* Architecture: I need a three-tier client-server application, which lead us to using the J2EE platform, right?
    *2.* For the persistence layer I somehow have to map the database table to a Java object,
    - either doing it completely manually (coding) using JDBC
    - or using EJB3 / Java Persistence API / Hibernate to get at least the getters and setters auto-generated, right?
    Please, correct me whenever i got something wrong!
    Oracle JDeveloper supports the mapping process with a wizard when using EJB3 and JPA
    (http://www.oracle.com/technology/obe/obe1013jdev/10131/ejb_and_jpa/master-detail_pagewith_ejb.htm)
    Is there something comparable available for Eclipse?
    *3.* I'd like to use Java Server Faces for the UI. Besides the reference implementation there are several other implementations with additional components for e.g. displaying tables. There are:
    - Apache MyFaces Trinidad (former ADF Faces, although ADF Faces looks different/has different style sheet than Trinidad?)
    - NetBeans Visual Web tools (which look quite nice in the tutorial, but require the NetBeans IDE, I guess?! Tutorial: http://www.netbeans.org/kb/60/web/web-jpa.html
    *4.* What IDE would you recommend? Should have a WYSIWYG editor for the JSF files and should support me as much as possible as a Java Learner!
    - JDeveloper
    - Eclipse (+Plugins?)
    - NetBeans
    - MyEclipse (only if there is a free version out there, I have read about an Eclipse plug-in, but don't know if that was free...)
    *5.* Do you know some good and easy-to-understand tutorials covering this problem?
    *6.* What other aspects should I think of? Are there certain technologies for the business logic or just normal JavaBeans? What about SessionBeans and ManagedBeans?
    Any help, answers, ideas, explanations, comments, recommendations, will be highly appreciated!
    Cheers,
    Chris

    Thanks paulcw, for your quick reply and helpful comments!
    The whole thing is getting bigger than I thought...
    Actually this is a 1-man-project, that I am supposed to realise for small department during my internship in a big company.
    Maybe a more detailed description of the structure may help you to understand what I actually need.
    The table of concern, is an overview of certain projects inside the company and read-only, as it is a view on another database uniting data relevant for the department.
    Then there is a second table for additional data (specific for the department) for each project. This data has to be entered, modified, deleted with the new application, while the data from the first table is only displayed.
    1) In this case, is AJAX / JavaScript still necessarily needed?
    2) EJB and Hibernate sound like overkill to me as well, but what would be the alternatives? JDBC, SQL queries and rowSets? And are the first mentioned really so hard to use?
    3) Do you have any recommendations on how to solve the multiple access problem (I'm sure, I'm not the only one with this kind of problem...)?
    Thanks to everyone in advance!
    Chris

  • SAP ICH in the SCM system is capable of publishing pages in web application

    Experts,
    We have one critical requirements where in we have to suggest customer that whether SAP ICH in the SCM system is capable of publishing pages in web application or not.
    In detail... in our customer land scape SCM is the central planning tool and there are two type of users, one type of users have direct access to SCM system where they can directly do thier demand planning, the second type of users only have access to the web application called "extranet", from which they want to see the published planning guidelines and based on that they also wants to create the demand planning (from the web application - extranet). My question is whether SAP Inventory Collaboration Hub will do for this requirement? Do we need an Enterprise Portal to facilitate this functionality? Please advice. Very impartant and critical for delivery by tomorrow. Thanks in advance.
    Warm Regards,
    Krishnan

    Hi Krishnan,
    From your query I understood that a set of DP users access the system from external location over web.
    SAP gives a solution ,using BSP web pages, to expose the SAP screens as its seen through the SAPGui's. They look similar to the standard only difference is it will be embedded in the browser. Unfortunately SAP was recommending this technology, they has plans to retire this technology as the Portal would suffice this requirement. So to answer your query the portal is a viable solution to your requirement.
    ICH cannot help you because it does not give the functionality of DP, instead its a application for collaboration between the entities (manufacturer & supplier or customer).

  • SSL: How to use the same key pair for ABAP & JAVA?

    Hello,
    I want to setup an XI (3.0 on Netweaver04)installation in the way, that ABAP AS and JAVA AS use the same key pair for SSL. My problem is to define the same private key on ABAP and JAVA. With the JAVA Administrator I am able to define or import a private key. But I could not find a possibility in ABAP to manage private keys in order to use the same on as in JAVA. What is the procedure for this?
    Thanks and Regards,
    Frank Tottleben

    Hello,
    I want to setup an XI (3.0 on Netweaver04)installation in the way, that ABAP AS and JAVA AS use the same key pair for SSL. My problem is to define the same private key on ABAP and JAVA. With the JAVA Administrator I am able to define or import a private key. But I could not find a possibility in ABAP to manage private keys in order to use the same on as in JAVA. What is the procedure for this?
    Thanks and Regards,
    Frank Tottleben

  • Query using the SQL 'go' command  on a JAVA code

    Hi,
    I am trying to create a new database on MS SQL and at the same time verify whether the data base exist already and then add a new table. The query statement works well on the query windows on MS SQL, but when the query is place using a JAVA code it gives the following error:
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near 'go'.
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near 'go'.
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(Unknown Source)
         at DataBaseCreator.main(DataBaseCreator.java:30)
    I have to add that if I only query: "CREATE DATABASE NameOfDatabase" the new data base is created without a problem using JAVA, but when I try to use the following query, I got the error message.
    "USE Master "
                        + "IF EXISTS (SELECT * FROM SysDatabases WHERE NAME='DatesTemps') "
                        + " DROP DATABASE DatesTemps"
                        + " go "
                        + " CREATE DATABASE DatesTemps22 "
                        + " go"
                        + " USE DatesTemps "
                        + " CREATE TABLE Fable ( "
                        + " FableID INT NOT NULL CONSTRAINT FablePK PRIMARY KEY NONCLUSTERED, "
                        + " Title VARCHAR(50) NOT NULL, "
                        + " Moral VARCHAR(100) NOT NULL, "
                        + " FableText VARCHAR(1536) NOT NULL, "
                        + " BlobType CHAR(3) NULL DEFAULT 'doc', "
                        + " Blob IMAGE NULL DEFAULT NULL )"
    If it is useful my complete code is the following, I appreciate in advance your comments.
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.*;
    import java.util.Calendar;
    import java.util.GregorianCalendar;
    public class DataBaseCreator {
         public static void main (String[] args)
              Connection Time =null;
              Statement stmt = null;
              String data = "jdbc:odbc:DataBaseCreation";
              try
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   Time= DriverManager.getConnection(data,"","");
                   stmt = Time.createStatement();
                   //String query;
                   //java.sql.Timestamp ts1 = new java.sql.Timestamp(((3*60)+58)*60*1000);
              // System.out.println(ts1 + " This is a Time Stamp");
              ResultSet rec = stmt.executeQuery(
                        "USE Master "
                        + "IF EXISTS (SELECT * FROM SysDatabases WHERE NAME='DatesTemps') "
                        + " DROP DATABASE DatesTemps"
                        + " go "
                        + " CREATE DATABASE DatesTemps22 "
                        + " go"
                        + " USE DatesTemps "
                        + " CREATE TABLE Fable ( "
                        + " FableID INT NOT NULL CONSTRAINT FablePK PRIMARY KEY NONCLUSTERED, "
                        + " Title VARCHAR(50) NOT NULL, "
                        + " Moral VARCHAR(100) NOT NULL, "
                        + " FableText VARCHAR(1536) NOT NULL, "
                        + " BlobType CHAR(3) NULL DEFAULT 'doc', "
                        + " Blob IMAGE NULL DEFAULT NULL )"
              catch( Exception e )
                        System.err.println( e );
                        e.printStackTrace();
              finally
                        try
                             stmt.close();
                             Time.close();
              catch( Exception e )
                        System.err.println( e );
    }

    Ok, first of all thanks for your answer, now what I want to do is the following:
    1) I need to input ((retrieve) every minute some data (Date and Temperature), that I will get from and external device, this is not part of this code.
    2) I want to store that data (Date and Temp) on a data base, here where I need the command to create the data base and to verify whether that data base already exists. In case it has already been created then create new table(s) on it. If it doesn't exist then create and then create new tables.
    3) Each Day (at yyyy mm dd 00:00:00:000 will create a new table, and the name of this table will be yyyymmdd.
    4) Then every minute the java code will retrieve the data and add it to the table in the data base.
    5) That will be a close loop that will be running until the user interrupt it.
    I haven't make the communication code yet, in order to test my code I was thinking to retrieve the data from another data base. This would be just to verify that the JAVA sequence is able to retrieve the data every minute and create new data base and tables.
    For the record I am able to send the queries and retrieve information from SQL running the code in eclipse, that will cover your first observation.
    I am quite new in the forum I am sorry I didn't get the use of code tags.
    Sorry again as I said I am quite new on this, what's a DDL statement.
    Thanks.

  • The last three Java updates installed Jave Console extensions that won't uninstall using the supplied "removing addons" document. Java offers no help. How can I remove them?

    In firefox 3.6.13 32 bit on Windows 7 64 bit with WOW subsystem, under Tools > Addons > extensions I see four Java console entries listed. They are: Java Console 6.0.20, 6.0.21, 6.0.22 & 6.0.23. 6.0.23 is active. The other 3 are disabled with the Uninstall button disabled. There are no extension folders in the default profile (only profile listed). There are not programs listed in the Windows Control Panel Remove programs pane.

    Since I am unfamiliar with registry editing procedures, I used the manual removal process of deleting appropriate sub-folders from c:\Program Files (x86)\Mozilla Firefox\extensions. After stopping Firefox and restarting it, only the desired (Java Console 6.0.23) extension appeared in Tools > Add-ons > extensions. Problem solved! My thanks to both cor-el and The-edmeister for their helpful responses!

  • How to use the One-to-One mapping in Java Code

    Dear all:
    I have set the direct mapping and named query,
    and have written web service of login.
    I can login successfully.
    Now,I want learning about One-to-One mapping.
    I have setting the One-to-One mapping,
    then what can I do latter?
    I do not found any paper showing how to use it in web service?
    Somebody help me?thx all.

    Following code worked for me:
    import oracle.javatools.resourcebundle.BundleFactory;
    import java.util.ResourceBundle;
    * This method retrieves localized strings from a given XLIF resource bundle.
    * @param bundleName The XLIF bundle from which the localized string is to be retrieved.
    * @param key The key of the localized string.
    * @return The localized string retrieved from the given XLIF bundle.
    public static String getXlifLocalizedString(String bundleName, String key) {
    if (StringUtils.isEmpty(key)) {
    return key;
    if (StringUtils.isEmpty(bundleName)) {
    return "[" + key + "]";
    String localizedString = null;
    ResourceBundle resourceBundle = null;
    try {
    resourceBundle = BundleFactory.getBundle(bundleName);
    localizedString = resourceBundle.getString(key);
    } catch (Exception e) {
    LOG.log(Level.SEVERE, "Problem in loading XLIF resource bundle: " + bundleName, e);
    return "[" + key + "]";
    return localizedString;
    }

  • Using the Portal Single Sign-On for java applet clients

    Hi
    We have a task to build a java applet working within a portlet and comunicating to some session EJB(wrapped BC4J) running on the OC4J. The applet is presumably connecting to server via RMI. This connection should be restricted to some groups of portal users.
    When a user is entering the applet he is supposed to be already logged into the Portal.
    There is a lot of information on building custom secure portlets using only a pure HTML(same as JSP) client whith the help of the Portal Single Sign-On.
    But, is it possible to use the Single Sign-On for establishing a secure RMI connection from applet to OC4J without entering a password in the applet once more?
    Yuriy

    Perhaps you can write a small JSP page or PLSQL
    web procedure that will grab user name from
    the SSO Server (via SSOSDK/mod_osso)
    and invoke the applet with encrypted user name.
    The applet will receive the encrypted username
    and decrypt it to get the clear user name.
    This help to get Single Sign-On.
    To make sure that environment is secure, encrypted
    user name parameter should have random salt,
    user name, and time stamp to prevent replay attack.
    Applet must make sure that the encrypted users name
    time stamp set by the JSP/PLSQL page has value
    within a reasonable time limit like 5 minutes

  • How can I use the database default time rather than Java supplied time

    I've searched over and over and nobody seems to have this issue so maybe its just me!
    When inserting a record I would like the a create_date column to automatically use the database time rather than a supplied time via JPA. That was all times a relative to the database which makes sense.
    The trouble is I cant figure out how to do this in a sensible manor.
    If I specify an column like :
         @Temporal(TemporalType.TIMESTAMP)
         @Column(name = "CREATE_DATE")
         private Date createDate;
    and IDL
    CREATE_DATE TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_DATE NOT NULL
    If I leave createDate null I get an exception. If modify the column to allow Nullable then column is set as Null.
    If I leave the column out of the entity bean and then and create a row then the database current time is inserted. The trouble then is that if I want to read the date I'm going to have to create a copy of the bean but with the CREATE_DATE in it, and this doesn't make sense.

    I should also mention that TopLink has always supported the ability to retrieve the current time from the database for use in optimistic locking. The TimestampLockingPolicy offers the ability to configure the next value being retrieved from the database instead of using the local time from the JVM. Our extended optimistic locking configuration does not currently support setting this option but it could be done using a descriptor customizer which can be configured in your persistence unit properties.
    Using optimistic locking may be a good solution for the last modified date since it will also ensure that you do not corrupt the database if someone else has incremented this value since your last read.
    Doug

  • How to use the direct bytebuffer in JNI? Accessing JDBC from C application.

    I am working on a project to access JDBC Driver within C application. The invocation JNI is used.
    To get better performance, I use the preparedStatement for dynamic sql. This need to transfer much parameter data from C to JDBC for PreparedStatement object in JVM. I think this maybe get improvements by using the new direct bytebuffer function from JDK1.4. However I cannot find an example code to get start. Could someone provide some ideas for this?
    Currently, I directly call JDBC API in C application through JNI, so there is no java codes. Only c file using JNI call.
    My understanding is to use the direct bytebuffer feature, I also need to have java codes to process the JDBC API call and then can share the same memory between Java and C. Please correct me if wrong.
    Any input is appreciated.

    tzhouxian wrote:
    thanks, jschell
    I am trying to get the best performance for the solution, using JDBC libs in a C application. So I am considering to use the direct bytebuffer in the solution to pass parameters to JDBC and get result sets from JDBC side.
    For your questions,
    1. Why don't you just write the database access in C?
    You mean to directly call JDBC API in C through JNI, right? My plan is to wrap the JDBC API by java and expose seldom interface to C native code, so reduce the JNI call between C and JAVA. If directly call the JDBC API call from C, the number of JNI call maybe more.
    No I mean what I said. In C, no java at all, why don't you write code to access the database?
    2. The database access itself is going to be slower than anything that you do in C or java.
    Exactly. I just want to find each potential points to get performance improvements for the whole solution. I also did some optimization work for the database call. The goal is to get the best performance from C application to database through JDBC libs.
    Then I suggest you profile it.
    3. Why don't you use import/export files and the database tools? This is often significantly faster with volume processing.
    Sorry, I am not very familar with some functions of JNI. Could you explain, " +Why don't you use import/export files and the database tools+"?
    Nothing to do with java, jni nor C.
    Major (or perhaps everything that is a real 'database') comes with additional tools. Amounst those tools will be command line tools capable of importing and exporting data from the database. In processing bulk data they will always be faster than anything you can do in JDBC.

  • Can I use the NI DAQmxbase C functions to develop a Smart Device application using a NI USB or NI ENET 9234 C module with Visual Studio for an iMX31 (ARM 11) embedded computer running Win CE 5.0 or 6.0?

    I have an embedded application running on a iMX31 (ARM 11) that does fairly high performance analog input (24 bit, 50K samples/second).  I use Microsoft Visual Studio 2005 C/C++ for the develoment environment and have currently built versions of the application for Win CE 5.0 and 6.0 without Labview or NI hardware.  I have used the NI 9234 with great success on several Labview applications in the past and I'd like to use the 9234 on this embedded application with VS2005 C/C++. The NI documentation hints that I should be able to do this (maybe I'm overly optimistic) and I'm wondering if anyone else has?   I've tried the Evaluation versions of Labview Mobile and Labview Touch panel to build a C application using the NI DAQmx base C function inside Visual Studio without success.  I can compile and link the ContAcq IntClk LV example project for an x86 platform using NIDAQmx but not for a ARM platform using NIDAQmxbase.lib.  I get the same linker error   error LNK2019: unresolved external symbol referred to in Knowledge Base Document ID 4HAEE7QQ  even though I've set up (or think I've set up ) VS2005 as the KB article indicates.
    If anyone has used the C functions and NIDAQmxbase library inside a VS2005 Smart Device project, I'd greatly appreciate your comments.
    Thanks 

    Hello Gene,
    I have been checking into this for you and have found out that what you are trying to do cannot be done.  At least not in the current manner you are hoping for.  The internal architecture of DAQmx Base requires the cross-compiling capability of the LabVIEW Mobile Module. While a stand-alone compiler can compile DAQmx Base calls for desktop processors, it cannot compile DAQmx Base calls for ARM.
    If your application requirements exclude the LabVIEW toolchain, then the remaining option is the USB Driver Development Kit which is avaliable here, but you will have to contact your local field sales representative to discuss support
    options as standard phone and e-mail support are not available for the
    NI Measurement Hardware DDK. 
    NI Measurement Hardware Driver Development Kit
    http://digital.ni.com/express.nsf/bycode/exyv4w?opendocument&lang=en&node=seminar_US
    ColeR
    Field Engineer

  • Passing Parameters via Post Method from Webdynpro Java to a web application

    Hello Experts,
    I want to pass few parameters from a web dynpro application to an external web application.
    In order to achieve this, I am referring to the below thread:
    HTTP Post
    As mentioned in the thread, I am trying to create an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map.
    But when I build my DC, I am getting the same error which most of the people in the thread have mentioned:
    Controller XXXCompInterfaceView [Suspend]: Outbound plug (of type 'Suspend') 'Suspend' may have at most two parameters: 'Url' of type 'string' and 'postParams' of type 'Map'.
    I am using SAP NetWeaver Developer Studio Version: 7.01.00
    Kindly suggest if this is the NWDS version issue or is it something else that I am missing out.
    Also, if it is the NWDS version issue please let me know the NWDS version that I can use to avoid this error.
    Any other suggestion/alternative approach to pass the parameters via POST method from webdynpro java to an external web application apart from the one which is mentioned in the above thread is most welcome.
    Thanks & Regards,
    Anurag

    Hi,
    This is purely a java approach, even you can try this for your requirement.
    There are two types of http calls synchronous call or Asynchronous call. So you have to choose the way to pass parameters in post method based on the http call.
    if it is synchronous means, collect all the values from users/parameters using UI element eg: form and pass all the values via form to the next page is nothing but your web application url.
    If it is Asynchronous  means, write a http client in java and integrate the same with your custom code and you can find an option for sending parameters in post method.
    here you go and find the way to implement Asynchronous  scenario,
    http://www.theserverside.com/news/1365153/HttpClient-and-FileUpload
    http://download.oracle.com/javase/tutorial/networking/urls/readingWriting.html
    http://digiassn.blogspot.com/2008/10/java-simple-httpurlconnection-example.html
    Thanks & Regards
    Rajesh A

  • Java Printing in web application

    hi All,
    Hi All,
    we are developing a web application using struts,in one of the page the leave reports of the employee is displayed , the client requirement is the client should be able to print the displayed document, using javascript i can print the document but i wanted to use a separate applet to print the report document, so when i click a button named print in the report page a new applet should open containing the report page and i should be able to print from that applet.
    Any help on this regard is highly appreciated
    Thanks & Regards,
    Sasikumar Sugumar

    hai dude,
    hope every thing going fine .
    Even i'am developing an web application in which i used to print the generated reports. i tried a lot but the struck up with some error.
    i'am even able to open the print dialog box.
    u have written that u are able to print a PDF doc using the java script.
    If u don't mind, can u send me the code to print a PDF.
    Thanks in advance

Maybe you are looking for

  • AE CS6 not telling correct framerate

    I have footage from my GoPro 3 imported into AE CS6 (PC)... It is 720p (1280 x720) shot at what GoPro calls 120 fps. Windows Explorer says its 119 fps in the Properties panel... AE says its 59.94...... What gives? Also, is there any way to see the fp

  • IChat crashes on startup

    Upon opening iChat it freezes and then crashes. Here is the error report: Date/Time: 2009-03-15 13:52:30.551 -0400 OS Version: 10.4.11 (Build 8S165) Report Version: 4 Command: iChat Path: /Applications/iChat.app/Contents/MacOS/iChat Parent: WindowSer

  • Uninstalling Mastercollection CS6 on OSX10.6.8

    Is it an easy way to uninstall the whole package of Mastercollection CS6. I have to do this, because Illustrator will not launch. Then reinstall. Some part of Mastercollection CS6 neither have an uninstalling icon (Brigde). If I start with deactivati

  • RowAtPoint and columnAtPoint always return 0

    //in NormalGUI      ptsinfo.addActionListener(new NTListener());      delete.addActionListener(new NTListener());      nTable.addMouseListener(new NTListener()); //in NormalGUI public class NTListener extends MouseAdapter implements ActionListener{  

  • Unable to preview

    Mac os x 10.4.11 Dreamweaver CS3 When I hit option and F12, I used to be able to preview my web pages in browser window.  But now when I try to preview my pages, it automatically connects to the remote host, and then in the browser window I get the e