Click here to Skip to main content
15,922,512 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Does the CLR cache .config values or tracing levels? Pin
nicknotyet11-Jul-06 6:25
nicknotyet11-Jul-06 6:25 
GeneralRe: Does the CLR cache .config values or tracing levels? Pin
Rob Philpott12-Jul-06 3:50
Rob Philpott12-Jul-06 3:50 
GeneralRe: Does the CLR cache .config values or tracing levels? Pin
nicknotyet12-Jul-06 4:01
nicknotyet12-Jul-06 4:01 
GeneralRe: Does the CLR cache .config values or tracing levels? Pin
Dave Kreskowiak12-Jul-06 4:11
mveDave Kreskowiak12-Jul-06 4:11 
QuestionDoes USB flash drive (USB memory stick) belong to DBT_DEVTYP_VOLUME? Pin
mmhu11-Jul-06 3:14
mmhu11-Jul-06 3:14 
QuestionSynchronizing Databases Pin
sujanakar10-Jul-06 20:03
sujanakar10-Jul-06 20:03 
AnswerRe: Synchronizing Databases Pin
Fred Johanns13-Jul-06 11:25
Fred Johanns13-Jul-06 11:25 
Questionj2ee to .net migration Pin
Brian P. Bailey10-Jul-06 17:35
Brian P. Bailey10-Jul-06 17:35 
I am thinking about migrating an existing application from J2EE to .NET as an exercise to help learn some of the less conventional enterprise features of .NET and related technologies. Let me mention a few unconventional things I did in J2EE and then get to my question about how I might port these unconventional ideas to .NET.

First, the application is basically middleware. There is no user interface except a web service (or 2 or 3) on the front end. Second, the goals for the application include efficient memory use, low bandwidth, modularity (as in independently deployable apps that discover each other at runtime), and vendor independence. I don't give a hoot about scalability. This is all living on the same machine.

The application receives xml data from several sources at regular and irregular intervals. Separately, clients call a web service to retrieve a filtered set of the data. I've decoupled the client's web service call from receiving the data from the sources so that the client is not impacted by the availability of the sources. The data is kept in an in-memory cache, and I use an xpath/xquery engine to retrieve the data. I don't care about persistence in a database because the cached data is completely replaced over the course of 10 - 120 minutes anyway. And I don't want to spend time installing, configuring, and maintaining a database, not to mention wasting processor, bandwidth, and disk space to send information to it when persistence is so irrelevant.

The unconventional things I did include:

* creating a J2EE-blessed container-managed single instance of an object to hold the memory cache by taking advantage of the MBean feature. I could have used an entity bean, but those god-awful things are anything but vendor-neutral when it comes to deployment.

* take advantage of the J2EE container's management to pass object references between modules (session beans and wars) so that objects aren't copied to the stack. I found that without this feature, the app was so busy putting data on the stack that the garbage collector had no time to run, and the JVM kept running out of memory. Now it uses hardly any memory at all and is blazing fast.



So, what I want to know is:

1. Does the .NET framework allow me to create a single instance of an object that multiple assemblies can access? If so, can someone point me to a reference for doing this?

2. Does the .NET framework allow me to pass objects by reference between assemblies and/or COM+ components? I mean truly by reference to achieve a similar effect as bullet 2 above, not simulated reference via marshalling. If so, is this achieved by a particular attribute or C# keyword?

3. Is there a good reference on doing some serious tricks with enterprise development using .NET? I'm not talking about the 3-dozen shopping cart/course catalog books that are easy to find. I'm talking about some of the less-used, less-conventional, domain-agnostic tricks.

Thank you!
QuestionWhere's the HWND in Form? Pin
Swinefeaster10-Jul-06 11:31
Swinefeaster10-Jul-06 11:31 
AnswerRe: Where's the HWND in Form? Pin
Christian Graus10-Jul-06 11:45
protectorChristian Graus10-Jul-06 11:45 
GeneralRe: Where's the HWND in Form? Pin
Swinefeaster10-Jul-06 11:51
Swinefeaster10-Jul-06 11:51 
GeneralRe: Where's the HWND in Form? Pin
Christian Graus10-Jul-06 11:53
protectorChristian Graus10-Jul-06 11:53 
GeneralRe: Where's the HWND in Form? Pin
Swinefeaster10-Jul-06 11:59
Swinefeaster10-Jul-06 11:59 
AnswerRe: Where's the HWND in Form? Pin
Guffa10-Jul-06 12:43
Guffa10-Jul-06 12:43 
GeneralRe: Where's the HWND in Form? Pin
Joel Lucsy10-Jul-06 13:23
Joel Lucsy10-Jul-06 13:23 
GeneralRe: Where's the HWND in Form? Pin
Swinefeaster10-Jul-06 13:59
Swinefeaster10-Jul-06 13:59 
Questionhelp! want to use XslCompiledTransform.. Pin
CherezZaboro10-Jul-06 11:30
CherezZaboro10-Jul-06 11:30 
QuestionDeploying CLR without admin rights Pin
Shashanka Shekhar10-Jul-06 4:40
Shashanka Shekhar10-Jul-06 4:40 
AnswerRe: Deploying CLR without admin rights [modified] Pin
Dave Kreskowiak10-Jul-06 9:03
mveDave Kreskowiak10-Jul-06 9:03 
Question.NET CF2.0 User Control Pin
CSharpDavid9-Jul-06 22:04
CSharpDavid9-Jul-06 22:04 
QuestionVS2005 compilation error Pin
tom groezer9-Jul-06 19:50
tom groezer9-Jul-06 19:50 
QuestionAmbientUserMode Pin
Craig Gluck9-Jul-06 7:59
Craig Gluck9-Jul-06 7:59 
AnswerRe: AmbientUserMode Pin
Josh Smith10-Jul-06 4:57
Josh Smith10-Jul-06 4:57 
Questionmore assemblies to one assembly Pin
dedel9-Jul-06 5:48
professionaldedel9-Jul-06 5:48 
AnswerRe: more assemblies to one assembly Pin
Ray Cassick9-Jul-06 6:29
Ray Cassick9-Jul-06 6:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.