Can Java be used to write service/daemon at solaris?

I new to solaris server side developement, thinking not go back to c/c++ on solaris, to write the system service or daemon. Can I use java to achieve this instead of c/c++ ? Or where I can find the samples / resources about this?
Thanks,
Ben

There is no reason you cannot write a daemon in Java. The cloudscape database daemon that was shipped with the original Forte for Java is written in Java. You need to decide if Java can give the the performance you require for your service/daemon, however.
You can find some examples and an API for writing Java Daemons at:
http://www.jcp.org/en/jsr/detail?id=96
http://jakarta.apache.org/commons/sandbox/daemon/
http://sourceforge.net/projects/telnetd/

Similar Messages

  • Can songs uploaded using the iMatch service be accessed by other family members using the Family Sharing feature?

    Can songs uploaded using the iMatch service be accessed by other family members using the Family Sharing feature?

    No
    Which purchased content can I share using Family Sharing - Apple Support

  • Can Java be used to manipulate the Windows registry?

    Can Java be used to manipulate the Windows registry? If so, can someone point me to some examples?
    Thanks!

    There is no supplied capability to do this, because the registry is Windows platform specific.
    It might be possible by making the call through a native Windoze app.

  • I want to know if the blackberry can still be used without the service

    hi guys,
    I want to know if I can still use the Blackberry on its own without the  Blackberry service such as email, Internet etc? And also can I still use the texts and calling on a Blackberry without the service?

    In addition to what bewaarse said, you will not be able to use MMS either (they require data).
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Can  Java be used to save content of HTML form to a file?

    We have an application that saves a pdf file to a location on our webserver. The file displays on the users machine in a browser window. I have created a link in the links bar of the browser window which launches a simple HTML page. This page allows the user to enter a number of fields and click 'SAVE'. This is where I am having the problem. I need the save button to firstly create a csv file on the webserver containing the details input by the user. I then need the pdf file saved to the web server with a new name and in the same location as the csv file. is there anyway to achieve this using Java or can anyone please point me in the right direction?
    Thanks

    <<Click on the SAVE button in an HTML <form> and the browser will perform an HTTP POST of the data to a URL. Make that URL point to a Java servlet and it can take that form data
    <<and write it to the webserver file system in any format you wish, including csv and pdf.
    agree with duffy. You can also use JSP and call a class method to handle whatever data you specify.
    orozcom

  • How to code in java to use the web services of CRM

    Hi,
    I am new to CRM on demand web services. I want to develope a java J2EE application to insert some lead data into CRM on demand. But i have no idea of how the wsdl provided by CRM can be converted to a java class so that i can use the API's provided by them in my program. I am using Eclipse Galileo IDE for my java application development. Can any one tell me the way to reference the wsdl in my program or any other way to build my application.
    Please help me out.
    Thanx in advance.

    May be it's the 'stub' you should be looking for.
    Any Account related queries/creations - AccountStub
    --> Query : Populate AccountQuery, populate AccountQueryPage_Input, call accountStub.accountQueryPage(input);
    --> Creation: Populate AccountData, populate AccountInsert_Input, call accountStub.accountInsert(input)
    It's the same procedure for other objects like Contact, Lead, Opportunity.
    I worked on other web-services using Axis2, and 'Stub' has been the one which we use to connect to the web-service.
    Edited by: 838315 on Mar 30, 2011 11:17 PM
    Edited by: 838315 on Mar 30, 2011 11:59 PM

  • Can Java be used to parse Microsoft Word(.doc) files?

    Hi guys ,
    I want to know whether Java can be used to parse Microsoft Word(.doc) files for searching a string or for checking for grammatical errors, etc
    Thanks in advance.
    Avichal

    Hey man, anything and every thing can be done these days.
    About ur question doc is like all other normal text files with some extra features and extra character supports and other stuffs.
    If u neglect those parts and if u consider it to be a normal text file then its a much simpler job.
    Here is a code that searches for the key word in all the doc files, txt files, pdf files and html files
    in the mentioned folder and sub folders. Any way its a servlet u can change it to a normal program.
    It first check the file to know whether they are doc, pdf, html or txt files if yes then it will read the file and
    store the contents in the vector and parse the vector for the search string and display the result.
    Along with the result the below code will also display the time taken and the number of search string found in the document
    import java.io.*;
    import java.util.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class search_local extends HttpServlet
         public void service( HttpServletRequest _req, HttpServletResponse _res ) throws ServletException, IOException
              long startTime = System.currentTimeMillis();          
              File RootDir     = new File( _req.getRealPath( "/docs/" ) );
              if ( RootDir.isDirectory() == false )
                   System.out.println( "Invalid directory" );
                   _res.setStatus( HttpServletResponse.SC_NO_CONTENT );
                   return;
              Vector kList = new Vector( 3 );
              StringTokenizer st = new StringTokenizer( _req.getParameter( "search_text" ), "+" );
              while ( st.hasMoreTokens() )
                   kList.addElement( st.nextToken().trim() );
              //- Run through list
              Vector toBeDone     = new Vector( 10 );
              Vector found     = new Vector( 10 );
              String dir[] = RootDir.list( new htmlFilter() );
              cDirInfo tX = new cDirInfo( RootDir, dir );
              toBeDone.addElement( tX );
              while (  toBeDone.isEmpty() == false )
                   tX = (cDirInfo)toBeDone.firstElement();
                   try
                        int x = 0;
                        for ( ;; )
                             File newFile = new File( tX.rootDir, tX.dirList[x] );
                             if ( newFile.isDirectory() )
                                  File t = new File( tX.rootDir, tX.dirList[x] );
                                  String a[] = newFile.list( new htmlFilter() );
                                  toBeDone.addElement( new cDirInfo( t, a ) );
                             else
                                  int freq = searchFile( kList, newFile );
                                  if ( freq != 0 )
                                       found.addElement( new cPage( freq, newFile ) );                              
                             x++;
                   catch( ArrayIndexOutOfBoundsException E ){}
                   toBeDone.removeElementAt(0);
                   dir     = null;
              long totalTime = System.currentTimeMillis()     - startTime;
              formatResults( found, kList, totalTime, _req.getRealPath( "/docs" ), _res );
         private void formatResults( Vector _fList, Vector _kList, long time, String _root, HttpServletResponse _res ) throws IOException
                 _res.setContentType("text/html");
              PrintWriter Out = new PrintWriter( _res.getOutputStream() );
              Out.println( "<HTML><HEAD><TITLE>Search results</TITLE></HEAD>" );
              Out.println( "<BODY><H3>Search Results</H3><BR>" );
              Out.println( "Keywords:<B> " );
              Enumeration E = _kList.elements();
              while ( E.hasMoreElements() )
                   Out.println( (String)E.nextElement() + " : " );
              Out.println( "</B><BR><BR><CENTER><HR WIDTH=100%></CENTER><BR>" );
              E = _fList.elements();
              cPage sPage;
              String link;
              while ( E.hasMoreElements() )
                   sPage = (cPage)E.nextElement();
                   link  = sPage.cFile.toString();
                   link  = "http://localhost/BugFix/docs/" + link.substring( link.indexOf( _root )+_root.length(), link.length() );
                   Out.println( "<FONT SIZE=+1><A HREF=" + link + ">" + sPage.cFile.getName() + "</A></FONT>" );
                   Out.println( "<FONT SIZE=-2>(" + sPage.freq + ")</FONT><BR>" );
              if ( _fList.size() == 0 )
                   Out.println( "<I><B>No sites found!</I></B><BR>");
              Out.println( "<BR><CENTER><HR WIDTH=100%></CENTER>" );
              Out.println( "<BR><FONT SIZE=-1>Time to complete: " + ((double)time/1000) + " seconds</FONT>" );
              Out.println( "</BODY></HTML>" );
              Out.flush();
         private int searchFile( Vector _klist, File _filename )
              //- Links the file
              int     frequency=0;
              try
                   DataInputStream In     = new DataInputStream( new FileInputStream( _filename ) );
                   String LineIn, token;
                   boolean bValid = true;
                   Enumeration E;
                   cLineParse lp;
                   while ( (LineIn = In.readLine()) != null )
                        lp = new cLineParse( LineIn.toUpperCase() );
                        while ( (token=lp.nextToken()) != "" )
                             if ( token.indexOf( "<" ) != -1 && (
                                   token.indexOf( "<A" ) != -1 ||
                                   token.indexOf( "<HE" ) != -1 ||
                                   token.indexOf( "<APP" ) != -1 ||
                                   token.indexOf( "<SER" ) != -1 ||
                                   token.indexOf( "<TEX" ) != -1  ))
                                  bValid  = false;
                             else if (     token.indexOf( "<" ) != -1 && (
                                            token.indexOf( "</A" ) != -1 ||
                                            token.indexOf( "</HE" ) != -1 ||
                                            token.indexOf( "</APP" ) != -1 ||
                                            token.indexOf( "</SER" ) != -1 ||
                                            token.indexOf( "</TEX" ) != -1  ))
                                  bValid  = true;
                             else if ( bValid )
                                  E = _klist.elements();
                                  String key;
                                  while ( E.hasMoreElements() )
                                       key     = ((String)E.nextElement()).toUpperCase();
                                       if ( token.indexOf( key ) != -1 )
                                            frequency++;
                   In.close();
              catch( IOException E ){}
              return frequency;
    class cPage extends Object
         public int     freq;
         public File cFile;
         public cPage( int _freq, File _cFile )
              freq = _freq;
              cFile = _cFile;
    //- End of file
    //----- Supporting classes
    class htmlFilter implements FilenameFilter
         public boolean accept(File dir, String name)
              File tF     = new File( dir, name );
              if ( tF.isDirectory() )
                   return true;
              int indx = name.lastIndexOf( "." );
              if ( indx == -1 )
                   return false;
              String Ext = name.substring( indx+1, name.length() ).toLowerCase();
              if ( Ext.equals( "html" ) ||
                    Ext.equals( "pdf" ) ||
                    Ext.equals( "txt" ) ||
                    Ext.equals( "doc" ) )
                    return true;
              return false;
    class cDirInfo
         public File     rootDir;
         public String[] dirList;
         public cDirInfo( File _r, String[] _d )
              rootDir     = _r;
              dirList = _d;
    class cLineParse
         String L;
         public cLineParse( String _s )
              L = _s;
         public String nextToken()
              String ns="";
              boolean bStart = false;
              for ( int x=0; x < L.length(); x++ )
                   if ( L.charAt(x) == '<' && ns.length() != 0 )
                        L = L.substring( x, L.length() );
                        return ns;
                   else if ( L.charAt(x) == '<' )
                        ns     = ns + L.charAt( x );
                        bStart = true;
                   else if ( L.charAt(x) == '>' ||
                               L.charAt(x) == '\r' ||
                         ( L.charAt(x) == ' ' && bStart == false ) )
                        ns     = ns + L.charAt( x );
                        L = L.substring( x+1, L.length() );
                        return ns;
                   else
                        ns     = ns + L.charAt( x );
              L = "";
              return ns;
    }

  • Can Java be used for this?

    Hi. As a hobby, I have built a game with a development tool called Macromedia Director.The game is a 'virtual tabletop' that allows people to play a variety of role playing games over the internet that are traditionally played in a face to face setting at a real table.
    Due to some shortcomings with Director I am looking for another language to program the game.I currently use an old version of Director and upgrading is expensive. Director also has limited cross platform support (no Linux). Finally, the future of Director is in question as Macromedia was acquired by Adobe and they have already end-of-lifed some of the acquired products.
    My game consists of some basic features. One user runs a server application that accepts connections from the client application. Once connected the cleints can do basis text chat. There is die rolling function. Finally there is a feature for the referee to send pregenerated images to the players, typically some sort of map. The image can be hidden from the players and revealed in pieces by the referee. I also plan on adding a shared whiteboard feature for creating on the fly images.
    I have done some preliminary investigation and it seems that Java is one of the obvious choices. The socket programming seems to be straight forward and allow you to create a similar client/server application. Swing covers building the GUI. What I am not clear on is the graphics capability of Java. Director has a fairly powerful graphics engine allowing you to work with 32 bit graphics (alpha channels) and pixel manipulation.
    It seems like Java can do all this, but I want to make sure before I invest to much time. You can see screen shots of my game at http://www.v-fort.org. It's definetly not a polished product. There are many of these types of programs already.I just do it because I enjoy programming (and gaming too). I appreciate any suggestions. Thanks
    -- Dave

    Java is it!

  • Can AppleScript be used to write an audio mixer app?

    I apologize for the total newbie question here, but I need to put together a simple app that can load in up to 8 audio tracks (either in mp3 or aiff format), adjust their individual volumes and output each one of them separately. By separately I mean simultaneously but NOT mixed down to a two channel stereo, I want each of the 8 tracks to have its own output.
    I thought that this would exist as a shareware but apparently not.
    I will use the output of this to drive an M-Audio 410 firewire external box which will then take these 8 channels and convert them to 8 analog signals.
    Thank you for any help.
    Bo

    I don't think you can write an AppleScript application to do this, but you could possibly use it to drive another application.
    I would start with GarageBand. You most likely got a copy of this with your Mac as part of an iLife package. It is scriptable, but I have never used it myself.
    If you want a more high powered mixing application, you should check out ProTools. You can get a free version here. I'm not sure if it is scriptable, but it is Very powerful.

  • WCF and WP8.1: Can I only use WCF REST services? Then better WCF or Web API?

    I am trying to create a simple application to test WCF with WP8.1. I have created my service. Later I create my WP8.1 silver light application and I try to add a reference to my service Project. The problem is that I get an error that says that I have only
    add reference to projects that are Windows pone 8.
    I have read some solutions, but all of them are creating a WCF REST service, so my doubt if the WP8.1 applications only can connect to WCF REST services.
    In this case, if this is true, it not would be better to use Web API instead of WCF?
    Thanks so much.

    You can use any type of rest service with windows phone 8.1 because rest services can be called via the httpclient class.  You dont need a service reference.  Personally I prefer the web api but there is no reason you can not use a wcf rest service.

  • Can java be used for game dev?

    (Side note)-when I first posted here a couple months ago I decided to stop because of final exams.
    I want to get back into programming again and Im thinking about starting into java (again). My future hope is to eventually make a basic game. Can you do that with java because a lot of people tell me java 3d is a horrible and useless system.
    thanks

    If you're working on this project by yourself, I wouldn't recommend using Java 3D. It takes a lot of effort to get even simple 3D graphics working the way you want them to in Java 3D, and the learning curve is pretty steep. I don't have any experience with jogl, though, so I can't say whether or not its any better.
    - Adam

  • Can Java be used to communicate with hardware?

    I work with electronics as a hobby, but wish to interface with my electronics so I'm trying to find a programming language that has good API's for hardware communication(most likely through a serial or parallel port).
    Can this be done with Java? I really like java and the fact that it's platform independant.

    I work with electronics as a hobby, but wish to
    interface with my electronics so I'm trying to find a
    programming language that has good API's for hardware
    communication(most likely through a serial or parallel
    port).
    Can this be done with Java? I really like java and the
    fact that it's platform independant.I used the serial communications API, and it's not hard to use. The thing is you loose the platform independence when you use (it has some platform specific things)

  • Can text be used for write-on effect

    I've watched Mark's tutorials on using a path to make text look like its writing onto the screen. But in those tutorials, its always a pen or mouse making a path which results in "dirty" text.
    Can you use clean text created with the text tool as paths for the write-on effect?

    Sure. Just type you text, draw paint strokes to cover it, then use the paint strokes group as an image mask to reveal the text underneath.

  • Can Java be used to link client/server?

    Hello,
    I do not know a great deal about either subject but I was wondering whether there was any information online (or indeed a product...) which is Java based to provide a link between a client/server environment. Specifically in this case online, i.e. an online catalogue where clients can interrogate (i.e. search for products etc.) a server.
    Thank you for any help!
    Tom.

    an online catalogue where clients can interrogate
    (i.e. search for products etc.) a server.The short answer to your question is: "Yes, Java can be used to develop the product you mentioned."
    The longer question comes in how do you want the users to access the on-line catalogue?
    It can be made as simple as a generic browser accessing your catalog which can be complete with pictures, descriptions, searches, and purchase information...
    or any combination of complexity up to having to use a user developed applicatoin to hit your site. Java can be used to implement the entire range.

  • Can java be used to stream

    i can use java for fee readers but i have to stream a dvd can i do this with java are there an tutorials.
    also i it is a bit off java but you will probably be able to help me you know most things here. can i convert a mepg4 into a dvd playable format that can play on a dvd player if so what software can i use.
    i need to be able to do this to make it worth while for me to learn how to stream dvd's using java.
    thank you for your time.

    There is no supplied capability to do this, because the registry is Windows platform specific.
    It might be possible by making the call through a native Windoze app.

Maybe you are looking for

  • What are the limitations of the EEWB?

    Hi, I am looking for what all limitations we have for EEWB. Thanks. Dilip

  • Mobile Device error

    Today when I tried to hook my iphone to my computer iTunes said it can't connect because the Mobile Device was not running? anyone know what to do - apple has been useless in solving this . . . . .

  • OAF problem

    hi experts, i have a problem on oracle application framework(OAF). as per our client requirement ,page is there in particular day(like sunday or saturday) some columns should be disable stage. i need a logic for this how to approach. if you provide a

  • HE AAC stream compatibility

    Is there a way to encode and stream HE AAC live in such a way that it is possible to play the stream both in the Flash Player and in other common players? Thank you very much in advance for any info or ideas! /Chris

  • Hana is a Database or Memory and why BW on Hana?

    Dear Experts, I have read few documents regarding Hana and I am confused? Following is my understanding. Correct me if I am wrong in my understanding? 1. I believe Hana is a database(a different kind of data base with Software and hardware) which sto