Forum Controls
Spotlight Features

The Rich Engineering Heritage Behind Dependency Injection

Andrew McVeigh takes us on a tour of the rich heritage behind dependency injection, what it represents, and tells us why its here to stay.

NetBeans 6: Matisse Updates

NetBeans 6 delivers great updates to the Matisse GUI builder. Spend a few minutes with Roman Strobl and get an expert briefing on what's new and what has changed.

Introduction to Groovy Part 3

In this, the third and final installation of Andres' Introduction to Groovy series, you learn about how Groovy handles variable numbers of arguments, named parameters, currying, and more about Groovy operators. Including, some new operators.

Easier Custom Components with Swing Fuse

Swing Fuse (actually just Fuse), is a framework designed to make it easier to create your own custom desktop components. In this article, Daniel Spiewak shows you how to get started and provides sample source code you can download.

Benchmark Analysis: Guice vs Spring

Willam Louth shows how he uses JXInsight Probes to investigate probable performance issues with code bases that he is not familiar with. He also highlights possible pitfalls in creating a benchmark, as well as in the analysis of results.
Replies: 32 - Pages: 3   [ Previous | 1 2 3 | Next ]
15 . At 4:34 PM on Mar 12, 2007, PJ Murray DeveloperZone Top 100 wrote:
  Click to reply to this thread Reply

Re: Multiuser server architecture

Have you looked at SCA, the next generation after EBS/JBI?

http://www.osoa.org/display/Main/Early+Implementation+Examples+and+Tools
PJ Murray, CodeFutures Software

Java Code Generation for Java Persistence

Data Access Objects and Service Data Objects

16 . At 1:29 AM on Mar 13, 2007, !vS_ wrote:
  Click to reply to this thread Reply

Re: Multiuser server architecture

why dont you take an open source architecture and build on it rather than starting from scratch
Planet Java
17 . At 3:14 AM on Mar 13, 2007, Gregor Kovac wrote:
  Click to reply to this thread Reply

Re: Multiuser server architecture

Any suggestions? What does exist out there?
18 . At 7:29 AM on Mar 13, 2007, Manjuka Soysa DeveloperZone Top 100 wrote:
  Click to reply to this thread Reply

Re: Multiuser server architecture

