» tagged pages
» logout

sorted by: recent | see : popular
Content Tagged with source + Server

JBoss MDB 3 tutorial

This is an how-to about MDB 3.0 deployed on JBoss AS

technology: dzone.com: tech links

A Simple Clustered Task Distribution System

This article will introduce the basic concepts of JGroups and then implement a task distribution system (on top of JGroups), where tasks can be placed into the cluster and are executed by worker nodes. It'll show that worker nodes can be added at run time to add more processing power, or taken down when we don't have much load. Plus, tasks assigned to workers who subsequently crash are automatically reassigned to live nodes.

technology: dzone.com: tech links

Performance Comparison between NIO Frameworks

Most NIO frameworks can saturate 1 gigabit ethernet at some point. However, some frameworks can saturate the bandwidth with the smaller number of connections while others can not. The performance numbers of the 5 well-known open source NIO frameworks are presented here to help you figure out the excellence of Netty in performance.

technology: dzone.com: tech links

Product: Gearman - Open Source Message Queuing System

Gearman is an open source message queuing system that makes it easy to do distributed job processing using multiple languages. With Gearman you: farm out work to other machines, dispatching function calls to machines that are better suited to do work, to do work in parallel, to load balance lots of function calls, to call functions between languages, spread CPU usage around your network.

technology: dzone.com: tech links

DNS Hijacking, ISP Packet Modification, Morals and Privacy

http://www.adamsinfo.com/dns-hijacking-isp-packet-modification-morals-and-privacy/#more-118

While looking at some data statistics for one of our racks, I noticed that the DNS service has become incredibly busy as of late. Now about 4 years ago when these particular name servers were set up, they were left with their default option to respond to DNS queries to anyone for anyone. It’s not really terrible but hardly ideal so I began changing some settings. I do notice though that we seem to now be providing name server access to the large majority of the world. Only recently did I read an article on DNS Hijacking that certain ISPs use to deliver pay per click ads to their subscribers when they do anything from first start their browser to each time they hit a DNS error.

Now personally I think it’s a pretty cheap thing to do, and it’s also quite frustrating to those users that have to suffer this ‘feature’. A number of ISPs use such methods to ‘improve’ the quality of your service and I think it’s all pretty bad. I don’t think there’s anything wrong with legitimate website ads in order to earn an author or site master some money – I’m going to put a few here sometime, however offensive advert popups or other nasty behavior are really not acceptable by anyones standards anymore.

Hijacking DNS queries, sniffing and modifying HTTP in any way, sniffing or modifying any kind of email or email failure, redirecting IPs, transparently proxying web traffic, analyzing your traffic, shaping your torrent-like or other rule matched traffic, etc, etc – you get the idea, are some of the more popular techniques out there. In worst cases an ISP would even firewall your inbound and outbound port access.

Bottom line, it’s not right. In a reasonable ‘open source’ mentality, an ISP should offer a clean, usable connection. They should not affect or modify your traffic in any way, seek to gain advertising from it or anything similar. If you mess about with end users connections, users usually end up complaining to site providers about something that isn’t their problem, and don’t get to understand what they’re doing and how or why their internet behaves differently to the next guy’s.

With that, I was confident that injecting ads for profit or otherwise messing about with my now-popular DNS service wasn’t a good thing to do, even if my subscribers shouldn’t have been subscribers :mrgreen: . I restricted access to the relevant ranges, and with that I was done.

ZCS-to-ZCS Migrations

Someone in the forums recently asked about ways to migrate individual accounts from one ZCS instance to another, so thought I’d share the enlightenment with all. Whether you are going from an on-premise install to a hosting provider, want to create handy archives of old employee accounts, or just need to duplicate mailbox contents of a user; the syntax in this article proves remarkably useful, and applies to all editions.
ZCS-to-ZCS
There are a multitude of comparable RFE’s on addressing this need via different approaches. (Bugzilla entries 19630, 29573, 28443 & 30163 to name a few.) Some want graphical tools to browse data and selectively migrate certain things, while others would be happy with a cross LDAP zmmailboxmove.

