Creative VADO HD- Camcorder for family

Creative Commons for audio equipment, but recently they "encroach" to the image area with the Vado pocket camcorder. Right with the word "pocket", the Vado HD very compact, about a pack of cigarettes and many unique points.

Creative VADO HD-  Camcorder for family

A highlight of the Vado is the ability to record HD images in high definition 720p (1280x720). With 8GB of storage and lithium-ion separate HD Vado can record two hours of continuous video quality 720p. Vado HD set is extremely simple machine only two button positioning and the "review" and "delete", shall be located just below the screen 2''. Vado HD connected to the computer via USB 2.0 are integrated right on the USB cable so you do not own, get the charging function. Addition, the Vado also has wireless HDMI HD attached, you get the video signal from camera to the screen HDTV. It can but only 2x digital zoom and integrated lens F2.3, f = 3.60 mm for narrow angles back slightly, for example within 3m, you only get about 5 people standing next to each other.

Together with computer software Vado Central. This application allows the management, copy video from camcorders to computers, basic level editing (you can upgrade to pay higher for full features editor). Interestingly Vado Central is automatic conversion and upload your video to a popular video services like YouTube, PhotoBucket.

Quality testing at 720p, Vado HD image is relatively good, fresh color, the ability to identify white balance and lighting conditions to identify good environment. Vado HD shot outdoors for best color, color back in the reclining slightly blue. However, the Vado HD still limited conspicuous quality: color depth is not high, especially with similar sharp as the tree foliage, the cloud layer, image ... as being "bottled" not much depth. Camera dark scenes susceptible seeds. Although technical details of the machine when reaching back 30 frames per second but with the fast-moving objects still blur a bit.

Even so, if you are looking for a compact model, it is easy to take and use in the "family" and want to share immediately with friends and relatives via video services platform, the Creative Vado HD website designed for this purpose.


You can find  in Amazon with price $75 : Creative Labs Vado HD 720p Pocket Video Camcorder with 8 GB Video Storage and 2x Digital Zoom (Black) OLD MODEL




restart-domain in GlassFish

Restarting an appserver is a common operation after manually editing server config, or adding new library jars, or just to be safe. I hava an alias to restart GlassFish, and all it does is: stop domain, sleep 3 seconds, and start domain.

In GlassFish v3, this can be done with a single asadmin command: restart-domain.

First, I tried restart-domain while the server is not running, which is equivalent to start-domain command:
./asadmin restart-domain
Server is not running, will attempt to start it...
Waiting for DAS to start .....................
Started domain: domain1
Domain location: /v3/glassfish/domains/domain1
Log file: /v3/glassfish/domains/domain1/logs/server.log
Admin port for the domain: 4848
Command restart-domain executed successfully.
Then, try it while the server is running. This command takes a few seconds to finish since it involves stopping the domain first, possibly pausing a bit, and then starting the domain:
./asadmin restart-domain
Successfully restarted the domain
Command restart-domain executed successfully.

Samsung Omnia Pro B7610 - good choice for entrepreneurs

Is not the most powerful PDA phone, but with well equipped, affordable, Samsung Omnia Pro B7610 is a reasonable choice for entrepreneur.

Samsung Omnia Pro B7610 -  good choice for entrepreneur

Second half of 2009, Samsung launched the a series of model runs Windows Mobile serial success of the Omnia i900, including Omnia Pro B7610. This model configuration is almost not different from Omnia II, but for clients with business people sliding QWERTY keyboard, and is considered common yard with HTC Touch PRO2, though, selling prices by two thirds.

What's noteworthy of the Samsung Omnia Pro B7610.

Networking: GSM 850 / 900 / 1800 / 1900 MHz, HSDPA 900/2100

Dimensions: 112.6 x 57.8 x 16.2 mm, weighs 159 grams

Display: 3.5 inch AMOLED, 800 x 480 pixels, touch resistance.

Processor: Samsung S3C6410 800MHz.

OS: Windows Mobile 6.5, TouchWiz interface.

Memory: 2GB internal memory, 256MB RAM, microSD card slot.

Connectivity: Wi-Fi, Bluetooth 2.1 with A2DP, microUSB port, GPS, 3.5mm headset jack.

Camera: 5 megapixel, auto focus, LED flash.

Design

Measuring 112.6 x 57.8 x 16.2 mm and weighing 160 grams, the B7610 look slightly larger on the hands, or put in your pocket. Cause size of the machine by sliding across the keyboard.

However, compared with the HTC Touch PRO2 (116 x 59.2 x 17.3 mm 179 grams), B7610 still looks compact and lighter. Like several other Omnia, the plastic frame of the machine. Pin behind translucent shell and add a few points are shown in red line. So the design, look no B7610 features for professional business people like Touch PRO2.

The front of the B7610 look quite simple, a prominent 3.5-inch AMOLED screen resolution of 800 x 480 pixels, saturated color, display quite detailed. Remarkably, although the AMOLED screen, but the B7610 look good outdoor light.

Below the screen are the basic keys of the button call, end call key and large menu. Machine has no joystick, just a user to slide across the keyboard or the function of the touch screen.

Left edge of the machine are arranged Samsung decrease the volume up button next to a vacuum transfer mode, press Home. Button next to the lock screen, key photography. Port charger, connect the computer to be placed on standard microUSB. Like many PDA phone models recently, B7610 is 3.5 mm headset jack located on the top, allowing listening to music through many different headphone.

B7610 keyboard is quite flat and less space between the buttons. This affecting any part of the editor, press the buttons is accessible screen. However, all are arranged quite reasonable, easy to open the letters, symbols. Comparison of the ability to edit, B7610 Touch PRO2 not worse, although mobile HTC have found more buttons.

