VC8 clients and native invocation API

Hi,
Could someone from Sun tell me whether JNI invocation API for the 1.5.0_07 Windows JVM supports .NET clients compiled with Visual C++ 8?
I have an ASP.NET application that calls into the JVM through the JNI invocation API. I know that there were problems with VC7 clients calling into the 1.3 and 1.4 JVM's (they only surfaced under high concurrency), but I was told that the 1.5 JVM would better support .NET clients.
Thanks...

See
http://www.simtel.net/product.php[id]95126[SiteID]simtel.net

Similar Messages

  • Internet Based Clients and Native Mode

    Hi guys,
    I have a question.... We have SCCM 2007 SP2 running in mixed mode in the environment. Now we plan to support internet based clients. Here is the current Hierarchy in mixed mode.
    1 Central Server
    1 Primary Server
    3 Secondary servers under above Primary Server
    Now as the requirement is to support internet based clients and want them to support on office LAN as well when they come to the office....this is what I would be doing : ( Theoretically I know, I need the practical steps to achieve that )
    1. Get all the 3 PKI Certificates : Site Server Signing, Web Server, Client agent.
    2. Make sure all the required ports are opened in-between Intranet <->DMZ AND DMZ <-> Internet
    3. Migrate Central server from Mixed to Native Mode.
    4. Install another Primary Server on Intranet in Native mode.
    5. Create a site system server connected to newly created Native Primary Site in the DMZ zone with these roles installed : MP, SUP and DP.
    6. Re-install all the SCCM clients in the environment with the command-line so that they can be supported on both internet and intranet.
    7. Make sure internet clients are able to connect DMZ site system server via internet.
    Please let me know if I'm missing something here and let me know the practical steps to achieve this. 
    Request you not to share Microsoft technet link for the same. Please share some step-by-step practical document etc.. to achieve this.
    Thanks,
    Sam

    1. This is incorrect. You need more than a single web server cert and client cert. You need a unique server auth cert for *every* one of your systems hosting a client role like the MP, DP, and SUP. Also, you need a unique client auth cert for each and *every*
    client that may/will connect via the Internet.
    4. Standing up a whole extra site just to support IBCM is a bit overkill. It does allow you to keep your "main" primary site in mixed mode, but it does add some overhead and cost and is not technically necessary.
    6. Incorrect. You only need to reinstall clients that will be configured as "Internet-only". Intranet clients should pick up the internet facing roles via policy. You can verify this by checking locationservices.log on the clients after they are successfully
    communicating and the Internet facing roles are stood up and healthy.
    You've made no account above for the CDP or CRL checking. This is a major stumbling block for many folks.
    Jason | http://blog.configmgrftw.com

  • Invocation API or Java Client Libraries

    Hi All,
    I want to invoke my short/long lived processes through my java code.
    Now, There are two ways to achieve this as i know .
    1. Invocation API (which I am using currently now)
    2. java client libraries
    Now my question is whether one can use java client libraries to invoke workbench processes through java code?
    If yes, is it better than Invocation API ?
    Thanks
    Abhiram

    Abhiram,
    You can invoke any service defined to LC (there are several exceptions for good reasons) whether they are out-of-the-box services or applications you have built yourself.
    In my opinion, your preference for invocation should be based upon the best fit for your existing Java classes. That's the beauty of the LC APIs. They give you some flexibility. The invocation APIs are nice for dealing with documents (PDF and native file formats). However, if your Java class(es) use Web Services then use the SOAP endpoint to call the LC process, for example. If performance is an issue and the Java class(es) run on the same host as LC, then use EJB.
    Steve

  • Mavericks VPN dropouts with native VPN client and Cisco IPSec

    Since update to Maverics I am experiencing VPN dropouts with native VPN client and Cisco IPSec
    I am connecting via a WIFI router to a remote VPN server
    The conenction is good for a while but eventually it drops out.
    I had Zero issues in mountain lion and only have issues since the update to 10.9
    I had similar issues in teh past with an unrelaibel wifi router but i am using a Verizon Fios router and it has worked impecably until mavericks
    My thoughts are:
    1 -issue with mavericks  ( maybe the app sleep funciton affecting eithe VPN or WIFI daemons)
    2- Issue with  cisco router compaitibility or timing with Cisco IPSEC
    3- Issue with WIFI itself on mavericks - some sort of WIFI software bug
    Any thousuggestions?

    Since update to Maverics I am experiencing VPN dropouts with native VPN client and Cisco IPSec
    I am connecting via a WIFI router to a remote VPN server
    The conenction is good for a while but eventually it drops out.
    I had Zero issues in mountain lion and only have issues since the update to 10.9
    I had similar issues in teh past with an unrelaibel wifi router but i am using a Verizon Fios router and it has worked impecably until mavericks
    My thoughts are:
    1 -issue with mavericks  ( maybe the app sleep funciton affecting eithe VPN or WIFI daemons)
    2- Issue with  cisco router compaitibility or timing with Cisco IPSEC
    3- Issue with WIFI itself on mavericks - some sort of WIFI software bug
    Any thousuggestions?

  • SSGD 4.31.905 and Native Client with HTTPS and firewall forwarding

    Hi everyone.
    I've just installed SSGD 4.31.905 on a SLES9/SP3 box and configured it as to use HTTPS connections only and firewall forwarding.
    I managed to handle X509 certs as to avoid having confirmation requests on the screen on every access and everything is working fine.
    Just a question: when I fire up a browser and try to connect to https://IP/sgd, the browser informs me about a potential security risk since I accessed a web server using its IP address instead of using its FQDN.
    If I confirm the dialog box, access is granted and everything else works fine (and this is expected).
    If I use the Native Client and try to access https://IP/tarantella, I got a "connection refused" message; if I change the URL as to read https://FQDN/tarantella, everything is fine.
    So it seems the Native Client cannot connect to a secured SSGD server by using an IP/hostname differente from the one recored into the X509 cert.
    Is it expected or what?
    Thanks,
    Rob

    Looks like the native client is less forgiving when it comes to certificates. Obviously, the best way to "resolve" this is to make sure that your client devices can resolve the FQDN of the SGD server.

  • Difference between native client and workstation client.

    hi,
    I am confused with the difference between native client and workstation client.In
    some docs,it is said that native client is one which run on the same system as
    the server,in other it is said running on other machine in the same domain.So
    what about workstation client?So can anyone please helpme out in knowing this
    difference?

    subhash wrote:
    hi,
    I am confused with the difference between native client and workstation client.In
    some docs,it is said that native client is one which run on the same system as
    the server,in other it is said running on other machine in the same domain.So
    what about workstation client?So can anyone please helpme out in knowing this
    difference?The simple answer is that /WS clients are compiled with the -w option.
    The complicated answer has to do with how the client connects to Tuxedo during the
    tpinit(), and all subsequent traffic. A Tuxedo Domain (instance) has a Bulletin
    Board, which is a chunk of shared memory with all kinds of information about Servers
    and Clients. A Native Client, since it is running on the same machine that the
    Bulletin Board exists on, can directly access the shared memory. However, /WS client
    (also called a remote client) cannot access this shared memory. Instead, we have the
    WSL server to make connections with, and then WSH processes that access the Bulletin
    Board on behalf of the remote client.
    So Native Clients run on the same machine as the Servers and where the Bulletin Board
    is located, and have direct access to shared memory and other IPCs. Workstation
    Clients/WS Client/Remote Clients (all the same thing) cannot access IPCs and have the
    WSH do it on their behalf.
    In NT, the Tuxedo IPC Service mimics Unix IPCs, and so all the above is still true.
    Brian Douglass
    Transaction Processing Solutions, Inc.
    8555 W. Sahara
    Suite 112
    Las Vegas, NV 89117
    Voice: 702-254-5485
    Fax: 702-254-9449
    e-mail: [email protected]
    [briand.vcf]

  • Trying to understand text encodings between windows clients and oracle DB

    I am focusing on a "maybe bad configured" oracle windows xp client connecting into a well configured oracle db server (10g for example). Instead of just keep the correct client settings to make it work I would prefer to understand what is really doing the oracle client with all the posible bad configurations regarding encodings.
    When the client executes something like "SELECT 'Col1', N'Col2' from dual" before sending the sql sentence into the server the sentence itself should be encoded.
    But the way the sentence is encoded or the fact that some magic encoding transform occurs depends on the technology used (Java Thin, OCI, Oledb, etc..) and sometimes it depends on the windows setting "Languages for Non-unicode programs" and sometimes it depends on the client NLS_LANG setting on the registry. Or maybe thigs are simpler and I simply got confused... Here we could add that maybe some third party tool could do some other "helpfull" hidden magic encoding transformation to make it work and things become interesting
    A second time when all this encoding stuff should be considered is when the results of the sentences are retrieved on the client.
    At this point the client receives an byte stream from the server (that could be a VARCHAR column or a NVARCHAR column). Again depending on the technology used the client could be specting a utext, text (OCI) or a CHAR, NCHAR (in JAVA) or a SQL_C_WCHAR, SQL_C_CHAR (in OleDb), etc...
    Well, I'm not sure at all about the first point. Is all the sentence encoded in the same way before sending it to the server (ie is sended as plain text) or before the client parses the sentence and it understand that is sending a SELECT statement that returns two cols (one varchar and the other nvarchar)? For example the N, the ' and the Col2 are sent using the same encoding?

    Todd:
    Ref:
    http://docs.oracle.com/cd/E35855_01/tuxedo/docs12c/ads/adecid.html#wp1075436
    Section: Generating ECID by Native/WS/Jolt clients and Domain Gateway
    We are using Jolt Clients, via JSL for executing Tuxedo Services. The problem, we always face while debugging is cross relation. It would be extremely useful for us if we could get the ECID printed in webserver and tuxedo server process. Can we get ECID using any programming API in jolt client and in Tuxedo server process ? It would help us to correlate web, Tux and server logs
    Thanks,
    Biju

  • Websphere 6.1 64-Bit (Windows)  and native libraries shipped with CF8

    After more deep tests, i found the following issues:
    - Reporting does not work, because ctr files are crypted (why
    ?) and can't be decrypted (failed to load native library
    nvr_win.dll)
    It is possible to provide an 64-Bit version of nvr_win.dll ?
    Or, simply, how to decrypt ctr files ?
    - CFIMAGE runs slow, because JAI uses Sun's Advanced Imaging
    API. This API uses native DLL's and there is no 64-Bit Windows
    version available. This API may run without the native DLL's, but
    it's really slow (An "ThreadMonitor W WSVR0605W:.." may be
    happend).
    The Server monitor don't fully work (this may be not an
    64-Bit issue):
    Error","WebContainer : 2","09/17/07","15:26:48",,"For input
    string: ""pwa"""
    java.lang.NumberFormatException: For input string: "pwa"
    at
    sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1239)
    at java.lang.Double.parseDouble(Double.java:497)
    at
    coldfusion.monitor.stack.JStackTraceFactory.isJdk15orAboveAvailable(JStackTraceFactory.ja va:65)
    at
    coldfusion.monitor.stack.JStackTraceFactory.providerInstance(JStackTraceFactory.java:31)
    at
    coldfusion.monitor.active.ActiveRequestMonitor.getAllActiveRequests(ActiveRequestMonitor. java:146)
    at
    coldfusion.monitor.MonitoringServiceImpl.getAllActiveRequests(MonitoringServiceImpl.java: 701)
    at sun.reflect.GeneratedMethodAccessor372.invoke(Unknown
    Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:615)
    at coldfusion.runtime.StructBean.invoke(StructBean.java:498)
    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2291)
    at
    cfservermonitoring2ecfc1089727812$funcGETALLACTIVEREQUESTS.runFunction(E:\cf8_final\cfusi on\wwwroot\CFIDE\adminapi\servermonitoring.cfc:809)
    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)
    at
    coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:360)
    at
    coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:324)
    at
    coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:56)
    at
    coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)
    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)
    at
    coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:448)
    at
    coldfusion.flash.filter.CFCInvokeFilter.invoke(CFCInvokeFilter.java:147)
    at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
    at
    coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
    at
    coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
    at
    coldfusion.flash.filter.CFCInvokePathFilter.invoke(CFCInvokePathFilter.java:70)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at
    coldfusion.flash.messaging.ColdFusionAdapter.invoke(ColdFusionAdapter.java:223)
    at
    flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:173)
    at
    flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1165)
    at
    flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:757)
    at
    flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:117)
    at
    flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
    at
    flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:48)
    at
    flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)
    at
    flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:145)
    at
    flex.messaging.endpoints.AMFEndpoint.service(AMFEndpoint.java:122)
    at
    flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:424)
    at
    coldfusion.flex.ColdFusionMessageBrokerServlet.service(ColdFusionMessageBrokerServlet.jav a:50)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
    at
    com.ibm.ws.cache.servlet.ServletWrapper.serviceProxied(ServletWrapper.java:276)
    at
    com.ibm.ws.cache.servlet.CacheHook.handleFragment(CacheHook.java:463)
    at
    com.ibm.ws.cache.servlet.CacheHook.handleServlet(CacheHook.java:281)
    at
    com.ibm.ws.cache.servlet.ServletWrapper.service(ServletWrapper.java:256)
    at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
    at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:930)
    at
    com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
    at
    coldfusion.filter.FlashRequestControlFilter.doFilter(FlashRequestControlFilter.java:71)
    at
    coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
    at
    com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java: 190)
    at
    com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
    at
    com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
    at
    com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:761)
    at
    com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:673)
    at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:498)
    at
    com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
    at
    com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.jav a:90)
    at
    com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
    at
    com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
    at
    com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink .java:454)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink .java:383)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.jav a:102)
    at
    com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionLi stener.java:165)
    at
    com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    at
    com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    at
    com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    at
    com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
    at
    com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
    at
    com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
    at
    com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)

    Hi,
    Can OBIEE 11g client be used to connect to OBIEE 10g server suite?
    A. You can, After installation in obiee client and create DSN and you can connect online mode to obiee server suite.
    If you want check serives are running or not use below command.
    ps -ef | grep obiee --- based on your folder name.
    OR,
    ps -ef | grep sawserver.sh -- presentation service
    oradwbi 13041844 1 0 Jul 13 - 0:00 /bin/sh /u02/dwbi_apps/obiee/oraclebi/setup/sawserver.sh
    oradwbi 30408812 34996452 0 15:53:03 pts/2 0:00 grep sawserver.sh
    Ps -ef | grep nqserver.sh
    oradwbi 18022618 1 0 Jul 13 - 30:48 /u02/dwbi_apps/obiee/oraclebi/server/Bin/nqsserver -quiet
    Hope this help's
    Thanks
    Satya

  • Communication between client and server

    I am using sockets for communication between the client and the server. is there any other way that i can use for communication between the client and server???

    Plenty of ways: JMS, SOAP, RMI, a RESTful API, writing-files-to-a-shared-directory-on-the-disk, Sneakernet, ...
    Some of them use sockets (or better TCP/IP) as the underlying protocol.
    But to give you a good answer, you would have to tell us why you want a different way. I hope you're not searching for a different way just for the sake of being different.

  • JNI, invocation API

    Hi,
    I would like to start with JNI.
    I read the JNI-Tutorial and
    didn't find the file: jni.h.
    Where can I get it?
    I would like to write an invocation API.
    A VC-program should call a java-function.
    Does anybody know,
    where to find the demo-code (c and java)
    of a 'hello world'-program?
    Thanks
    Ully

    Thanks bschauwe,
    I tested so many things,
    that I installed somethings else,
    but not the sdk!

  • JNI FindClass Error: Using the Invocation API  from visual C++

    I am using JNI invocation api in microsoft visual c++ to invoke java. When I use the FindClass method, I get a return value of 0. I have verified that the class "a" exists and believe have set the java class path appropriately. A valid jvm and jenv are created. The program fails at the FindClass call and returns 0.
    std::string classPath = "c:\\work\\java;C:\\j2sdk1.4.2_08;C:\\j2sdk1.4.2_08\\bin;C:\\j2sdk1.4.2_08\\lib";
         vmArgs.classpath = classpath;
         jint res = JNI_CreateJavaVM(&jvm, (void**)(&jenv), &vmArgs);
         if (res < 0)
              cout << "Error!! Cannot create jvm" << endl;
    jclass jFixEngineClass1 = jenv->FindClass("a");
         if (jFixEngineClass1 == 0)
              cout << "Error could not find a class" << endl;
         else
              cout << "a class found" << endl;
    thanks in advance,
    hcg

    Jschell,
    Thanks for your help.
    I found the error. I was using JDK1_1InitArgs for my vm_args. Since, I am using JDK 1.4, the classpath I was setting was not getting picked up. I changed the vm_args type as in the code below and it worked.
    JavaVMInitArgs vmArgs;
         JavaVMOption options[1];
         char classPathDef[1024];classPathDef[0] = '\0';
         sprintf(classPathDef, "%s", "-Djava.class.path=");
         sprintf(classpath, "%s%s", classPathDef, NYSE_FIX::userClassPath.c_str());
         options[0].optionString = classpath;
         cout << "Option string is:" << options[0].optionString << endl;
    vmArgs.version = 0x00010004;
    vmArgs.options = options;
    vmArgs.nOptions = 1;
    vmArgs.ignoreUnrecognized = JNI_TRUE;
         jint ret = JNI_GetDefaultJavaVMInitArgs(&vmArgs);

  • Running JavaFX as client and connecting though Database

    Hello,
    I am searching for the feasibility of JavaFX for a client.I want to run JavaFX on client machine(can be multiple clients) and through some middle layer I want to connect it through database server etc.
    How is this possible.?

    csh wrote:
    I guess you find plenty of samples in the net on how to use a WebService from a pure Java client.If one knows to look for the JAX-RS (reference implementation: Jersey) or JAX-WS (reference implementation: Metro) APIs. I'd prefer JAX-RS because it is very easy to use, IF you take the time to read up about RESTful webservices.

  • Connection Errors between Oracle 8 Client and Oracle 8.1.6 EE

    Our current application has been developed using PowerBuilder 6.5 and Oracle 8.1.5. Since PB 6.5 does not have a "native driver" for 8.1.5, we have used their driver for Oracle 8.0.5 for Net8 connectivity to the server. Everything works fine.
    Recently, I downloaded the current version of Oracle 8.1.6 EE from Technet to try out the compatibilty of our software with the next version of 8I, it failed. The error seems to be somewhere between the 8.0.5 Oracle Client Software and the downloaded Oracle 8.1.6 EE Server software. Some how we have lost the ability to declare cursors. I tried declaring a cursor in a procedure through SQL*Plus and it failed their as well. I have even tried the Oracle 8.0.6 Client, with same results.
    Has anyone seen this? If so, what should I do?
    Thanks,
    Jason

    HOW TO SUPPORT TWO-TASK COMMON ERRORS - 1012295.102
    Troubleshooting
    ===============
    Two-task common errors are generally RDBMS related issues, but could be caused by a problem with SQL*Net, or an application (i.e. Pro*C).
    ORA-03106
    ======== Possible reasons for the ORA-03106 errors include:
    1. Incompatibilities between the client application and the RDBMS server.
    For example, version incompatibilities, or a client trying to use a feature not supported by the database kernel.
    2. When using database links or gateways.
    3. Network or SQL*Net problems.
    4. Corruptions.
    5. PL/SQL - language related.
    check the NLS_LANG variable on the client and server.

  • Best approach for uploading document using custom web part-Client OM or REST API

    Hi,
     Am using my custom upload Visual web part for uploading documents in my document library with a lot of metadata.
    This columns contain single line of text, dropdownlist, lookup columns and managed metadata columns[taxonomy] also.
    so, would like to know which is the best approach for uploading.
    curretnly I am  trying to use the traditional SSOM, server oject model.Would like to know which is the best approach for uploading files into doclibs.
    I am having hundreds of sub sites with 30+ doc libs within those sub sites. Currently  its taking few minutes to upload the  files in my dev env. am just wondering, what would happen if  the no of subsites reaches hundred!
    am looking from the performance perspective.
    my thought process is :
    1) Implement Client OM
    2) REST API
    Has anyone tried these approaches before, and which approach provides better  performance.
    if anyone has sample source code or links, pls provide the same 
    and if there any restrictions on the size of the file  uploaded?
    any suggestions are appreciated!

    Try below:
    http://blogs.msdn.com/b/sridhara/archive/2010/03/12/uploading-files-using-client-object-model-in-sharepoint-2010.aspx
    http://stackoverflow.com/questions/9847935/upload-a-document-to-a-sharepoint-list-from-client-side-object-model
    http://www.codeproject.com/Articles/103503/How-to-upload-download-a-document-in-SharePoint
    public void UploadDocument(string siteURL, string documentListName,
    string documentListURL, string documentName,
    byte[] documentStream)
    using (ClientContext clientContext = new ClientContext(siteURL))
    //Get Document List
    List documentsList = clientContext.Web.Lists.GetByTitle(documentListName);
    var fileCreationInformation = new FileCreationInformation();
    //Assign to content byte[] i.e. documentStream
    fileCreationInformation.Content = documentStream;
    //Allow owerwrite of document
    fileCreationInformation.Overwrite = true;
    //Upload URL
    fileCreationInformation.Url = siteURL + documentListURL + documentName;
    Microsoft.SharePoint.Client.File uploadFile = documentsList.RootFolder.Files.Add(
    fileCreationInformation);
    //Update the metadata for a field having name "DocType"
    uploadFile.ListItemAllFields["DocType"] = "Favourites";
    uploadFile.ListItemAllFields.Update();
    clientContext.ExecuteQuery();
    If this helped you resolve your issue, please mark it Answered

  • Hello world Native Extension API

    Hi all :-)
    I am an android expert and I'd really love to create some cool extensions like the android notifications, but since I don't know much about Flex, I have a lot of trouble getting the test vibrator with native extension working.
    (http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/vibration.html)
    My sample is still buggy, it is probably beginner's bug, but I don't see how to fix it yet.
    I am surely not the only native guy trying to do this, so I would like to sumarize here all the steps needed to have our first hello world Native Extension API
    Install Flex 4.5.1 http://www.adobe.com/go/try_flashbuilder/ and download the Adobe AIR 3.0 RC http://labs.adobe.com/downloads/air3.html  as well as the sample files http://download.macromedia.com/pub/developer/air/ane/Vibration.zip
    Create a test Flex mobile project.(all the deffault parameters are fine) I'll call it HelloWorldNativeExtension.
    (If AIR 3 is not released yet) Do the following to tell Flex builder to use the RC on your test project : http://forums.adobe.com/thread/899921
    Unzip the vibration.zip, and go to ready to use extansion.
    Go to Project -> Flex buildpath -> Libraries -> Add a new swc. Add the ready to use extension as a library. Then open the extensions properties and change the link type from "bundled with" to "external linkage"
    Go to HelloworldNativeExtension-app.xml and in the tag manifestAddition, add : <uses-permission android:name="android.permission.VIBRATE"/>
    Write a sample view (as described below)
    Run (target platform->android and then chosse to run on a device)
    When asked to update the air version, answer yes
    Wait a loooong time before it actually start.
    Here is my code for the sample view:
    In HelloworldNativeExtension.mxml
    Use the following code :
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx">
        <fx:Script>
            <![CDATA[
                import com.adobe.nativeExtensions.Vibration;
                protected function testButton():void
                    textArea.text="Before vibration";
                    var vibe:Vibration;
                    if (Vibration.isSupported)
                        vibe = new Vibration();
                        vibe.vibrate(2000);
                    textArea.text="After vibration";
            ]]>
        </fx:Script>
        <s:Panel title="Exemple MXML" width="330">
            <s:layout>
                <s:VerticalLayout paddingLeft="15" paddingTop="15" paddingBottom="15" paddingRight="15"/>
            </s:layout>
            <s:Label x="223" y="173" text="test" id="textArea"/>
            <s:Button label="Vibrate" click="testButton()"/>
            <s:Label id="result" width="265"/>
        </s:Panel>
    </s:Application>
    Well... so far my project doesn't compile because the library is loaded externally. It compiles fine if I add it as a bundled library, but then the virbrator can't work (External native code have to be loaded externally)
    And thus so far I get the errors :
    Description
    Ressource
    Chemin
    Emplacement
    Type
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.display]::IBitmapDrawable.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    (Which means something like : 1046: this type cannot be resolved or is not in the buildpath ... So it probably means the project doesn't compile well)
    So I'm still trying to figure out what to do, but I am close I think... Very close.

    Yes, in fact you are very close
    You will have to put an <extensions> tag in app-xml if not already done so:
    <extensions>
    <extensionID>com.adobe.Vibration</extensionID>
    <extensions>
    Then since it is FlashBuilder 4.5.1, you will have to package the android application through command line since it requires 1 more parameter -extdir :
    adt -package -target apk . . . app.apk app.xml app.swf -extdir extensions
    extensions is the directory which contains your .ane file. Checkout http://www.adobe.com/devnet/air/articles/extending-air.html#articlecontentAdobe_numberedhe ader_1 for more details.
    Thats all. You should be able to run your app now. Let me know if it still doesnt work.
    Thanks,
    Meet
    AIR Team

Maybe you are looking for