Depending on your situation, several backup tools can take care of a large portion of your daily needs; and there are ways to do Zimbra-to-Zimbra migrations using the Network Edition’s backup and restore capabilities - however they require admin abilities on both systems. Meanwhile, most of the frequently used open source backup solutions are simply an “all accounts at-once” approach. So what to do when you need to move from your personal setup to a hosting provider? Or if you’re a hosting provider, move a tiny handful of accounts to a separate infrastructure? Before diving into the wiki on user migration for info on Imapsync, REST exports, CURL imports, etc; there’s a handy way to avoid the “one item type at-a-time” transfer methods.

In ZCS 5.0.9+ you can export an entire mailbox with:
/opt/zimbra/bin/zmmailbox -z -m user@domain.com getRestURL “//?fmt=tgz” > /tmp/account.tgz

Next transfer via rsync, scp, sftp, etc. You’ll also need to create the account on the 2nd server if the desired account doesn’t exist at your destination server yet.

Then import with:
/opt/zimbra/bin/zmmailbox -z -m user@domain.com postRestURL “//?fmt=tgz&resolve=reset” /tmp/account.tgz

The resolve= paramater has several options:

  • “skip” ignores duplicates of old items, it’s also the default conflict-resolution.
  • “modify” changes old items.
  • “reset” will delete the old subfolder (or entire mailbox if /).
  • “replace” will delete and re-enter them.

‘Reset’ will be a bit faster on an empty destination mailbox because it skips most dupe checks.

Note: There were some duplication fixes and additional issues (mainly sync related) corrected with the tar formatter in 5.0.10.

Not a Zimbra Admin? Users can get the same zip/tar formatter on REST URL’s by visiting:
http:// server.domain.com/home/user?fmt=zip&query=is:anywhere

The zip format has been around for a long time, but doesn’t contain account & item metadata like the tar formatter automatically does:
http:// server.domain.com/home/user/?fmt=tgz

ZD Export Backup AlphaInfact, this same technique is currently used in Zimbra Desktop’s alpha backup solution.

If this approach doesn’t scale performance wise for your situation, or you simply don’t want to have everyone hit a REST URL for 30GB mailboxes all at the same time, here’s a collection of helpful scripts and other ways to systematically migrate:

Mysqldump & rsync with an interesting blob management technique: Zimbra2Zimbra

Imapsync for mail + postRestURL for contacts, calendar & filters: ZimbraMigrate (Expand the concept for tasks, documents, and briefcase items.)

Another method that could be extrapolated upon for migrations: Per User Mailbox Backup (OE Version - Zimbra :: Wiki)

Most of these solutions aren’t going to respect share permissions, but when pulling an account out of an environment that’s to be expected.

Zimlet spin-offs:
- Mail backup options for end users (.eml)
- Zimlet to save email in a txt file (.txt or html)

The above Zimlets are aimed at making quick self-copies & not for restores, but there are many methods for putting messages back into Zimbra, including tools like zmmailbox addMessge, zmlmtpinject, CURL, etc; for more info checkout these threads: Recover data from store folders & Moving Folders between users

If moving your entire server, I’m a huge fan of the install.sh -s trick when using NE backups to do so isn’t an option.


Have another method you’d like to share? Document it in the wiki & note it below, or you can discuss over in the Community Forums.

MySQL: Planet MySQL

SpringSource VC investor takes COO role

The position of president and chief operations officer has apparently been created and awarded to Rob Bearden, an entrepreneur in residence with Benchmark Capital. Bearden is former chief operations officer for JBoss, now owned by Red Hat.

technology: dzone.com: tech links

Lucene index replication

The last couple of months, the development team at a small Norwegian company called Integrasco A/S have been working hard on designing a new, scalable database architecture and search system. As a temporary move while we are designing and implementing this new system, we have expanded our server park with a new server, and configured this in a master-slave fashion. Database replication is done through mysql bin-logs, but we faced a challenge when it came to the replication of our Lucene indexes. This is how we solved it:

technology: dzone.com: tech links

Accessing HTTP Request information with in a web service in Apache Axis2

Sometimes we need to access the HTTP request information within the business logic of your web service. With Axis2, is this trivial as Axis2 keeps the HttpServletRequest as a MessageContext property. We can easily get hold of that extract the necessary information out of it. Here is a simple web service which demonstrates how do it.

