Java Work Framework
This article is an orphan, as few or no other articles link to it. Please introduce links to this page from related articles; suggestions are available. (February 2009) |
This article includes a list of references, related reading or external links, but its sources remain unclear because it lacks inline citations. Please improve this article by introducing more precise citations where appropriate. (February 2009) |
This article needs references that appear in reliable third-party publications. Primary sources or sources affiliated with the subject are generally not sufficient for a Wikipedia article. Please add more appropriate citations from reliable sources. (November 2009) |
This article may not meet the general notability guideline. Please help to establish notability by adding reliable, secondary sources about the topic. If notability cannot be established, the article is likely to be merged, redirected, or deleted. (November 2009) |
Stable release | 1.0.1 / February 18, 2009 |
---|---|
Operating system | Cross-platform |
Type | Java Network Framework |
License | MIT license |
Website | http://javawork.org/ |
Java Work Framework is a simple, but powerful Java framework providing Network(New I/O Socket), Database, Exception handling and System functionality. It is open source, object-oriented and event driven.
History
It was originally designed and implemented by Ivan Penev back in 2005 as a network layer capable to handle around 10,000 socket connections. Then it gradually included the most common functionality a programmer may need - socket communication, simple database access, reading external resources as files, URLs, etc.
Features
Its main focus is to hide behind simple wrappers existing Java functionality and to provide general application exception handling mechanism. In short it supports:
- Java NIO Socket Framework
- 15,000+ socket connections. Sending/receiving 5000 java objects per second between 2 computers works great.
- Multicast
- Unicast(UDP) support
- Pluggable protocols through in and out filters
- Easy-to-use database layer
- Custom JAR files loader
Security
Code snippets
Multicast:
Multicast.listen( "230.0.0.1", 35098, new IEventListener() { public void onEvent( IEvent evt ) { MulticastDataEvent dataEvt = (MulticastDataEvent)evt; System.out.println( "data-bytes:" + DebugUtil.toString(dataEvt.asByteArray()) ); } } );
Multicast.send( "Lorem ipsum dolor ...", "230.0.0.1", 35098 );
Database:
Database db = Database.createInstance(); db.setUrl("jdbc:postgresql://localhost/testdb"); db.setUsername("testuser"); db.setPassword("test123"); SQLInsert insertOp = new SQLInsert("persons"); insertOp.addData("person_fname", "Mike", "person_lname", "Johnson", "birthday", Convert.toDate("1971-08-01"), "country_id", "de", "single", true); int affectedRows = insertOp.execute(); System.out.println("Affected rows = " + affectedRows);
Requirements
- JDK 1.6 (Mustang)
External links
If you like SEOmastering Site, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...
- Pages where expansion depth is exceeded
- Pages with broken file links
- Orphaned articles from February 2009
- Articles with invalid date parameter in template
- All orphaned articles
- Articles lacking in-text citations from February 2009
- All articles lacking in-text citations
- Articles lacking reliable references from November 2009
- All articles lacking reliable references
- Articles with topics of unclear notability from November 2009
- All articles with topics of unclear notability
- Java programming language
- Software using the MIT license