Re: Java programmer lured back by .Net (Questions)
- From: "John Timney \(ASP.NET MVP\)" <timneyj@xxxxxxxxxxxxx>
- Date: Mon, 6 Jun 2005 20:42:37 +0100
See inline :0)
--
Regards
John Timney
ASP.NET MVP
Microsoft Regional Director
"Beatrice Rutger" <brutger@xxxxxxxxxxx> wrote in message
news:d81fpu$s1t$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> I am a previous Micro$oft desertee (moved from VB/VC++ to Java before this
> whole DOTNET thing) because I had several issues with Micro$oft. I am not
> completely in love with Windoze, but I have to say that Java SWING sucks
> BIG TIME for developing and deploying desktop applications (especially on
> Windoze).
>
> Unfortunately, I have been dragged kicking and screaming back to my old
> haunts - but the landscape has changed somewhat and I would appreciate
> some feedback from people with real world experience of what I'm trying to
> achieve. Basically, I'm torn between two worlds (Java programmers hate me
> for deserting, and are trying to convince me to use the slow clunky SWING
> GUI because it's a better fit - yeah tha'll happen!), and in the past, I
> have been bombarded by .NET zealots who want me to re-write my whole
> backend to use the flaky IISP etc - and I'm like yeah right!).
>
> My backend is pure Java (J2EE) running on Unix - but because SWING is so
> shitty, I basically am forced to use .NET which, with its (Forms?) is
> really cool, looks good and allows you to write an application that really
> looks and feels at home on a Windoze box - and blows away crappy lokking
> SWING applications in sheer performance and looks.
>
> The problems then are this:
>
> 1). Inter-operatability (communication between the front end and backend)
> 2). Code protection at the client side
>
>
> INTER-OPEATABILITY
> ====================
> I have a J2EE backend and a .NET frontend. I need to get them to
> communicate. I do NOT want to use SOAP/XML because it is far too heavy
> weight, and I get the performance hit caused by parsing on both sides. I
> would like to use something like base 64bit encoding and servlets to
> transfer data in binary format between the backend component - I will
> issue HTTPS request from the .NET client, receive the request on the
> Servlet at the backend, process it and hand the response back (in base 64
> bit encoded form). Any ideas about how I can do this on the .NET side of
> things (is theer a library for issuing HTTPS requests and handling base 64
> encoded daat?)
There are a whole bunch of classs in the System.Net libraries like the
webrequest and webresponse classes that can help you work with http data,
including https. Requests can be as simple WebRequest myRequest =
WebRequest.Create(http://www.contoso.com) but for https you may have to work
with the certificate. Take a read of this.
http://dotnetjunkies.com/WebLog/joe/archive/2004/09/20/26190.aspx
Also - an alternative approach
http://blogs.msdn.com/dotnetinterop/archive/2005/02/28/381735.aspx
> CODE SECURITY
> ==============
> Admitedly, this is a problem that Java also has, but we do have class
> loaders, and that (along with code obfuscation) can lead to some pretty
> secure code. I would like to be able to place my executable on my remote
> server (probably as 64 bit encoded ASII strings - since it will be on a
> different platorm) and then "load" the executables on demand from accross
> the internet - so that there are no executables on the local machine for
> prying eyes to reverse engineer. Is there anyway, I can load binaries from
> a remote location and then run it on a local machine?. I will be very
> interested in knowing if and how this can be done.
You can do remoting .
http://www.csharphelp.com/archives/archive187.html
...........or use something like psexec
http://www.sysinternals.com/ntw2k/freeware/psexec.shtml
Either way, not all your code needs to be local.
> I would not need to worry about code security if I was developing with VB
> or VC++ - however, the future of VB seems uncertain (is the plug going to
> get pulled on VB at some stage or what?), and also last time I checked
> (several years ago), VC++ was lousy at creating GUIs - the DOTNET
> framework has these nice forms which unfortunately, I cannot use in VB or
> VC++ without making the whole damn executable easy to reverse engineer -
> is there another way of getting the fantastic GUIs (which is the only
> reason I am back), along with the code security of ("non reverse
> engineerable") executables?. Is there a language or language combination
> that gives me the desired results ?
All of the .net managed languages complile to the same thing, so its the
same regardless of whihc language you choose. Just get a good obfuscator.
There are some (slamander I think) that can compile to native code. I have
never tried it however, you 'll need to fish about.
> Lastly, but not the least, can I use MDD (model driven design in .NET) you
> know, UML nad design patterns etc to generate the underlying code?. I
> sthere a tool that allows me to create UML designs and then generate the
> appropriate code in .NET?
VS.NET as a tool can generate class and method stubs from UML.
> I look forward to your responses
>
>
> Regards,
>
> B.
>
>
.
- References:
- Java programmer lured back by .Net (Questions)
- From: Beatrice Rutger
- Java programmer lured back by .Net (Questions)
- Prev by Date: Re: Java programmer lured back by .Net (Questions)
- Next by Date: Can't open 'Samples and Quick Start Tutorials'
- Previous by thread: Re: Java programmer lured back by .Net (Questions)
- Next by thread: newbeee - install problem
- Index(es):