Retreive postgres data with jaxrpd and dii

Hi,
I'd like to create a web services using JAXRPC and a webb client written with DII that retreive data from a postgres DB and put in a jsp web page.
Can you post an example or a tutorial to build everything in a simple way.
Thanx
p.s.: excuse for my english butt I am italian.
Hi, stefano

Hi,
Refer http://java.sun.com/webservices/docs/1.3/tutorial/doc/JAXRPC4.html
-Amol

Similar Messages

  • What Are The Minimum Permissions In Order An User To Be Able To Access User Profile Data With JavaScript And REST API

    The question says it all:
    What Are The Minimum Permissions In Order An User To Be Able To Access User Profile Data With JavaScript And REST API.?
    In the User Profile -> Permissions there is only the option for "Full Control".

    Hi Nikolay,
    Thanks for posting your issue, you need to set permissions on User Profiles = Read. Kindly find the below mentioned URLs to get the code and more details on this.
    http://www.vrdmn.com/2013/02/sharepoint-2013-working-with-user.html
    http://www.vrdmn.com/2013/07/sharepoint-2013-get-userprofile.html
    http://sharepoint.stackexchange.com/questions/61714/sharepoint-2013-call-the-rest-api-from-sharepoint-hosted-app
    http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2013/04/09/how-to-query-sharepoint-2013-using-rest-and-javascript.aspx
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Retreiving a date from database and converting it into a string in a format

    hi all,
    iam having a date field which stores values ,for eg:2002-04-26 00:00:00.i want to retreive the date and i want to convert in a String in dd/mm/yyyy format.how can i do so.plz explain me..........thanks in advance

    If the field is a Date in your database, you can use the ResultSet.getDate() method, which will return a java.sql.Date (which extends java.util.Date).
    You can then use SimpleDateFormat to format it the way you like.
    See the API doc for more details.

  • Logging data with LabView and FP-DI-330

    Hi,
    I have a problem.
    I am monitoring 6 ports of the FP-DI-330, via LabView.
    I have it runing in a while loop that desides the update frequency. It then get stored in a txt file with the time in Hours, Minutes and Seconds. I need the time in milli seconds to skill betwen the diferent input times. Because the different input´s can come in the same second.
    i have added the vi file
    Enyone have an sugestion?
    Attachments:
    FP_DI_330.vi ‏75 KB

    First of all...
    i will throw away the boolean display. But the Spreadsheet is the formation of the logfile is it not?
    I will need that to get the data nicely organized.
    I dont know how to get milli seconds displayed enywhere. If i use for example the tick count (MS) it starts with a number around 3287101, should it not start with 1 and then count up?
    "Further in your vi, you forgot to connect the current time to the Get Date/Time string. Can't you use the millisecond values for building the time-values?"
    How can i connect the current time to the Get Date/Time String? And how should i use the ms timer values for building time-values.
    file-info of the log-file? What?
    Thanks for the ideas but i could really use some help.
    I would think th
    at it could not be that dificult making a simple ms count to add to the time for every line of the logfile. But i cant get it to work.

  • Cannot get wanted data with MAX and GROUP BY function

    Hi
    All
    I have a table like below:
    COLUMN     TYPE
    USER_ID     VARCHAR2 (10 Byte)
    PROCESS_ID     VARCHAR2 (30 Byte)
    END_TIME     DATE(STAMP)
    TO_LOC     VARCHAR2 (12 Byte)
    TO_LOC_TYPE     VARCHAR2 (15 Byte)
    FROM_LOC      VARCHAR2 (12 Byte)
    ITEM_ID     VARCHAR2 (25 Byte)
    CASES     NUMBER (12,4)
    LMS_UDA1      VARCHAR2 (250 Byte)
    ZONE     VARCHAR2 (2 Byte)
    I only want get one record with all columns, only have one clause MAX(END_TIME)
    But the other column have difference value.
    when i use MAX(END_TIME) and GROUP BY USER_ID,PROCESS_ID,CASES,....
    the sql didnot give one record,
    It give many records
    Please help me on this
    Regards
    Saven

    Hi, Saven,
    Sorry, it's unclear what you want.
    Whenever you have a question, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    If you can show your proiblem using commonly available tables, like those in the scott or hr schamas, then you don't have to post any sample data: just the results and the explanation.
    Always say what version of Oracle you're using.
    See the forum FAQ {message:id=9360002}
    Are you trying to see all data related to the highest (that is, latest) end_time?
    I think you want something like this, that finds all the ionformation about the employee with the latest hiredate:
    WITH     got_r_num     AS
         SELECT     emp.*
         ,     ROW_NUMBER () OVER (ORDER BY  hiredate  DESC  NULLS LAST)
                   AS r_num
         FROM     scott.emp
    SELECT     *     -- Or list all columns except r_num
    FROM     got_r_num
    WHERE     r_num     = 1
    ;What do you want in case of a tie, that is, if 2 or more rows have the same latest end_time? You may need to add tie-breaking expressions to the analytic ORDER BY clause, and/or use RANK instead of ROW_NUMEBR

  • Questions on Saving and mining data with Labview and DIAdem

    Hi,
    I am sampling two signals at 200k sampling rate. I am trying to save the data on harddisk and analyzing the data using DIAdem.
    If I save the data using mesurement file format .tdm and .lvm, the file size will be about 4 Gigabytes for only 10 mins' acquisition. It is very slow to process it.
    I used the software Clampex and pCLAMP(Axon Instruments) before. At the same 200k sampling rate and also acquiring two signals, these programs save the data as .atf format and the size is only 400 MB for 10 mins' acquisition.
    I wonder if there is also a good way to handle this situation using Labview and DIAdem, and how to do it?

    Hi, Jonathan:
    I tried the TDM binary file format. The file size is 800 MB per min acquisition and it will take a long time to just open these files. For my application, I have to take data for several hours. I am looking for a way to reduce the size of files.
    Is there any other type of file format that can reduce the size significantly and can be handled easily?

  • How to handle blob data with java and mysql and hibernate

    Dear all,
    I am using java 1.6 and mysql 5.5 and hibernate 3.0 . Some time i use blob data type . Earlier my project's data base was oracle 10g but now i am converting it to Mysql and now i am facing problem to save and fetch blob data to mysql database . Can anybody give me the source code for blob handling with java+Mysql+Hibernate
    now my code is :--
    ==================================================
    *.hbm.xml :--
    <property name="image" column="IMAGE" type="com.shrisure.server.usertype.BinaryBlobType" insert="true" update="true" lazy="false"/>
    ===================================================
    *.java :--
    package com.shrisure.server.usertype;
    import java.io.OutputStream;
    import java.io.Serializable;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Types;
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    import oracle.sql.BLOB;
    import org.hibernate.HibernateException;
    import org.hibernate.usertype.UserType;
    import org.jboss.resource.adapter.jdbc.WrappedConnection;
    import com.google.gwt.user.client.rpc.IsSerializable;
    public class BinaryBlobType implements UserType, java.io.Serializable, IsSerializable {
    private static final long serialVersionUID = 1111222233331231L;
    public int[] sqlTypes() {
    return new int[] { Types.BLOB };
    public Class returnedClass() {
    return byte[].class;
    public boolean equals(Object x, Object y) {
    return (x == y) || (x != null && y != null && java.util.Arrays.equals((byte[]) x, (byte[]) y));
    public void nullSafeSet(PreparedStatement st, Object value, int index) throws HibernateException, SQLException {
    BLOB tempBlob = null;
    WrappedConnection wc = null;
    try {
    if (value != null) {
    Connection oracleConnection = st.getConnection();
    if (oracleConnection instanceof oracle.jdbc.driver.OracleConnection) {
    tempBlob = BLOB.createTemporary(oracleConnection, true, BLOB.DURATION_SESSION);
    if (oracleConnection instanceof org.jboss.resource.adapter.jdbc.WrappedConnection) {
    InitialContext ctx = new InitialContext();
    DataSource dataSource = (DataSource) ctx.lookup("java:/DefaultDS");
    Connection dsConn = dataSource.getConnection();
    wc = (WrappedConnection) dsConn;
    // with getUnderlying connection method , cast it to Oracle
    // Connection
    oracleConnection = wc.getUnderlyingConnection();
    tempBlob = BLOB.createTemporary(oracleConnection, true, BLOB.DURATION_SESSION);
    tempBlob.open(BLOB.MODE_READWRITE);
    OutputStream tempBlobWriter = tempBlob.getBinaryOutputStream();// setBinaryStream(1);
    tempBlobWriter.write((byte[]) value);
    tempBlobWriter.flush();
    tempBlobWriter.close();
    tempBlob.close();
    st.setBlob(index, tempBlob);
    } else {
    st.setBlob(index, BLOB.empty_lob());
    } catch (Exception exp) {
    if (tempBlob != null) {
    tempBlob.freeTemporary();
    exp.printStackTrace();
    st.setBlob(index, BLOB.empty_lob());
    // throw new RuntimeException();
    } finally {
    if (wc != null) {
    wc.close();
    public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws HibernateException, SQLException {
    final Blob blob = rs.getBlob(names[0]);
    return blob != null ? blob.getBytes(1, (int) blob.length()) : null;
    public Object deepCopy(Object value) {
    if (value == null)
    return null;
    byte[] bytes = (byte[]) value;
    byte[] result = new byte[bytes.length];
    System.arraycopy(bytes, 0, result, 0, bytes.length);
    return result;
    public boolean isMutable() {
    return true;
    public Object assemble(Serializable arg0, Object arg1) throws HibernateException {
    return assemble(arg0, arg1);
    public Serializable disassemble(Object arg0) throws HibernateException {
    return disassemble(arg0);
    public int hashCode(Object arg0) throws HibernateException {
    return hashCode();
    public Object replace(Object arg0, Object arg1, Object arg2) throws HibernateException {
    return replace(arg0, arg1, arg2);
    =================================================================
    can anyone give me the source code for this BinaryBlobType.java according to mysql blob handling ..

    Moderator action: crosspost deleted.

  • Spooling data with Header and trailer

    Hi everyone,
    I have a problem in spooling the data.
    I get a .dat file to load into db .That .dat file will be having header,records,trailer.While loading into the db i load only the records .
    I load the .dat file into table using sqlldr with direct= true and parallel=true.
    I load data into one table.header and trailer into one table(Loading into two different tables using three control file each for header,records,trailer to load from same .dat file).But while spooling the data out after some modifications to the table.i need to spool it with the header and trailer.I am able to spool only the records but not header and trailer.
    That header and trailer are in standard form,everytime i get the .dat file.
    Help me how to spool data from a table with the HEADER & TRAILER in the spool file.
    Thanks

    Some may argue this is not the right forum - database general might have been a little been than downloads - but now the thread is here I'll try an answer.
    As I see it It depends on your spooling tool.
    Lets assume you are using sqlplus.
    I that case the sql prompt command may serve your purpose
    Alternatively
    select 'header' from dual
    union all
    select field1||','||field2||','field3 .... /*must single string expression but may concatentate field */ from somtable
    union all
    select 'trailer' from dual;may suit.
    However I fear either I have not understood the question or if I have understood the question that you may have difficulties implementing this.
    Edited by: bigdelboy on 19-Apr-2009 14:32

  • Filter Data with Merged and non merged columns in one

    Hi there,
    I have an excel spreadsheet that has got merged and non merged columns. What I want to be able to do is, filter a row that has got merged column and non merged columns. But when I filter it only takes the first line, rather than the merged and non merged
    columns.
    With this data I have one merged column which spans 6 rows, and then in the same row I have 6 rows with different points in, and what I want to do is filter my list, but be able to see the merged coloum aswell as the 6 points.
    Any ideas are much appriciated.
    Cheers
    SAN

    You cannot filter across a row - so I have assumed that what you mean is that some cells in columns are merged to serve as the headers, and the data is in the came columns but in the row(s) below the header. If this is incorrect, ignore this post.
    For this example, I have assumed E to J are the column of data and merged cells, column K is free, and the first merged header is in row 1:
    In K1, enter
    =E1
    in K2, enter
    =IF(COUNTA(E2:J2)=1,E2,K1)
    and copy down. Then filter based on column K, and it will show the headers and the data for the selected header value.
    HTH, Bernie

  • Problem increasing dates with REGEXP_REPLACE and TO_DATE

    Hello all,
    i'm trying to increase dates in a string with a single statement, but i ran into the problem that Oracle doesn't interpret the regex backtrace operators when they are used in TO_DATE:
    SELECT
      REGEXP_REPLACE(
        'Test: 01.01.2001 Test: 02.02.2002',
        '([0-9]{2})\.([0-9]{2})\.([0-9]{4})',
        TO_CHAR(TO_DATE('\1\2\3', 'DDMMYYYY') + 1, 'DD.MM.YYYY')
    FROM DUALLeads to a ORA-01858: 01858, 00000, "a non-numeric character was found where a numeric was expected".
    However, using other functions on the backtrace operators like UPPER('\1') works like a charm. Is this a limitation of the TO_DATE function?
    Is there any possibility to replace the dates in a small, simple statement?
    Thanks in advance,
    -sd

    How should I show you an example, when it's simply
    not possible? I know I mixed up parameters and
    callbacks mistakenly and took the wrong approach.Ok. In your last post, you've added a question mark, so
    it did look as you weren't aware of the problem.
    However, I thought there was some possibility in
    Oracle regex to apply a callback function to
    regex-replacement like other languages have
    (preg_replace_callback in PHP for example) like:Interesting. Unfortunately PL/SQL is not PHP and there's
    (yet) no callback feature implemented.
    FUNCTION chg_date(
    p_string
    REGEXP_REPLACE_CALLBACK('Test: 2001', '[0-9]{4}',
    'chg_date')
    ...I too miss the possibility to extend the use of backtrace
    parameters, maybe in one of the future versions.
    C.

  • How can I handle no data with popup and email??

    Hello Experts,
    Can I do the following in VC 7.0?
    If the user searches for data and the data doesnt exist, then I want to create a popup asking if the user wants to create the data? If they say Yes, then I want to send the data they fill in to an email address. Is this possible?
    Thanks
    M

    Hi,
    Create a form to ask for 'Yes' or 'No' conformation and set its visibility based on the existence of the search data(use IF condition). Set the action of 'Yes' button as hyperlink and set the url as the emailid which one you want to send the data.
    Regards
    Basheer

  • Dates with scrolling and Last Import

    There are two features that I liked in iPhoto that I'm not seeing in Aperture 3. One is that when scrolling through my photos, in iPhoto the date of the pictures currently visible would show up, which was very nice for figuring out where you were in the photo stream. The other is that one of the "smart albums" in iPhoto was "last import"; is there a way to create a "last import" album in A3? I thought that "sessions" would be the answer, but it looks like that creates an album for a specific date.
    Thanks.

    Dan VanDeRiet wrote:
    There are two features that I liked in iPhoto that I'm not seeing in Aperture 3. One is that when scrolling through my photos, in iPhoto the date of the pictures currently visible would show up, which was very nice for figuring out where you were in the photo stream.
    The date HUD-while-scrolling is a nice feature in iPhoto. Aperture doesn't have it. You can group Projects while browsing the Project view by year (click the grouping icon on the tool strip). I missed this too when I moved my Library from iPhoto, but not having it hasn't slowed me at all.
    The other is that one of the "smart albums" in iPhoto was "last import"; is there a way to create a "last import" album in A3? I thought that "sessions" would be the answer, but it looks like that creates an album for a specific date.
    Yep. Also not in Aperture. Two work-arounds. Select the one which gets you closest to what you want.
    - Make a Smart Album which filters by "In the last 1/2/4 day/week/month". Do this by adding the Rule "Date→Is in the last→1→Week". You can specify a different number and duration unit. Note that this goes by the date of the photo, not the date of the import.
    - Add "Import Session" to your List view metadata. Once it is added, you can click the column to sort by "Import Session" or select "Import Session" from the drop-down list. Once added, you can return to Browser view. That's been useful for me, and is the closest I've been able to get to "Last Import".

  • Sending (String/Bean) Arrays with Webservices and DII

    I'm using the application server from the Sun J2EE SDK (J2EE(TM) Application Server 1.4 Developer Release (build b44-dr) and I'm trying to get an array with Beans or Strings to be send to an Dynamic Invocation Client.
    Can someone point me to an example or send one to me, I'm really stuck with it.

    Can nobody point me to an example how to send arrays with a webservice to a Dynamic Interface Invocation Client???

  • Cannot use photoshop or any other program even though i am up to date with payments and nothing appears to be wrong? Help

    I have been trying to use Photoshop, as it was working fine about an hour ago, and now it will not open files and says my subscription has ended even though i have a subscription up until November of next year. Can anyone help? Or have had the same thing happen and have some advice?

    Sign in, activation, or connection errors | CS5.5 and later
    Mylenium

  • Sales order stock and storage location stock on past date with value

    Hi everyone.
    I m looking for a report which can give sales order stock with value as it is shown in mb5b and storage location stock with value as in mc.5 is there any report which can give the combination of both the things on past date with values.

    can you tell me what shall be the fields and table for special stock on past date with value and sloc stock on past date with value

Maybe you are looking for

  • IP Profile stuck at 135kbps for 1 month

    Hi all, I have had numerous problems with  my broadband for over a month now, after years of stability and happy surfing...and after the last two weeks of just going round the same loop with the phone help, I am trying this forum for the first time.

  • How do you connect a microphone to a Mac?

    How do you connect a microphone to the Mac?  I'm trying to record vocals onto Garage Band.  I tried to use an adapter (XLR to MONO 3.5 mm) to connect directly to the port on the side of the MacBook Pro.

  • I pod says it needs to be restored

    ok my i pod screen say to restore my i pod using i tunes (in like 4 dif languages) So i did but then after its done it say "ITunes has detected an i pod in recovery mode. You must restore this i pod before it can be used with i tunes." So i did it an

  • Satellite A300D-15B - Where can I buy HDD caddy/tray?

    Does anyone know where I can buy a caddy / tray in the UK so I can fit a second hard drive into the empty bay in my laptop? Thanks in advance. Col

  • How to make cross Tab report for SAP B1

    Hello and Hi i trying to make cross tab report for SAP B1 but test column not appera in File >>New >>Cross Tab Report  start cross tab report creation wizard select database name and table but only numeric columns appear in available column fields ,