Machine has microSD card slot support extend capacity will be arranged right at the battery, no need to remove the battery can be replaced.

Features

Samsung Omnia Pro B7610 -  good choice for entrepreneur

Omnia Pro is a powerful mobile connection, air support from two-band 3G, four-band GSM, Wi-Fi, Bluetooth. However, the speed of HSDPA model only stop at 3.6 Mb / sec, while the 3G network in Vietnam has supported up to 7.2 Mb / sec.

B7610 runs on Windows Mobile 5 June when sold, accompanied by computer-like TouchWiz Interface Omnia II, although there are a few small changes. In particular, the user can select custom display.

From Windows Mobile, but Samsung has made custom to bring the new face for this platform. From the display on the screen as notification messages, mailboxes are made again.

At the Home screen, users can choose to display as the widget style TouchWiz media, or mode of work, with current information about custom, e-mail, shortcut ...

Compared with Omnia II, B7610 not change much, Samsung only a few more focused programs for entrepreneurs. The relatively large icon, which allows the hand to touch the controls.

Omnia Pro B7610 has 5 megapixel camera with LED and features automatic focus when shooting. Several trials showed that taking speed much faster phones running Windows Mobile, but still a bit of latency between two consecutive image. Image quality of the machine is not much hope.

Performance

Samsung Omnia Pro B7610 -  good choice for entrepreneur

The test call quality, 3G connectivity showed that B7610 is connected very fast and stable. Notably, the set mode speakerphone, external computer speakers quite large.

1500 mAh battery of this model for many other functions such as phone, web browsing, instant messaging, 3G connectivity just over a day.

Machine with 256MB of RAM, running many programs available, including the ability to interface, but the processing speed is unacceptable. However, in some time to use, slow processing machines, this is also the weaknesses of many mobile running Windows Mobile.

With good price, B7610 is considered a good rate compared to the more powerful connection, touch screen is sold in the market. Compared with Touch PRO2, B7610 cheaper to 320 $, but you can still browse the web, editing, e-mail also add 3.5 mm headset jack. This is a reasonable choice, although the ability to run smoother application is not using the HTC device.



You can find to buy in Amazon here : Samsung OmniaPRO B7610 Unlocked Windows Mobile Smartphone with Quad-Band GSM, Full QWERTY Keyboard, Touchscreen, 5MP Camera and Wi-Fi - International Version with No Warranty (Black)






Overview of ultra-thin fashion line Panasonic camera FP

Line travel fashion Panasonic camera added three new low-cost version of the FP1, FP2 and FP3. All three models are ultra-thin design own style slide with a thickness of only 18.6 mm. Despite its modest size, but three cameras have better performance compared to competitors with more range and a relatively competitive price.

Overview of ultra-thin fashion line Panasonic camera FP

Panasonic FP1/FP2/FP3 own advanced lens Leica DC Vario with 4x zoom range equivalent to 35-140 mm on film machine. Although it is designed to sink but the optical mechanism on all three machines are very complex with the number of lenses to 11, including up to four lenses and a lens for non-scattered low-ED. However, your maximum aperture is F/3.5 achieved, quite limited, if taken in low light. Do not high-fashion lines like "elder" FP8 should lens on all three versions are not equipped with wide-angle 28 mm. Compensation, there are also features Extra Optical Zoom helps increase range up to 7.8 x tele (equivalent focal length 273 mm ) on the FP1 and 8.4 x (equivalent focal length 294 mm ) on FP2 and 3. The nature of the process is that the processor only a center for acquisition CCD sensor light. Therefore, the image you get only about 3-megapixel resolution. All three versions fashion also equipped with image stabilization mechanism Mega OIS optical Data on the movement of your body is constantly sent to the processor speeds four times per second. Here, the processor will analyze and control systems in the body of your lens moves to compensate for the vibration is not necessary to give the shots steady without raising ISO.

Overview of ultra-thin fashion line Panasonic camera FP3
Panasonic FP3 more 3-inch touch screen. Photo: Dcresource.

Screen on all three machines have 230,000 pixel resolution Intelligent LCD technology will automatically change the brightness by 11 different levels based on the analysis results surroundings. Lumix FP1 and FP2 own screen size usually 2.7 inches. FP3 more advanced version is equipped with 3-inch touch screen. The operation is very smooth and fast on the combination of the standard touch screen systems and auxiliary button located next. In addition, FP3 also allows focus on any point on the frame by touch the LCD screen before the capture button.

Sensors on all three machines are relatively small in size 1/2.33 inches, using traditional RGB color filter grid. Cheap FP1 version reached 12.1 megapixel resolution, also FP2 and 3 up to 14.5 MP. ISO range of the machine in about 80 to 1600. In High Sensitivity mode, ISO rating can be pushed up to 6400. Machine  also provides a "store" 25 wear scene with many very attractive options like taking the air, taking effect film, creating photo frame ... With Starry Sky Mode, shutter control of the machine is to achieve exposure time up to 15, 30 or 60 seconds to light a major acquisition from the environment. In intelligent mode (IA Mode), it will help you optimize images enabled by a series of automated features such as light-sensitive control, face detection, identification and scenery fix red eye. Users simply press the button without taking interest in any information regarding the exception of battery type and number of images left in memory card.

Venus Engine IV processor for fast processing speed to the amazing. Time delay after the capture button is only about 0.006 seconds with FP3 and FP2, about 0.007 seconds for FP1. Focus mechanism allows supersonic key objects within 0.33 seconds, very impressed with a sample of ultra-small camera travel. Startup time of all three machines is less than 1 second, it helps you not miss the beautiful moments of relatives and friends of the opportunity to play or meeting. Continuous shooting speed is very fast: 5.5 frames per second to 4.5 seconds for FP1 and FP2 / 3.