technology: dzone.com: tech links

OpenSolaris on VirtualBox 2

walkthrough in 20 slides to get OpenSolaris running smoothly under Windows host. thumb-up the effort !

technology: dzone.com: tech links

Email and Groupware for Web 2.0 - Citadel.org

Citadel is a turnkey open-source solution for email and collaboration. One simple installation delivers a multitude of powerful features, including: * email * calendaring/scheduling * address books * bulletin boards * mailing list server * instant messaging * multiple domain support * modern AJAX-style web interface Users love Citadel because it's software that helps them work together and stay in touch without calling attention to itself. System administrators love Citadel because it installs in minutes without the need to manually integrate all the different components together.The key to Citadel's versatility is its unique architecture. A Citadel system is made up of containers called "rooms." A room may be used as an email folder, a discussion forum, a real-time chat, a mailing list, a calendar, an address book, an RSS reader … sometimes a combination of any of the above, and certainly any other uses which could be added in the future. You can

opensource: del.icio.us tag/opensource

Red5 + MP3 meta data support

Red5 now sends an MP3's ID3 data in the onMetaData event, so break out your player projects and give it a whirl.

technology: dzone.com: tech links

Piwik - The Best Open Source Google Analytics Alternative

Ever have a surge in traffic but not realize what happened until four hours later because you're using Google Analytics? Perhaps you want to show off your traffic in an attractive and easily embeddable format? Let me introduce you to the truly analytical world of a great open source program named Piwik.

technology: dzone.com: tech links

Distributed Messaging with Jetlang and Terracotta

The example shows how any jetlang channel can be distributed without any code changes. Applications can be coded directly against jetlang api's then distribution can be achieved with just a change of configuration.

technology: dzone.com: tech links

About SIP Express Router | iptel.org

SIP server from iptel

SIP: del.icio.us tag/SIP

SQL Buddy - Ajax Powered Database Management

The term “database management” sometimes sends shivers of boredom down our spine. However, when combined with terms like “Ajax” it suddenly doesn’t seem that bad, now, does it? For many, phpMyAdmin was the only answer for creating databases and managing, editing, and optimizing their current database fields and entries. Along came a relatively unknown database manager named SQL Buddy and, with a little help from Ajax, blew the competition away.

technology: dzone.com: tech links

Netty moves its nest to JBoss.org with its first release candidate

The Netty project has moved its nest to JBoss.org with a new release, 3.0.0.CR1. Netty is an effort to provide an asynchronous · event-driven network application framework for rapid development of maintainable high-performance · high-scalability protocol servers and clients, including its related out-of-the-box protocol extensions and tool suite. To somewhat oversimplify, it's a framework that allows you to write a NIO client and server very easily.

technology: dzone.com: tech links

How to configure Tomcat 5 and Eclipse to run Java 5

How to get Tomcat 5.0 and Tomcat 5.5 setup in Eclipse to run How to run javac 1.5 (or beyond) compiler for JSP compilation with generics enabled (and other Java 1.5 only features like autoboxing).

technology: dzone.com: tech links

Terracotta & SpringSource Application Platform

I thought I would share this with the rest of the world and maybe save humanity a few hours of trial and error. I have managed to make Terracotta (TC) play along with the release candidate 1 of SpringSource Application Platform (S2AP).

technology: dzone.com: tech links

What's New in Seam 2.1 - An interview with Peter Muir

In this podcast interview, Peter Muir previews some of the upcoming features in Seam 2.1, including support for GWT and Wicket, improved security enhancements for identity management, permissioning, and single sign-on, as well as better support for RESTful application development.

technology: dzone.com: tech links

Grails / Java Web Hosting HowTo - VPS memory and java heap size trouble

Java Virtual Machines and Linux virtual Servers do not play well with each other all the time. Some tweaking and configuration will be necessary to get it working and optimize the use of the (memory) resources.

technology: dzone.com: tech links

Mule 2.0 + Gigaspaces 6.5 = Pure Sex

This is probably old news, but it still gets me hot and bothered thinking about all the interesting solutions that are possible now using Mule and GigaSpaces for SOA problems requiring low latency and highly scalable architectures.

technology: dzone.com: tech links

Page 1 | Next >>