Not sure if I can help you there.. you can find out what are the pros/cons of each JEE technology - but your boss may already know that.
My question would be why not? JBoss (and probably Glassfish, though I haven't tried) allows you to add your own services using JMX MBeans. So pick and choose which JEE services you want, and you can build your own services where suitable.
19 . At 7:31 AM on Mar 13, 2007, Manjuka Soysa DeveloperZone Top 100 wrote:
  Click to reply to this thread Reply

Re: Multiuser server architecture

Seems to be some wheel-reinventing going on there - but it does look interesting.
20 . At 12:10 PM on Mar 13, 2007, Gregor Kovac wrote:
  Click to reply to this thread Reply

Re: Multiuser server architecture

What we want to do is to have a very flexible architecture. For example one thing we want to do is this:
- a user connects to the server via Socket and sends a request to do somethig
- server processes that request and sends it back to the client. Server can send the request via RMI, Socket or JMS for example. More important responces will go over RMIO (for example), and less important responces (reports exported to PDF file) will go back via JMS.
At the same time we eant the server to be fast and to support hundreds of clients. Is this all possible ?
21 . At 1:34 PM on Mar 13, 2007, Denis Baranov wrote:
  Click to reply to this thread Reply

Re: Multiuser server architecture

I think you could benefit from Grizzly NIO connector if you want to scale and need to accept connections from users. One thread per connection has a ceiling of around 2000-2500 concurrent connections (while Grizzly may have those served by just 500 worker threads). But if you are less ambitious (hundreds of users), and your CPU load comes from extensive computations/data transformations, traditional approach will still work. The pieces you mentioned: RMI, JMS, are integral parts of JEE so to avoid writing/integrating them on your own, one would choose, say, Glassfish.
sometimes, I write something in here
22 . At 7:52 PM on Mar 13, 2007, Manjuka Soysa DeveloperZone Top 100 wrote:
  Click to reply to this thread Reply

Re: Multiuser server architecture

Ofcourse it is possible in a JEE server. Take your three methods of request:
- JMS - provided out of the box.
- Socket - I would use an HTTP client and process the request in a servlet. Otherwise a custom service.
- RMI - Custom service.

Processing could be in a common POJO - doesn't look like you need transactions. Or in a Session Bean for scalability. Or as Denis suggested.

The trick is to encapsulate the processing logic in a re-usable way, so that it can be used by any request method.
23 . At 1:36 AM on Mar 14, 2007, Gregor Kovac wrote:
  Click to reply to this thread Reply

Re: Multiuser server architecture

Hmm.. Good point. So do you suggest using Grizzly on it's own?
The fact is that the server will have to make connections to the client via RMI or socket. Is this even allowed in JEE ?
So the communication will be both ways; client requesting something from the server and server sending something to the client. So both client and server can innitiate a connection.
24 . At 1:42 AM on Mar 14, 2007, Gregor Kovac wrote:
  Click to reply to this thread Reply

Re: Multiuser server architecture

The problem with JMS is also that in a JEE application server only JEE clients can use it, right? What if you have applications in C++, Cobol, .... and want to send something via JMS? This is just a hypothetical question and it doesn't mean that we are doing it. I'm just thinking in advance. :))
The problem with Sockets is that some clients don't have their networks opened, they give you couple of ports you can use and that's it. These ports are not necessary opened both ways.
By custom service you mean a JCA connector ?
We do need transations, but we are using database transaction to do our stuff. So when the request comes in a transaction is opened in the database and when the reply goes out the transaction is closed (committed or rollbacked). I'd personnaly want a transaction on a object basic, but without using EJBs. Our database is just too large (too many tables) to be able to maintain EJBs.
25 . At 4:53 AM on Mar 14, 2007, Stephen Lindsey wrote:
  Click to reply to this thread Reply

Re: Multiuser server architecture

Have you looked at servicemix? It can run inside an AS but doesn't have to; it seems to offer the connections you require (and more)
26 . At 5:48 AM on Mar 14, 2007, Gregor Kovac wrote:
  Click to reply to this thread Reply

Re: Multiuser server architecture

Yes, ServiceMix is similar to Mule. I just don't know which one is better or more scalable or has more components or is easier to use. :))) What I don't like about Mule is it's licence.
What do you suggest?
27 . At 5:59 AM on Mar 14, 2007, Stephen Lindsey wrote:
  Click to reply to this thread Reply

Re: Multiuser server architecture

This may help:

http://docs.codehaus.org/display/SM/How+does+ServiceMix+compare+to+Mule

The documentation for service mix has been good from day one. I have only "played" with it but have been convinced for several years, since using openadapter, that this is the way to go.

Servicemix has alot of functionality, plugs easily into Geronimo and is Spring aware. It is heavily XML biased though the servingxml project is working on an adapter to support other (text) file formats.

By the way servingxml is another very valuable project if you're ever dealing with legacy systems for ETL etc.
28 . At 8:35 AM on Mar 14, 2007, Gregor Kovac wrote:
  Click to reply to this thread Reply

Re: Multiuser server architecture

Right. It does seem ServiceMax a better solution if you are using JEE AS. It offers pretty much the same, but I've notice that it wasn't tested in the real world. Is this true?
29 . At 9:05 AM on Mar 14, 2007, Steve Lindsey wrote:
  Click to reply to this thread Reply

Re: Multiuser server architecture

Their site lists no references but the user forum has over two thousand threads - there are more than a hundred created in the last two weeks so someone is surely using it.

It seems pretty active, why don't you post there.

Sorry can't be more help

thread.rss_message