Three new models are capable of 1280 x 720p HD video recording, high speed 30 frames per second. In addition, users also have the option to save the movie with WVGA resolution (848 x 480) or VGA (640 x 480). Battery Li-ion ID-Security allows shooting approximately 300 types for each fully charged.

Size super thin, ultra light weight with high fashion designers, the three cameras of the Panasonic line FP is very suitable for women and youth in a trip away.

You can find this product in Amazon










Example of EJB Interceptor class

EJB 3.x interceptor class can contain either EJB lifecycle callback methods (e.g., @PostConstruct, @PreDestroy, @PrePassivate, @PostActivate), or business interceptor methods (i.e., @AroundInvoke), or any combination of these methods. The following is a simple example of EJB interceptor class:
package test;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.ejb.PrePassivate;
import javax.ejb.PostActivate;
import javax.interceptor.AroundInvoke;
import javax.interceptor.InvocationContext;

public class Interceptor1 {
@PostConstruct
protected void myPostConstruct(InvocationContext ctx) {

}

@PreDestroy
protected void myPreDestroy(InvocationContext ctx) {

}

@PostActivate
private void postActivate(InvocationContext ctx) {

}

@PrePassivate
private void prePassivate(InvocationContext ctx) {

}

@AroundInvoke
public Object businessIntercept(InvocationContext ctx)
throws Exception {
Object result = null;
try {
// PreInvoke: do something before handing control to the next in chain
result = ctx.proceed();
return result;
} finally {
// PostInvoke: do something (cleanup, etc) after the main processing is done
}
}
}
The interceptor class is attached to EJB bean class (or business method in EJB bean class) with @Interceptors annotation, or specified in ejb-jar.xml.

@Resource.lookup and classpath

JavaEE 6 added a new lookup attribute to @javax.annotation.Resource. So one can inject resources like this:
@Resource(lookup = "java:module/env/rate")
private String rate;
Compile the classes:
javac -cp "$GLASSFISH_HOME/modules/*" *Bean.java

EmailBean.java:18: cannot find symbol
symbol : method lookup()
location: @interface javax.annotation.Resource
@Resource(lookup = "java:module/env/rate")
^
1 error
In GlassFish, all JavaEE classes are in various jars under $GLASSFISH_HOME/modules and its subdirectories. It failed because version 1.0 of javax.annotation.Resource class (and other javax.annotation.* classes) are included in Java SE 6. The use of lookup attribute requires version 1.1 of Common Annotation jar, which is included in JavaEE 6.

To fix it, simply add a -Djava.endorsed.dirs sysprop to override those classes in Java SE 6:
javac -cp "$GLASSFISH_HOME/modules/*" -Djava.endorsed.dirs=$GLASSFISH_HOME/modules/endorsed  *Bean.java
In Eclipse IDE, you just need to put $GLASSFISH_HOME/modules/endorsed/javax.annotation.jar before JRE System Library when configuring Java Build Path.

This should also work with any compliant appserver, though actual jar name and location may vary. The same -Djava.endorsed.dirs sysprop should also be used when running the app.

GeForce 3D Vision - Good device for entertainment

NVIDIA GeForce 3D Solutions 3D Vision supports many games, allowing people with 3D experience and many innovative easy to use, more convenient.

GeForce 3D Vision - Good device for entertainment


Ministry of 3D glasses NVIDIA GeForce 3D Vision LCD manufacturing technology initiative should achieve both high image quality and color resolution (Full HD). LCD glasses is able to control open (with closed state) and off (transparent) with frequencies up to 120Hz, the two eyes independently. This requires the display to achieve high frequency, to optimize the 100Hz, so now only a few screen accordingly. In return, the color will be transmitted to the eye and full details of the image is guaranteed. Frequencies in the LCD NVIDIA GeForce 3D Vision 3D glasses can be adjusted to suit each environment and resolution of the display (4 settings are available: the open night-lights, on-off light, night-open light 50Hz, game). Rimmed glass beautifully designed, and lighter than previous design title could remove the nose assembly, replacing three small, medium, large included.

Designing the wireless communication, infrared waves Vision 3D has allowed the freedom of movement and ability to connect more with the receive device, share, experience 3D. Receive device still do the job automatically sync signal, activated glass when the display mode and 3D wheel controls to fine-tune your depth while 3D views (no need to exit and enter 3D mode menu control).

Mode processing, 3D display supported by hardware and integrate the solution so drivers can support, performance is quite content sources, including image, video and games. List of game activities with 3D glasses may Vision 3D has over 400 games, including highlights of Batman: Arkham Asylum, Biohazard 5, Resident Evil 5 ...

Experience with photos, video samples NVIDIA add-in available supply, and video games Batman: Arkham Asylum with quite natural 3D space with depth, surface floating separated clearly. Color shown rich and detailed picture of very high. In the game Batman: Arkham Asylum, 3D mode shows all beauty of the wonderful way the kick of the "Batman" and help facilitate observation for monsters to appear almost from the popular "four way  eight direction".

NVIDIA GeForce 3D Vision solution only for high-profile computer and requires strict synchronization: display support (ready) 3D Vision GeForce, GPU NVIDIA GeForce match, Windows Vista 32/64 bit, standard Game DirectX. Recommended: CPU Intel Core 2 Duo or AMD Athlon X2, GeForce 8 GeForce 9 / GeForce GTX200, 2GB RAM, 100MB hard drive, Windows Vista 32/64 bit. Reference books dach details www.nividia.com/3dvision.

