HELP - EJBException in ejbStore() doesnt propogate to client

Oracle 8.1.7
Entity Bean (Bean managed persistence)
Transaction Attrib : Required
I am trying to get any SQLException thrown in ejbStore() to be thrown to the client wrapped in an EJBException and somehow this doesnt happen. My ejbStore() method tries to execute an update statement, but if the update fails for some reason then I need the exception thrown back to the client.
Sample piece of code:
public void ejbStore() throws EJBException {
try {
conn = getConnection();
PreparedStatement stmt = conn.prepareStatement("...");
stmt.setString(1, ...);
int a = stmt.executeUpdate();
} catch (SQLException e) {
throw new EJBException(e.getMessage());
Is there something wrong with this approach or a am I missing something ???
Thanks in advance for any help.
Ashish.
null

I have tried and tried and failed to make sense of this.
Can anyone give me the slightest of hints?
TIA.
Ashish.

Similar Messages

  • EJBException in ejbStore() doesn't reach client

    Oracle 8.1.7
    Entity Bean (Bean managed persistence)
    Transaction Attrib : Required
    I am trying to get any SQLException thrown in ejbStore() to be thrown to the client wrapped in an EJBException and somehow this doesnt happen. My ejbStore() method tries to execute an update statement, but if the update fails for some reason then I need the exception thrown back to the client.
    Sample piece of code:
    public void ejbStore() throws EJBException {
    try {
    conn = getConnection();
    PreparedStatement stmt = conn.prepareStatement("...");
    stmt.setString(1, ...);
    int a = stmt.executeUpdate();
    } catch (SQLException e) {
    throw new EJBException(e.getMessage());
    Is there something wrong with this approach or a am I missing something ???
    Thanks in advance for any help.
    Ashish.

    I have tried and tried and failed to make sense of this.
    Can anyone give me the slightest of hints?
    TIA.
    Ashish.

  • Help:How can I run the J2EE Client Application? Thanks

    Help:How can I run the J2EE Client Application that will access the remote J2EE1.4 application server which runs on another host computer?
    I have developped a stateles senterprise java bean name converter and deloyed it in the j2ee1.4 application server on the host machine A. The converterbean provides the remote home interface and remote interface. At the same time I have developped the j2ee application client named convertappclient. When I access the conveter bean at host computer A through the script 'appclient.bat' as 'appclient -client convertappclient.jar', the client can access the bean sucessfully. Now I want to access the bean through the script 'appclient.bat' at host computer B,what files should I copy from host computer A to host computer B;and what the command line should be like? Thanks!
    The following are the code of the enterprise java bean and it's home interface .
    The client code is also provided.
    The enterprise java bean:
    package converter;
    import java.rmi.RemoteException;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import java.math.*;
    public class ConverterBean implements SessionBean {
    BigDecimal yenRate = new BigDecimal("121.6000");
    BigDecimal euroRate = new BigDecimal("0.0077");
    public ConverterBean() {
    public BigDecimal dollarToYen(BigDecimal dollars) {
    BigDecimal result = dollars.multiply(yenRate);
    return result.setScale(2, BigDecimal.ROUND_UP);
    public BigDecimal yenToEuro(BigDecimal yen) {
    BigDecimal result = yen.multiply(euroRate);
    return result.setScale(2, BigDecimal.ROUND_UP);
    public void ejbCreate() {
    public void ejbRemove() {
    public void ejbActivate() {
    public void ejbPassivate() {
    public void setSessionContext(SessionContext sc) {
    The bean's remote home interface :
    package converter;
    import java.rmi.RemoteException;
    import javax.ejb.CreateException;
    import javax.ejb.EJBHome;
    public interface ConverterHome extends EJBHome {
    Converter create() throws RemoteException, CreateException;
    The bean's remote interface:
    package converter;
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    import java.math.*;
    public interface Converter extends EJBObject {
    public BigDecimal dollarToYen(BigDecimal dollars) throws RemoteException;
    public BigDecimal yenToEuro(BigDecimal yen) throws RemoteException;
    The j2ee application client:
    import converter.Converter;
    import converter.ConverterHome;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import java.math.BigDecimal;
    public class ConverterClient {
    public static void main(String[] args) {
    try {
    Context initial = new InitialContext();
    System.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
                   System.setProperty("java.naming.provider.url","jnp://10.144.97.250:3700");
    Context myEnv = (Context) initial.lookup("java:comp/env");
    Object objref = myEnv.lookup("ejb/SimpleConverter");
    ConverterHome home =
    (ConverterHome) PortableRemoteObject.narrow(objref,
    ConverterHome.class);
    Converter currencyConverter = home.create();
    BigDecimal param = new BigDecimal("100.00");
    BigDecimal amount = currencyConverter.dollarToYen(param);
    System.out.println(amount);
    amount = currencyConverter.yenToEuro(param);
    System.out.println(amount);
    System.exit(0);
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();
    }

    Surprisingly I find an upsurge in the number of posts with this same problem. I recently found a post which gave a nice link for this. Follow the steps and it should help:
    http://docs.sun.com/source/819-0079/dgacc.html#wp1022105

  • Error- Create Report doesnt work on client machine

    Hi All,
    On one of the machine i have installed
    BO XI R2 server,
    VS 2005
    I have tried Create report application using Web intelligence sdk on it and it's working.
    But when i try to run the same sample from another machine it throws an error as below.
    Java Plug-in 1.6.0_11
    Using JRE version 1.6.0_11 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\sslcomp172
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    o:   trigger logging
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to <n>
    load: class com.businessobjects.wp.tc.TCMain not found.
    java.lang.ClassNotFoundException: com.businessobjects.wp.tc.TCMain
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed:http://localhost:2112/edit_cs_webi_java_panel/applet/com/businessobjects/wp/tc/TCMain.class
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 7 more
    Exception: java.lang.ClassNotFoundException: com.businessobjects.wp.tc.TCMain
    Please help me
    Thanks
    Amol Mali

    Hi, Amol;
    The main point of the error is that there is a class that is not found or missing.
    On the other computer, how did you deploy the Crystal runtime files? Have you installed a server version of Crystal to that machine, or does it have the full Enterprise product installed?
    Regards,
    Jonathan

  • Help :- Send Large File From Server To Client

    Hey guys, I am stuck with a problem.Hope u guys might be able to help me out. My problem is :-
    From client i am doing an operation which results in calculation of results by server and saving a file on the server..But i want to see what results have been computed by the server and hence i want to stream that file back to the client..
    The file may be of 100MB as well , that is, the size of the file may be huge.
    I want u guys to tell me how to stream that file back to the client..I tried returning byte array which gets serialized and then received at client side but as i said the file may be huge so memory problem may arise, so returning byte[] from function is not a good solution..
    I am looking something where server can send the file back to the client in chunks..Client keeps receiving these chucks and keep putting them in the file.
    So how to make server send file in chunks??Also, i don't know the hostname and ports...so sockets i can't use...
    Any Another way to do it...??
    is PipedStream a solution??
    Please guys, help me
    Thanks in advance
    Edited by: 854509 on Apr 25, 2011 8:28 AM
    Edited by: 854509 on Apr 25, 2011 8:59 AM

    854509 wrote:
    I knew about sockets but as i said i am able to send request to server by client by calling a remote method...There i haven't used sockets...RMI uses sockets, I assume you mean you don't access to the underlying socket.
    So i wanted to know if we can without using sockets send file back to Client..I would have the RMI return the connection details where the result can be obtains, .e.g with hostname, port, and file name to use.
    I would suggest trying to compress the stream as well (just wrapp the stream on the sender/reciever), especially for files over 1 MB.
    Tell me something abt PipedStreams as well..If they are of any use here or not?I don't see how. PipedStreams can be used to share data between threads in the same process.
    If RMI is your only choice you can perform a method which would return alot of data and have seperate methods to download portions of it.
    e.g.
    public int loadBigFile(String filename); // returns the number of portions.
    public byte[] returnPortion(int n);
    int portions = rmi.loadBigFile("my-big-file.xml");
    for(int i=0;i<portions;i++) {
       byte[] bytes = rmi.returnPortion(i);
       // do something with bytes.
    }You can have the server cleanup the file when the last portion is read.

  • Urgent Please help: Error Testing EJB in Universal Test Client

    Hi,
    I have to get this working by tommrow guys - can you please help.
    I wonder if someone can assist. I am new to WSAD 5.1 and am trying to test an EJB I have created with both local and remote interfaces.
    The bean has been created OK and ithe stub files have created for the bean via Generate->Deploy and RMIC code.
    The RJB project has been defind in my WAS server correctly. The JNDI name in the EJB is \ejb\MyEJBHome
    I start the Universal Test client (UTC) via the options on my WAS Server and then click on the JNDI explorer icon option and see my local EJB Folder and an ejb folder (plus others). If I go to the local EJB folder the stub for my local home inteface appears , I am able to click on it and consumme the bean.
    However if I go to the ejb folder I see my home stub for the remote inteface , I do indded need to click on this to get at the remote inteface for my bean. However on clicking it I get a WAS error "null reference found".
    It does not appear to be able to get at the MyBeanHome stub (no reference to it).
    Ok what am I doing wrong! The project build with no errors and I can see all the stubs in the ejbModule folder. Now is the UTC expecting these stubs to be sitting in a particular directory? if so where?

    Hi Problem is with
    public class MyEJBBean extends AbstractStatelessSessionBean {
         private javax.ejb.SessionContext mySessionCtx;
    extends AbstractStatelessSessionBean causes a problem in UTC.
    Regards.

  • Help!!! I have 200 clients at once!

    I realize this post may be better suited for the idvd forum, but I think more professionals are in this forum.
    I have a project where I have to create a video for 200 clients and each of them gets 10 DVD copies of their video.
    Here's a little background. I'm creating a highlight videos for 200 high school athletes. They will all be in a tournament over three weekends and I will shoot every game of the tournament. I figure I will end up with about 20 hrs of raw video and each athlete will get video that runs about 20 minutes.
    Obviously I need to have some sort of upgrade from my current powerbook G4... but has anyone ever dealt with this type of mass production? What did you do to accomplish it?

    You probably dont really need to get a new Mac if you are going to just edit some footage and burn some masters--- but a new G5 wouldn't hurt.
    I would use DVD SP for burning. Burn one copy of each different DVD and then use a DVD copy tower to make the duplicates.
    I would highly recommend www.polylinecorp.com for DVD cases. Great prices, great quality. They also sell precut case inserts which are great for black and white case inserts...just use 'em with a laser printer and you get really fast output.
    You may need to also purchase a disc printer. I have a Primera Bravo II auto disc printer (around $1200--www.pricegrabber.com) which prints up to 50 discs at once with its little dongle extension tray (free with registration). You could also look at the Bravo pro which i believe does 100 discs at once, or a Microboards printer which is a bit more expensive.
    I recently built my own 1-5 DVD copy tower... The components are wicked cheap... I purchased NEC DVD drives (3540s I believe) from Newegg.com for $40 each. (Pioneers were like $48...the NECs burned CDs at 48x--I also needed CD copy capabilities so i went with NEC) Then I purchased an ACARD DVD copy controller and case w/500watt power supply from www.amamax.com. It is a great way to go if you are up for an adventure and would like to save at least 50%.
    Hope this helps
    Bret

  • I need help! urgent !!! MAIL CLIENT

    I need "simple" mail client in made Jbuilder for my school. Please help me. I have no idea how to do it. I need source etc. Please help me. It's very urgent. Thanx very much.

    Thx U. But I need sometnihg more... My english isn't
    perfect, maybe this is the reason why u didn't
    anderstand me. Here's how I interpreted what you said. Please point out where I misinterpreted:
    "This has been assigned to me. It is my responsibility. I am supposed to do it so I can learn. But I don't care about learning. All I care about is the number or letter that signifies the quality of the work turned in. I do not wish that number or letter to accurately reflect what I have learned in this class, because I've learned nothing, or else I have learned something, but am too lazy to demonstrate that.
    "Therefore, I'm requesting that somebody else do my work for me, so that I can take credit for their work, and receive a value that I did not deserve.
    "I have no respsect for my insructor, my classmates, or the people I'm asking for help. All that matters is my own selfish, short-sighted, misguided objective."

  • Help, unable to setup AX as a client

    I am a new windows convert (less than a week) and so far I love my new iMac. Wishing to stream my itunes to the stereo I purchased an Airport Express. I am able to make it work as a separate network but have been very unsuccessful at making it work as a client to my 2wire network. As soon as the settings are applied it disappears never to be seen again until I reset it and start over. I have suspected it is a password issue that I simply don't understand well enough to fix. I put in the WEP password just as I did when I set up my iphone (which works perfectly) but to no avail. Has anyone had this problem and been able to solve it? Or, does anyone have any ideas?

    I can't yet provide you with a solution, but I hope to, or hope someone can help both of us.
    I'm having exactly the same problem, go thru all set up, get to the "waiting for the apple device to restart" and then all gone. An additional wrinkle, I shut off the power to the AEX, turn it back on, and suddenly my other AEX, my internet connection one, corrupts and I lose connectivity. I shut off the power to the second one, shut off Airport (on the iMac) and then turn it back on and I've got connectivity, but no second AEX.
    I'm going to detail my setup below, hoping that we can find some commonality, or someone can diagnose for us.
    iMac Intel and an AEX to create a wireless network, Earthlink DSL modem and as ISP.
    I have it on bridge mode, instead of public address, since there are a number of Apple publications indicating that Earthlink's way of assigning IP addresses requires bridge mode. (And I couldn't get consistent connectivity for some time until I did switch to bridge mode).
    I tried twice to set up second AEX to join the network, provided necessary passwords, etc. And at restart, it was no longer visible in Airport Utility. Soft reset and the device is discoverable again, set up to join network, AEX 2 disappears.
    Now, could it be the allow client check box? I haven't had a chance to retry since checking that.

  • Crystal report doesnt work in client`s pc

    Hi! I have created my program inC# (visual studio 2010). However after making program I have created setup file of my program. However when I install my program there in my client`s pc everything works fine but crystal report doesn't work. When I try to show reports there in crystalreportviewer it shows me long error message which says:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    Exception Text **************
    System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
       at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()
       --- End of inner exception stack trace ---
       at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
       at CrystalDecisions.CrystalReports.Engine.ReportClass..ctor()
       at HotelReservation.MostReqGmsRprt..ctor()
       at HotelReservation.MostGmsRqstdForm..ctor()
       at HotelReservation.MainForm.tsmiGmsReq_Click(Object sender, EventArgs e)
       at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
       at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
       at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
       at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ToolStrip.WndProc(Message& m)
       at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Loaded Assemblies **************
    mscorlib
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    HotelReservation
    I install crystarl report runtime & do't know where is the problem.
    I seeach via google to find solution to this error, but do't find anything, So would you please tell me how should I solve this problem? I have to solve this problem as early as possible else my client will be disappointed. Please help me.
    Thanks,

    That was the .NET Framework.
    - Ludek
    Senior Support Engineer AGS Primary Support, Global Support Center Canada
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Share Your Knowledge in SCN Topic Spaces

  • I need help -- my zen micro doesnt w

    first of all, sorry for my bad english..im brazilian, and i got my zen micro 5gb (black) in last week..i really enjoyed it!! so funny, functional, and practice, etc.. whatever, yesterday i was listening and a went in menu to turn on back lights.. and it works.. the lights turned on.. but the player has stopped.. doesnt respond any action..then, i tried so many times displugin the batery.. but when initialize stopped on CREATIVE logo. copyrightt 2004... already tried connecting on pc.. but nothing.. last night.. i wait the battery went down.. but when i put it to recharge.. shows the same problem.. i really dont know what should i do..so.. is this.. if anyone could help me i will be so happy..thanks a lot

    Oi!
    Tried a disk cleanup? To run a Disk Cleanup you need to access the Rescue Mode on the Zen Micro. To access the Rescue Mode: remove the battery, hold the power switch to the "on" position and KEEP IT HELD TO "ON" while reinserting the battery. Choose Disk Cleanup from the menu. Note: Disk cleanup should not remove your tracks. It searches through the disk for files and rebuilds the index, and can be useful for correcting any strange behaviour.

  • Help needed with server essentials 2012 R2 client backup failing

    Help please.  I have installed WSE 2012 R2 on a new Lenovo TS140, everything seems to be working fine (I can map drives, browse folders, copy files back and forth to clients, run the server through dashboard from a client,
    run the server through remote desktop from a client, use remotewebaccess etc.  But I can't get ANY of my clients to backup to the server.  The connector finds the server, installs on the client and the launchpad runs and says 'connected to server',
    but when I try to run the backup, it fails after about 30 seconds and says "can't connect to server"...  This is all the same on clients that are Win 7 Home, Win 7 Pro, Win 8.1 pro and win 8.1 home, wired and wireless...  Have spent about
    a week researching, clean reinstalling, examining router config etc... no luck.  Any thoughts or direction for help appreciated.  I'm not using storage spaces, and have run drive scans which all show healthy drives (1 SDD - OS, and separate HDs for
    files and backups...

    Status is 'no backups available', and no indication of anywhere to check to start, configure or set a backup.  Though I do have the "client computer backup tasks" available over in the tasks panel on the right, but that just sets times for backups to
    occur.
    The system is backing itself up nightly, but no clients.
    I have a bunch of things listed on the BPA (probably as I did some tinkering based on other suggestions, and have tried to set up openDNS forwarding etc.  I'm not sure how to undo all that, so if a clean install would help I could do that rather
    easily..)  BPA partial results listed below...
    Warning
    Network Policy Server (NPS) should be configured to use more secure authentication methods.
    Configuration
    Warning
    All domains should have at least two domain controllers for redundancy
    Operation
    Error
    The PDC emulator master ..in this forest should be configured to correctly synchronize time from a valid time source
    Configuration
    Warning
    All OUs in this domain should be protected from accidental deletion
    Configuration
    Error
    DirectAccess: DirectAccess must be configured to accept client connections
    Configuration
    Warning
    RRAS: IPv4 routing should be enabled on the RRAS server for routing protocols like DHCP Relay, RIP and IGMP to run
    Configuration
    Warning
    RRAS: IPv6 routing should be enabled on the RRAS server for routing protocols like DHCP Relay to run
    Configuration
    Warning
    RRAS: The number of ports available for use by SSTP should be greater than 0
    Configuration
    Warning
    RRAS: The number of ports available for use by L2TP should be greater than 0
    Configuration
    Warning
    RRAS: Only one certificate for IKEv2 should have IP security IKE intermediate in its EKU property
    Configuration
    Warning
    RRAS: The subject name of the certificate to be used for IKEv2 or SSTP must match the name of the RRAS server or the IP address of the external interface of the RRAS server
    Configuration
    Warning
    RRAS: Use authentication protocols that are considered more secure than PAP, CHAP, or MS-CHAPv2
    Configuration
    Warning
    The RD Gateway server SSL certificate must be configured with a valid certificate subject name
    Configuration
    Error
    Use SSL when you use Basic authentication
    Security
    Warning
    Short file name creation should be disabled
    Configuration
    Warning
    Srv.sys should be set to start on demand
    Configuration
    Warning
    Client failback should be enabled for the Netlogon and SYSVOL folders on domain controllers
    Configuration
    Warning
    Namespace root referrals should use the Lowest Cost ordering method on the following DFS namespace:
    \\xxx\Shared Folders
    Configuration
    Error
    DNS: The DNS server 208.67.220.220 on Ethernet must resolve names in the primary DNS domain zone
    Configuration
    Error
    DNS: The DNS server 208.67.222.222 on Ethernet must resolve names in the primary DNS domain zone
    Configuration
    Error
    DNS: The DNS server 208.67.220.220 on Ethernet must resolve names in the forest root domain name zone
    Configuration
    Error
    DNS: The DNS server 208.67.222.222 on Ethernet must resolve names in the forest root domain name zone
    Configuration

  • Help needed on TCP/IP Multi-port Client-Server

    Hi all, I am trying to develop a client-server application to stream some data over a few random port numbers (defined by myself) to stream data over to the TCP server (i.e another computer) in LabVIEW. So far, I have created my application using the NI examples for "Simple Data Client + Server" and it works fine. I also understand that the "TCP Listen" VI is only able to listen for 1 TCP connection only and a way around this is to use queueing idea to receive & process the incoming data.The downside to the idea is that the "base port" (i.e initial port) needs to be the same (on every TCP client) with the TCP Server and it is not fit for the purpose I intended.
    Basically on the TCP server side, i need to chart/monitor the data on different port numbers that is being streamed real-time from the one TCP client computer. Is this possible in LabVIEW?
    Can anyone (incl. NI gurus) advise and point me in the right direction?
    *lost*
    Solved!
    Go to Solution.

    Hi
        http://zone.ni.com/devzone/cda/epd/p/id/2739 Here you can download that component.But you can also use TCP icons which is available in Data Commmunications>Protocals>TCp for communication and to read and write data use variant to flattened string. I have attached a small example where i will transfer a constant string to the host PC to check the link between client and the server. Hope this helps you.
    Attachments:
    TCP Comm.zip ‏47 KB

  • Need Help creating Icon overlays for my SVN Client

    Hi I am currently writing an cross platform SVN client. I have icon overlay working in windows and linux. This is a small image that sits on top of the normal icon in finder and represents the current state of the file, e.i out of sync, up to date, un-versioned. But am really struggling trying to get it to work in OSX. At this point I only want it to work in snow leopard. This is where I have got to so far.
    I managed to create a QL plugin that worked. The only issue with QL plugins is that you have to specify what file types your plugin works for, (my sample worked for gifs). Unfortunately I don't know that as it needs to work for every file and folder on the system that contains a subfolder called .svn. So with a week of reading I have come to the decision that the only real way around this is to override the QLThumbnailImageCreate function that finder calls and replace it with my own if I find a .svn or call the original if not. However if this is the only route I have not been able to get any code to work that will replace the function with my own.
    If any one can show me an example of switching that function, or has an alternative solution. Or knows the LSItemContentTypes type that means my plugin will fire for every single file, then I would be very happy. I've spent no more than 2 days getting this to work on windows and linux, but I've spent soooo many hours on OSX. Any help would be great.

    DanUK wrote:
    Thanks for your reply etresoft. I know it definitely is possible because the application dropbox does it.
    I'm not so sure. People working on the SC Plugin SVN program have been trying to do that for years. I don't know if they have ever gotten it to work.
    But unfortunately its not open source so I can find out how they did it. The only other way I can do it is to monitor file system changes and then set a custom icon. But this has many draw backs. such as custom icons are persistant and will remain even when my software has been uninstalled.
    I think you should really look into using labels. An SVN/CVS user probably isn't going to be using icon view anyway. Labels will be far more useful in real life. Custom icons are just a gimmick.
    I using QT Creator to write the software so if you fancy a go I can share the project with you.
    Perhaps we should stick to our respective SCM programs. I'm not a fan of QT either

  • Help with email delivery from server to client

    I would appreciate some help / insite into forwarding email from my home server to my Arch client.
    Initially I setup Getmail on the Arch client, can download POP3 email to my home directory, and then read it using Kmail via the Maildir format.
    This works great and was easy to implement. However, I wanted to get a little more 'advanced' so getmail was setup on the server and can download email no problem.  But what I have not been able to figure out yet is how to forward it to my home directory on the Arch client.
    I have googled and read the wiki and it seems like a MDA is needed to do this.  Is this correct?
    Or, can I direct Kmail to look at some directory on the server (/var/spool/mail??) and grab the mail from there?
    Any help would be appreciated.
    Thanks,
    JTD

    Endperform wrote:Are you looking to keep your email on the server at all times?  If so, I suggest looking into setting up IMAP on your home server which will do what you need.
    Endperform:  yes that is the plan.  Do still keep getmail to fetch the pop3 email from my ISP and the setup IMAP so 'forward' onto the Arch client?
    Thanks for the reply.
    pyther wrote:I'd have to second what endperform said, if you want to keep you mail on your server at all times, just check out IMAP. Also you can organize your mail in folders with imap
    pyther: Thanks for confirming what I've googled.
    JTD

Maybe you are looking for