Set not too hard, mainly connecting cable and software installation instructions properly. Set initial steps have specific instructions, intuitive step. Menu controls NVIDIA Control Panel will appear more entries Set Up Stereoscopic 3D and you should check the box Enable Stereoscopic 3D. First infrared communication should face with glasses, how about 45cm across and not be sure.

Besides wearing eye glasses Vision 3D, the product provides the audio changes from the 2.5 mm VESA, DVI to HDMI cable, USB 2.0 cable A to mini B, USB A to USB charging cable mini-B, including fabric glass containers, installation instructions and software disk. Accessories also include protection of glass cloth and glass cloth dedicated.

You can buy this glass in Amazon:  nVidia GeForce 3D Vision Kit

2 @ManagedBean in JavaEE 6

There are 2 @ManagedBean annotations in JavaEE 6:

javax.annotation.ManagedBean (javadoc)
javax.faces.bean.ManagedBean (javadoc)

Looks like we are running out of names.

Env-entry enhancement in JavaEE 6

JavaEE 6 adds 2 additional types to the list of env-entry types: java.lang.Class and any enum type. So there are now 11 portable env-entry types that must be supported by all compliant application servers:
       java.lang.Class
any enum type
java.lang.Boolean
java.lang.Byte
java.lang.Character
java.lang.String
java.lang.Short
java.lang.Integer
java.lang.Long
java.lang.Float
java.lang.Double
For example, to use java.lang.Class and enum env-entry-type in a web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<env-entry>
<description>example of java.lang.Class env-entry-type</description>
<env-entry-name>java:app/env/myImplClass</env-entry-name>
<env-entry-type>java.lang.Class</env-entry-type>
<env-entry-value>test.MyServiceProvider</env-entry-value>
</env-entry>

<env-entry>
<description>example of enum env-entry-type</description>
<env-entry-name>java:app/env/day</env-entry-name>
<env-entry-type>com.examplexxx.util.Day</env-entry-type>
<env-entry-value>SUNDAY</env-entry-value>
</env-entry>
</web-app>
To inject the above 2 env-entry into fields in a servlet, or EJB bean class, or any other components in the EAR:
@Resource(lookup="java:app/env/myImplClass")
@SuppressWarnings("unchecked")
private Class myImplClass;

@Resource(lookup="java:app/env/day")
private com.examplexxx.util.Day day;
For java.lang.Class type, only the raw type, not the generic type, can be declared as the field type, hence @SuppressWarnings("unchecked").

Good tips buy digital camcoder

Digital camcorders today can make video recording and editing is easy. You can also export the clips get the tape or DVD or put directly onto the network.

Good tips buy digital camcoders

The model currently used by MiniDV is rarely goods, but by the outstanding quality movies and good prices lower than others. Types using the DVD and hard drive are more common. You can also see the Mini DVD disc on DVD player but if your laptop only DVD "swallow disk" is probably smaller than the disk will not fit. With these models often use the hard drive or flash drive, you will need more storage space on your computer for the movie. In case the camera can be SD or SDHC memory card, you can review the videos easily on the digital frame, standard HD TV and other entertainment devices slot SD / SDHC.

High quality (HD) or standard (SD)?

Although the HD video quality is very good but quite expensive HD camera and not all video editing software will accept the HD clips. The decoding is also a problem when files often use the HD format AVCHD (Advanced Video Codec High Definition) format is not always supported by editing software. The HD MiniDV camcorders often use HDV compatible format better. Both formats require high PC configuration to decode the file and many hours to the building. Moreover, even if your editor supports HD, then it is only when you burn a disc the standard.

Main Features

Display: LCD display allows you to easily observe the subject and preview clips. However, some LCD not clear under the action of sunlight and sun screen size consume much more battery. Therefore, most camera are equipped view-finders .

Widescreen video: Some camcorders can record with a 16:9 aspect ratio (the ratio of HD TV use), even for the regular film. With such a camera, CCD sensors will have the option of 16:9 or traditional 4:3 ratio. In case the camera only part of the CCD for widescreen movies.

Lenses: All camcorders have zoom lenses but not empty also differentiate clearly between optical zoom and digital zoom. Maximum optical zoom is the highest magnification camera that can be achieved with the lens on. Overall, about 10X optical zoom is more than enough. Meanwhile, the digital zoom to expand the image to fill the screen after the open end of the optical zoom, making movies seed.

Anti-vibration: Do you worry about the images was caused by shock your hands? With the anti-vibration, the mechanism of the lens movement will overcome the movement outside. With electronic anti-vibration, photos will be processed again by CCD. Features anti-vibration optical often for better results.

Pin: Most camcorders can operate for at least an hour with batteries included. These batteries have a longer use time typically cost from $ 50USD to 100USD.

Microphone: The microphone is usually placed in front of the microphone for better audio set on top of the machine. Some camcorders have a "zoom mic" to increase the volume by the zoom lens is used and some other form allows you to plug in external microphone.

Photography: Many camcorders can record still images on memory cards or tapes. Some machines can also store images of the same resolution as digital camera 5Mpixel. However, not easy to find a number of camera control buttons or picture quality fairly common with digital cameras.

Low light : Many camera can operate in low light conditions with the help of infrared light, slow mode close the lens to get more light one, or take light from one or multiple LED available. The mode can be useful but the film is not as beautiful as the light conditions well.

Connectivity: Most MiniDV camcorders have FireWire ports for transferring video to PC; few samples will film via USB 2.0. Most models are back port S-video or composite ports production (video and audio) to view video on TV. In addition, the camera can also enter S-Video ports and ports in composite, allowing you to collect from other sources such as from analog camcorders (analog) for the former.

Weight: In addition to a large LCD screen and extra features will make the camera a higher price but will also make it difficult for users and increase the size of the machine. Weight of machine is also a key criteria for the camera because affect you always take it with the trip. In addition, the volume also affects the price: the models is often more expensive. Typically, small camera lens will be simpler, less features and modes for more difficult to control.

Some good model you can choose:









DataSourceDefinition Examples in JavaEE 6

The usual way to create a DataSource is through the appserver's administration, CLI or GUI tool. Then applications can declare resource-ref mapped to the DataSource. This involves both application developer and server administrator, and sometimes can be too much for simple apps. JavaEE 6 added 2 annotations to ease this task: javax.annotation.sql.DataSourceDefinition and javax.annotation.sql.DataSourceDefinitions.

With the 2 annotations, applications can take control of DataSource creation, and choose to expose the DataSource in various scopes: component-, module-, application, and global-scope. For simple apps, all this can be done without any server configuration or XML descriptors.

Example 1: a servlet declares how to create a derby DataSource, and injects a reference to this DataSource into a field. This DataSource is scoped to the whole module (the entire webapp).
@DataSourceDefinition(name="java:module/env/inventory",
className="org.apache.derby.jdbc.ClientDataSource",
portNumber=1527,
serverName="localhost",
databaseName="inventory",
user="user1",
password="password1")
@WebServlet(urlPatterns = "/InventoryServlet")
public class InventoryServlet extends HttpServlet {
@Resource(lookup="java:module/env/inventory")
private DataSource inventoryds;
Example 2: a Stateless session bean creates an application-scope Oracle DataSource, and injects its resource-ref. This DataSource is visible to the entire application (EAR).
@DataSourceDefinition(name="java:app/env/inventory",
className="oracle.jdbc.pool.OracleDataSource",
portNumber=1521,
serverName="localhost",
databaseName="inventory",
user="user1",
password="password1",
properties={"driverType=thin"}
)
@Stateless
public class InventoryBean {
@Resource(lookup="java:app/env/inventory")
private DataSource inventoryds;
For more details, see JavaEE 6 javadoc page for @DataSourceDefinition

Message Driven Bean Example with Servlet Client

This is a simple example of JMS Queue message-driven bean (MDB), with a servlet client. MessageServlet sends a text message to the queue that the MDB is bound to, the MDB then consumes the incoming message. This example requires EJB 3.1 and Servlet 3.0, both are in Java EE 6.

First, the MDB class:
package test;

import java.util.logging.Logger;
import javax.ejb.ActivationConfigProperty;
import javax.ejb.MessageDriven;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;

@MessageDriven(mappedName="testQueue2",
activationConfig = { @ActivationConfigProperty(
propertyName="destinationType", propertyValue="javax.jms.Queue")})
public class MessageBean implements MessageListener {
Logger logger = Logger.getLogger("test");

public void onMessage(Message msg) {
try {
String name = msg.getStringProperty("name");
logger.info("Received msg " + msg + ", from " + name);
} catch (JMSException e) {
throw new RuntimeException(e);
}
}
}
The servlet class:
package test;

import java.io.IOException;
import javax.annotation.Resource;
import javax.jms.*;
import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.*;

@WebServlet(urlPatterns = "/MessageServlet")
public class MessageServlet extends HttpServlet {
@Resource(mappedName = "testQueue2")
private Queue queue;

@Resource(mappedName = "jms/QueueConnectionFactory")
private QueueConnectionFactory queueConnectionFactory;

@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
QueueConnection queueConnection = null;
try {
queueConnection = queueConnectionFactory.createQueueConnection();
queueConnection.start();
QueueSession queueSession = queueConnection.createQueueSession(false,
Session.AUTO_ACKNOWLEDGE);
QueueSender sender = queueSession.createSender(queue);

TextMessage msg = queueSession.createTextMessage();
msg.setText("A message from MessageServlet");
msg.setStringProperty("name", "MessageServlet");

sender.send(msg);
} catch (JMSException e) {
throw new RuntimeException(e);
} finally {
try {
if (queueConnection != null) {
queueConnection.close();
}
} catch (JMSException e) { //ignore
}
}
}
}
After compiling, package the two classes into a WAR file, say, mdb.war:
WEB-INF/classes/test/MessageBean.class
WEB-INF/classes/test/MessageServlet.class
Create the 2 JMS resources (testQueue2 & jms/QueueConnectionFactory) in the target application server. In GlassFish, you can do it in Admin GUI, or via asadmin CLI:
./asadmin create-jms-resource --restype javax.jms.Queue testQueue2
./asadmin create-jms-resource --restype javax.jms.QueueConnectionFactory jms/QueueConnectionFactory
Deploy mdb.war by copying it to server autodeploy directory.

Enter the URL in browser to invoke the servlet:
http://localhost:8080/mdb/MessageServlet

You will see the following log in server.log as a result of MDB processing:
[#|2010-04-14T17:28:49.900-0400|INFO|glassfishv3.0|test|_ThreadID=31;_ThreadName=Thread-1;|Received msg com.sun.messaging.jms.ra.DirectTextPacket@3ce177de, from MessageServlet|#]

Acer AS5740 I3 core with cheap price, good performance

Although there are some drawbacks "inherent" design, but this model of Acer is noteworthy because property performance graphics processor is quite good.

Acer AS5740  I3 core with cheap price, good performance

Acer AS5740 was the first to use laptop processors Intel Core i3. Machine also noted for owning graphics chip ATI Radeon HD5470 512MB DDR3, memory bus 1066 MHz DDR3 4GB, 320GB hard drive (speed 5400 rpm).

This model's design features of Acer's curved at the edges with a definition first. To minimize costs, Acer AS5740  with the frame made of plastic so when the situation does not really feel sure, on the surface more susceptible to scratches when the machine will use. Although using only 15.6-inch widescreen is 16:9, but the machine should look quite bulky and weigh up to 2.7 kg (including battery 6 cell).

Ports connect to most designers to push the two sides of the machine. The left side of the hole plug the power cord, connect the LAN ports, HDMI, VGA signal to (D-SUB), 2 USB 2.0, Audio 3.5 mm 3 of microphone jack, line out and SPDIF out. Right of the machine has two USB 2.0 ports, additional hard disk drive read / write DVD, Fax Modem RJ11 and Kensington lock. Front edge of the machine only appears only five types of memory card reader to the key turned lid. Acer AS5740 also owns the Wi-Fi connectivity as standard n latest Bluetooth 2.1 + EDR. However, even integrated a wide variety of ports to connect the Acer AS5740 cause frustration with lack of ports to connect high-speed eSATA.

With 15.6 inch screen with 16:9 but, this model of Acer enough area to own full size keyboard with designers featured. Keys to a full remote users are not typing the wrong key, but not great depth of the key should not really make sense to use. Four-way navigation key is quite small and slightly difficult Monitoring should use the same accurate, especially for those with big fingers. A further drawback is the keyboard type is also known to receive many complaints of users before the dust is difficult sanitation.

Meanwhile, the touchpad layout reasonable Slight right under the keyboard on the left is quite extensive but easy to manipulate the user when the keyboard to the wrist on impact. Sensitivity of this touchpad is only average.

Acer Aspire AS5740 is equipped with Dolby Home Theater speakers with relatively large volume but the sound quality is only average with a weak bass. The system is fully heard in the small room with an area of over 20m2.

This model owns the screen wide-screen 15.6-inch LED backlight resolution 1366 x 768 pixel display sharp and bright clear details. However, disadvantages of this type of display viewing angle is quite narrow and vulnerable to the ball is when the display natural color of dark mass.

Configuration information including the Intel Core i3 330M (2.13Ghz / 3MB cache L3), HM55 Intel Express chipset, 4GB capacity DDR3 Bus 1066MHz, ATI Radeon HD5470 512Mb GDDR3, 320GB SATAII hard drive ( speed 5400 rpm), the Acer machines that really surprised many people when comparing performance to price it.

Grading system based on Windows Experience Index in Windows 7 Ultimate 64 bit, Acer AS5740  to reach 5.1 points. Point AS5740 levels that "extra effort" to run smoother Peak Aero graphical interface with all the default settings and can see the video and HD game play more "heavy" on Windows 7.

Using 3DMark06 program to "measuring" the strength of the graphics engine, the result is really impressive. Acer's product reach to 4041 points, quite a lot higher than the average of less than 3,000 points of the product range as 650$ as AS5740.

Meanwhile, the test program wPrime CPU, although limping slightly, but the scores of processors are integrated in the Acer AS5740 is equivalent to the Intel Core 2 Quad X9000 (a model processor's advanced 4 Intel).

When testing the game play is so high profile as PES2010, this engine speed steady at 60 frames per second to set the highest graphics. For some game worse, Acer AS5740 can also explore but do not be too smooth but still beyond expectations. Game machine can play COD4 at an average rate of 25 frames per second, also with Need For Speed: Shift all set at the highest level, the average speed of 18 frames per second (all game play in the resolution of the machine is 1366 x 768 pixels).

Using the 6 cell battery with good graphics power, battery life time of actual Acer AS5740 about 3 hours when running more basic applications like Web surfing, music, word to the display brightness level max.

When using the program normally, the machine does not have signs of heat. Even during games, machines just warm up a bit at acceptable.

Despite some drawbacks, such as design boring, bulky, lack of connection eSATA port, the keyboard is not really good performance but Acer AS5740 has worked very impressive, especially compared to the cost 650$ to own it. If users are interested in many brands and designs to the range with this money in the domestic market Acer AS5740 really difficult "opponent" match range.


You can see more detail technical this laptop in here : Acer AS5740-5513 15.6-Inch Laptop





Some best game for Nokia N70 & N72

Continue introduce old posts about games for Samsung Omnia 2 and games for Nokia E71, this post will bring for you some interesting games for Nokia N70 and N72.

Racing car
Some best game for Nokia N70 and N72 

Download here

Diamond:



This is a popular game. You can download here

Chess

You can choice multi level , interesting

Some best game for Nokia N70 and N72
Download here
Tank

Some best game for Nokia N70 and N72 

Download here

Bomb
Some best game for Nokia N70 and N72
Download here

Caro chess

Some best game for Nokia N70 and N72 
You can download here 

Fighting


Some best game for Nokia N70 and N72 
Download here  

Hope you are interesting!














GlassFish set-web-env-entry

env-entry elements can be used to configure a webapp without recompiling. Usually one still needs to update them in web.xml, and redeploy the WAR for the new config to take effect. I just noticed GlassFish v3 now supports in-place, dynamic updating web env-entry via its powerful asadmin command. I guess it can also be done in GlassFish admin GUI.

1, download a sample webapp, hello.war, from GlassFish web site, to $GLASSFISH_HOME/domains/domain1/autodeploy/ directory:
wget https://glassfish.dev.java.net/downloads/quickstart/hello.war
2, verify hello.war has been successfully deployed:
cd $GLASSFISH_HOME/bin
./asadmin list-components
3,
./asadmin set-web-env-entry --name=contact-email --value=info@examplexxx.com --type=java.lang.String hello
./asadmin set-web-env-entry --name=debug --value=true --type=java.lang.Boolean hello
4, verify the 2 new env-entry elements:
./asadmin list-web-env-entry hello
Reported 2 env-entry settings

contact-email (java.lang.String) = info@examplexxx.com ignoreDescriptorItem=false //(description not specified)
debug (java.lang.Boolean) = true ignoreDescriptorItem=false //(description not specified)
You can also verify them by viewing $GLASSFISH_HOME/domains/domain1/domain.xml:
<application context-root="/hello" location="${com.sun.aas.instanceRootURI}/applications/hello/" name="hello" object-type="user">
<property name="defaultAppName" value="hello" />
<module name="hello">
<engine sniffer="security" />
<engine sniffer="web">
<web-module-config>
<env-entry>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>info@examplexxx.com</env-entry-value>
<env-entry-name>contact-email</env-entry-name>
</env-entry>
<env-entry>
<env-entry-type>java.lang.Boolean</env-entry-type>
<env-entry-value>true</env-entry-value>
<env-entry-name>debug</env-entry-name>
</env-entry>
</web-module-config>
</engine>
</module>
</application>

To learn more about set-web-env-entry subcommand, try one of the following:
./asadmin help set-web-env-entry
./asadmin set-web-env-entry --help
To list and unset env-entry, use the following asadmin commands:

list-web-env-entry
unset-web-env-entry
The same feature also exists for web context-param, via the following commands:

list-web-context-param
set-web-context-param
unset-web-context-param

LG GW525 - personal your style


Not only exploit the touch screen to mask a Flash interface as the ability to simulate multi-touch operation,  LG GW525 also adds convenience with QWERTY keyboard ...

Not only exploit the touch screen to mask a Flash interface as the ability to simulate multi-touch operations appear first on "cookies" KP500, LG GW525 also added the convenient QWERTY keyboard used for creating names KS360. When you push your cap right, your keyboard with buttons to appear, and the screen automatically converted to display horizontally.

LG GW525 - personal your style

On the screen 2.8'' (256,000 colors), you can easily bring home interface to display two basic types of symbols commonly used applications or log in touch recently. Found the bottom of the screen are four icons with four main features, including the installation menu system. GW525 intuitive interface, but browsing through the menu, scroll bar with the fingers slightly inconvenient because the pen computer without brooch, while the sensitivity of the touch screen is not really excellent - although feedback feature " shake "works well. Machine just arranged in front of three control buttons; button lock screen and fast photography is set at the right side - the bay on a microSD card (support up to 8GB, internal memory 40MB).


LG GW525 can operate on 4-band GSM, provide enough features Bluetooth 2.0 (with A2DP), GPRS and WAP, next to the support email or standard POP3/IMAP4 email services such as Yahoo !, Hotmail and Gmail, even the Mail for Exchange. Test sending and receiving messages from Yahoo, Gmail and email account through the GPRS connection for good results, simple operation and configuration downloads correctly. GW525 allows quick opening an attachment is a document, spreadsheet, presentation and image. GW525 the offer Push Email (in the Applications menu) has the ability to automatically connect to the server e-mail services (user-specified) for updates and download new email and then notify the used

In addition, GW525 also support 3G, so you see the camera (VGA resolution) arranged on the front to make the phone has. Phone and SMS with the 3G wave good quality.

With send / receive SMS, GW525 brings users like chatting satisfaction as we can "Collection" message corresponding to each phone number / directory and then to display all message overall. QWERTY keyboard with the key characters often used when composing messages or e-mail of LG now on GW525 promote strength.
LG GW525 - personal your style
GW525 equipped with 3-megapixel camera, flash not supported with auto focus. Traditionally, GW525 also supports night, color effects, white balance, exposure compensation and continuous shooting 3/6/9 image (resolution is automatically reduced and features 2x digital zoom is enabled). Meanwhile, the zoom feature when filming is always standing (VGA). Machine also supports fast editing photos, upload photos to Blogger and create short films from the photo gallery tool Muvee Studio.

Information for Vietnam market: LG Price GW525 is 3.49 million VND (including VAT). Components included: headphones, rechargeable battery, manual, USB cable, software CD, 1GB microSD memory card. Supported Vietnamese interface.

Test surf the GW525 showed strong GPRS connectivity, the browser display a full and clear. However, if you do not push aside the keyboard, the screen automatically rotate only when the user move the machine on while browsing, or viewing photos / video, also the main menu or home screen is standing

Of course, your indispensable feature entertainment, providing the music and play movies, integrated FM radio and recording functions effectively. Speakerphone volume is quite large, and clear. Features calendar, notes, calendar, task, alarm clock and search engine Google to find and easy to use - you can set the "one touch" for frequently used features on the home interface .

Supported gaming motion sensor, offer the seal device is lost and the ability to synchronize data from computer software included.

Advantages: Web browser and email easy to use, high speed. Convenient QWERTY keyboard. Interface with 2 optional display shows strong personality of the user.

Disadvantages: Missing wifi connection. Touchscreen not sensitive. Camera is not supported self-focus



You can buy this mobile in: LG GW525 Calisto GSM Unlocked Phone with Camera--International Version with Warranty (Aqua Blue)




Samsung S3650 Corby - Gift for woman and young people

The touchscreen phone has the best price of the sensitivity of the model cell phone manufacturers "top 5" global. Products are specially designed for younger users and women.

Samsung S3650 Corby -  Gift for woman and young people

Samsung S3650 Corby has quickly become one of a "hot" one on the mobile phone market in many country after being sold Samsung announced.

One of the strengths of this product is specially designed for younger users, students, students ... expressed from the color to the chassis for applications within, from design to bidding.

Small size, 103x56, 5x12 mm, users can easily put the phone in your pocket or pants pocket. Front of the machine with shiny black back and full of colors and patterns. Users can choose colors for Samsung S3650 Corby hot, vibrant such as orange, pink, yellow, and white (with two shells are presented together with the machine). All of them are glossy as well as front.

The front has a touch screen 2.8 "TFT technology, 256 thousand colors. Display quality is quite good. Samsung S3650 Corby is also equipped with TouchWiz interface touch with a widget bar. Specifically, S3650 Corby also "Teen" when integrated "theme" Cartoon with menu icons, wallpaper graphics by hand is fun, handwriting font ... you can use by touching S3650 Corby Induction drag / drop a comfortable and easy; vibration feedback technology is also integrated. Unfortunately, this screen does not switch to "posture" is horizontal, it also means a lot when preparing a message, you must type on a "keyboard" virtual size is not large; probably Samsung and hence not integrated virtual QWERTY keyboard.

Immediately below the screen, S3650 Corby has 3 keys, including key physical receipt, reject calls, and video back to the original application (back). We are impressed with the key "Back" by the beautiful design and large, make the phone not only more beautiful but also easy to use. Around the hull have the key lock screen, fast imaging, volume control and battery charging slot / headset / data cable (and shared with a lid).



Samsung S3650 Corby -  Gift for woman and young people
Very many color

With the phone's touch Samsung, TouchWiz is a widget should have the full widget integration S3650 Corby's social networks are quite popular as Facebook, MySpace, Twitter, of course, have a number of widgets such as Google, or for AccuWeather weather ... Unfortunately S3650 Corby not integrate Wi-Fi Internet access should say on the Internet or web browser will find it more difficult for users by only through GPRS connection.

However, most applications that the "Teen" is often preferred in Corby S3650 such as Bluetooth 2.0 with A2DP, microSD card slot (a machine with 90MB of internal memory), the mobile entertainment applications ( digital music, FM radio, video) ... Through the experiment, these applications work quite well. In addition the machine has good quality speakerphone, 2 megapixel digital camera along. The camera quality photographs moderate and no flash. You can film on this device.

Time using the battery manufacturer announced that 730 hours of standby and 540 minutes for the phone. Continuous time listening to music through headphones with a 12-hour test

Advantages: Design beautiful, young and colorful; touchscreen interface TouchWiz + CartoonUI; many applications of social networking widget; are most mobile entertainment applications; card slot expansion; Bluetooth.

Disadvantages: No Wi-Fi; screen is not Pan.

Comments: S3650 Corby can be considered as a touch screen phone has the best price of the sensitivity of the model cell phone manufacturers "top 5" global. Products are specially designed for younger users and women.



You can buy this mobile in: Samsung Corby S3650 Unlocked GSM Cell Phone




EJB 3.1 Timer Simple Example

This is a simple webapp that polls a web site to check if a product is available. It uses a stateless session bean and calendar-based timer.
package test;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URI;
import java.net.URL;
import java.util.logging.Logger;

import javax.ejb.Schedule;
import javax.ejb.Stateless;

@Stateless
public class InventoryCheckBean {
private static final String PRODUCT_URL = "http://www.amazon.com/dp/B002BSA298/";
private static final String IN_STOCK = "In Stock";

@SuppressWarnings("unused")
@Schedule(dayOfWeek = "0-5", hour = "0/2", minute = "0/20", timezone = "America/Los_Angeles")
private void checkInventory() {
BufferedReader br = null;
try {
String line = null;
URL url = new URI(PRODUCT_URL).toURL();
br = new BufferedReader(new InputStreamReader(url.openStream()));
while ((line = br.readLine()) != null) {
if(line.indexOf(IN_STOCK) >= 0) {
//email notify
Logger.getLogger("").info(line);
break;
}
}
} catch (Exception e) {
throw new RuntimeException(e);
} finally {
if(br != null) {
try {
br.close();
} catch (IOException e) { //ignore
}
}
}
}
}
After compiling, simply package test/InventoryCheckBean.class into a WAR file under WEB-INF/classes. No other files are needed.
/tmp > jar tf $owd/inventory.war
META-INF/
META-INF/MANIFEST.MF
WEB-INF/
WEB-INF/classes/
WEB-INF/classes/test/
WEB-INF/classes/test/InventoryCheckBean.class
Deploy this war to any application server that is Java EE 6 compliant. The timer is activated upon successful deployment, and starts to check the specified site at the specified intervals. This is so-called automatic timer.

In the server log file, you will notice these logs:
[#|2010-04-01T10:50:01.644-0400|INFO|glassfishv3.0||_ThreadID=26;_ThreadName=Thread-1;|<span class="availGreen">In Stock.</span><br/ > Ships from and sold by <b>Amazon.com</b>. Gift-wrap available.|#]
Note:
(1) This WAR file contains only an EJB bean class.

(2) There is no business method in this EJB; only 1 private timer method, which is only invoked by the container after deployment. So @SuppressWarnings is used to mute any warnings that this method is never used.

(3) No client action is needed. Right after deployment, the timer is activated and starts the processing specified in the timer method.

(4) timezone is optionals and defaults to that of the hosting machine.

(5) This timer goes off every 20 minutes of every other hour starting from 0 o'clock from Sunday to Friday, and the time is based on America/Los_Angeles timezone.

Update on 3/4/2011, I deployed the same inventory.war to JBoss AS 6.0, by copying it to $JBOSS_HOME/server/default/deploy, it also worked. No need to change anything.

Followers

Pageviews Last 7 Days