tracy
Name: tracy
Score: 2,862.41
Last Seen: 612 days, 6 hours, 26 minutes ago
Member Since: 25 December, 2011
JavaPins
atom rss
2
Pins

NetBeans 7.2: Refactoring Parameterized Constructor As Builder | JavaWorld's Daily Brew

published 611 days, 22 hours, 35 minutes ago posted by anishaanisha 613 days, 14 hours, 45 minutes ago
Monday, August 13, 2012 11:04:13 AM GMT Saturday, August 11, 2012 6:54:06 PM GMT
Emerging development platforms Top 5NetBeans 7.2 equipped with static analysis toolDSLs: Clever little languages to bridge business and developmentUndocumented properties of Oracle JVM HttpServerJava vulnerabilities increasingly targeted, say researchersModern threading: A Java concurrency primerFeatured White PapersBuild a Web-Based IDE w/ Vaadin & JRebelUsing JRebel Magic on Remote MachinesJRebel & Jelastic: The Silver Lining for... (more)
category: Java EE | clicked: 3 | comment | | source: www.javaworld.com
tags: netbeans 7.2, parameterized constructor
2
Pins

SSIS Junkie : Composable DML cannot insert into a table with a FOREIGN KEY

published 611 days, 22 hours, 35 minutes ago posted by anishaanisha 613 days, 14 hours, 53 minutes ago
Monday, August 13, 2012 11:04:13 AM GMT Saturday, August 11, 2012 6:45:54 PM GMT
I have written on here about the benefits of Composable DML (i.e. the ability to insert the data outputted from an OUTPUT clause into a table) before however I discovered a limitation today that I think is worth sharing. Basically, the table that you’re inserting into cannot have a FOREIGN KEY constraint nor can it have a FOREIGN KEY constraint pointing to it. Here’s some code that demonstrates the first of these two restrictions:/*This code demonstrates the fact that you can't use composable DML to inse... (more)
category: SQL | clicked: 1 | comment | | source: sqlblog.com
tags: composable, DML, Foreign Key
2
Pins

Testing antipatterns

published 605 days, 4 hours, 7 minutes ago posted by jamesjames 613 days, 19 hours, 21 minutes ago
Monday, August 20, 2012 5:31:33 AM GMT Saturday, August 11, 2012 2:17:35 PM GMT
When you look at the test code you cannot see which type of exception is thrown. First it is better for clarity to document which type is thrown and second any bugs in the called code who throw unintended exceptions are swallowed here. Better: try { callFailingMethod() fail() } catch (ParseException e) { } Problems: If it fails you don’t see why: so always use a message for fail. Better: ... (more)
category: JAVA | clicked: 12 | comment | | source: schneide.wordpress.com
tags: Antipattern, Testing
3
Pins

A better java shell script wrapper

published 611 days, 22 hours, 35 minutes ago posted by jamesjames 613 days, 19 hours, 14 minutes ago
Monday, August 13, 2012 11:04:13 AM GMT Saturday, August 11, 2012 2:25:24 PM GMT
In many Java projects, you often see wrapper shell script to invoke the java command with its custom application parameters. For example, $ANTHOME/bin/ant, $GROOVYHOME/bin/groovy, or even in our TimeMachine Scheduler you will see $TIMEMACHINE_HOME/bin/scheduler.sh. Writing these wrapper script is boring and error prone. Most of the problems come from setting the correct classpath for the application. If you're working on an in-house project for a company, then you can get away with hardcoding paths an... (more)
category: JAVA | clicked: 6 | comment | | source: saltnlight5.blogspot.com
tags: Java, Shell Script, wrapper
3
Pins

How To Validate Email Address in Java Mail API : Java Sri Lankan Support

published 611 days, 22 hours, 35 minutes ago posted by anishaanisha 615 days, 19 hours, 48 minutes ago
Monday, August 13, 2012 11:04:13 AM GMT Thursday, August 09, 2012 1:50:39 PM GMT
Validate Email Address using Java Mail API In this tutorial you will find how to validate email address using java Mail API. You must to import javax.mail.internet.InternetAddress  In previous post I described How To Validate Email Address Using Java Regular Pattern package jsupport; import javax.mail.internet.AddressException; import javax.mail.internet.InternetAddress; /** * * @author Jsupport http://javasrilankansupport.blogspot.com */ public class ValidateEmailAddress { public static ... (more)
category: Java EE | clicked: 10 | comment | | source: javasrilankansupport.blogspot.in
tags: Email Address, java mail API, validation
2
Pins

Struts1 vs Struts2

published 611 days, 22 hours, 35 minutes ago posted by anishaanisha 615 days, 20 hours, 41 minutes ago
Monday, August 13, 2012 11:04:13 AM GMT Thursday, August 09, 2012 12:58:00 PM GMT
Struts2 is more powerful framework as compared to struts1. The table given below describes some differences between struts1 and struts2 (more)
category: Struts | clicked: 8 | comment | | source: www.roseindia.net
tags: Difference, Struts 2, struts1
2
Pins

Writing your spring security expression language annotation - PART 2

published 611 days, 22 hours, 35 minutes ago posted by borislamborislam 614 days, 18 hours, 7 minutes ago
Monday, August 13, 2012 11:04:13 AM GMT Friday, August 10, 2012 3:31:32 PM GMT
We are now going into the second part of the tutorial. In this post, it will show you how to add a new custom expression for @PreAuthorize annotation. For example, I will show how to add a adminOnly() expression language to the security expression root. Step 1: Define your custom security expression root class You have to first create a new security expression root class. This class should be extended from the abstract class org.springframework.security.access.expression.SecurityExpressionRoot. Yo... (more)
category: Spring | clicked: 37 | comment | | source: borislam.blogspot.hk
tags: Spring framework, Spring Security
1
Pins

Java EE6 – Pojo Injection | Prait my Blog

posted by tracytracy 631 days, 14 hours, 13 minutes ago
Tuesday, July 24, 2012 7:25:52 PM GMT
OMG, I was looking the whole day why on earth my Pojos were not injected with the @Inject annotation. The little devils were always null and google had answers, but not the ones I needed. Then, thank god, I came over that article of Adam Bien: http://www.adam-bien.com/roller/abien/entry/simplestpossiblepojoinjectionexample You can inject objects by annotating a field with javax.inject.Inject:@Stateless public class Cart { @Inject OrderSystem ordering; @Inject CustomerNotification ... (more)
category: Spring | clicked: 0 | comment | | source: www.prait.ch
tags: Bean, cdi, EE6, Java, POJO, Tutorial
1
Pins

Java EE6 – Inject EJB into REST Service | Prait my Blog

posted by tracytracy 631 days, 14 hours, 22 minutes ago
Tuesday, July 24, 2012 7:17:08 PM GMT
Today I tried to inject a stateless local ejb into a REST Service in JBoss As7. It didn’t work at all. I tried the following things:Adding beans.xml into WEB-INFAdding @Stateless annotation to the ResourceUsing @Inject annotation with and without QualifierUsing @EJB annotationUsing Inteface/non-Interface Local Session bean   Noting helped me so far, so where I got at the end was the following code: package ch.prait.sample; import javax.ejb.Stateless; import javax.inject.Inject; import javax.naming.Ini... (more)
category: Web Service | clicked: 1 | comment | | source: www.prait.ch
tags: cdi, EE6, EJB, Java, REST Service, Tutorial
1
Pins

Java Evangelist John Yeary's Blog: JSF 2.x Injecting @ManagedBean Instances

posted by tracytracy 631 days, 14 hours, 38 minutes ago
Tuesday, July 24, 2012 7:00:34 PM GMT
Here are three ways to inject a @ManagedBean into another @ManagedBean. In Java EE 6, the preferred method is to use the @ManagedProperty annotation. You can however use JSF 2.x in Java EE 5. You must simply replace the current JSF implementation with Mojarra 2.x. If this is the case,  the use of annotations is not possible. Two techniques below will work on EE5 and EE6 applications. @ManagedPropertyThe @ManagedProperty annotation will work on Java EE 6 applications as noted. To use the annotation,  you... (more)
category: Java EE | clicked: 0 | comment | | source: javaevangelist.blogspot.in
tags: example, JavaEE, JEE6, JSF, Tutorial
1
Pins

Jeff's Blog: Java EE6 & Wicket - Article #6 – A Wrap Up

posted by tracytracy 631 days, 15 hours, 33 minutes ago
Tuesday, July 24, 2012 6:05:42 PM GMT
Welcome to the 6th in a series of detailed articles on Java EE6 & Wicket. If you haven’t already, please read the following previous articles before continuing.http://jeff-schwartz.blogspot.com/2011/03/java-ee6-wicket.htmlhttp://jeff-schwartz.blogspot.com/2011/03/java-ee6-wicket-article-1-requirements.htmlhttp://jeff-schwartz.blogspot.com/2011/03/java-ee6-wicket-article-2-creating.htmlhttp://jeff-schwartz.blogspot.com/2011/03/java-ee6-wicket-article-3-generating.htmlhttp://jeff-schwartz.blogspot.com/... (more)
category: Java EE | clicked: 0 | comment | | source: jeff-schwartz.blogspot.in
tags: @inject, Annotation, Java EE6, Wicket
1
Pins

Design Pattern – Observer (Part 01)

posted by tracytracy 634 days, 12 hours, 49 minutes ago
Saturday, July 21, 2012 8:49:46 PM GMT
uaihebertLeave a Comment Hello, how are you? Today we will talk about another Design Pattern, “Observer”. If you want to see the first design pattern that we studied you can see it here (Strategy). Let us do a fast review about all design pattern subject that we have studied so far: Design Pattern: Strategy  Studied Principles: Identify everything that changes and isolate it from what does not change.Program to an interface.Give priority to composition rather than inheritance. Let us work with the ... (more)
category: JAVA | clicked: 1 | comment | | source: uaihebert.com
tags: Design Pattern, Observer pattern
1
Pins

Design Pattern – Observer (Part 02)

posted by tracytracy 634 days, 12 hours, 50 minutes ago
Saturday, July 21, 2012 8:49:13 PM GMT
uaihebertLeave a Comment Hello, how are you? Let us keep talking about the Observer pattern. If you did not read the first post about this pattern, read it before reading the Part 2 about this pattern (Design Pattern – Observer (Part 01) ). How could we loose coupling of our classes? (Questioning of the last post Design Pattern – Observer (Part 01) ) A good way to loose this coupling would be: the class Listener receives a reference to its Notifier class. It is a very simple solution. Our Notifier c... (more)
category: JAVA | clicked: 0 | comment | | source: uaihebert.com
tags: Design Pattern, Observer pattern
1
Pins

JPA Queries and Tips

posted by tracytracy 634 days, 12 hours, 51 minutes ago
Saturday, July 21, 2012 8:47:50 PM GMT
There are several JPAs “how to” that we can find on the internet, here in this blog, that teaches how to do several tasks with JPA. Usually I see some people asking questions about Queries with JPA; usually to answer this kind of questions several links are provided trying to find a solution to the question. Until today I could not find a blog post that puts together a good subject about queries with JPA, tips about performance/utilization, source code to down... (more)
category: JAVA | clicked: 0 | comment | | source: uaihebert.com
tags: JPA
1
Pins

How to setup EJB3 development environment (Eclipse, JBoss 7.1)

posted by tracytracy 634 days, 12 hours, 54 minutes ago
Saturday, July 21, 2012 8:44:27 PM GMT
Environment SetupJava EEEJB3Nithya Vasudevan2,783 viewsNo CommentGD Star Rating loading... Environment UsedJDK 6 (Java SE 6)EJB 3.0Eclipse Indigo IDE for Java EE Developers (3.7.1)JBoss Tools – Core 3.3.0 M5 for Eclipse Indigo (3.7.1)JBoss Application Server (AS) 5.1.0 Installing JDK JDK should be installed with proper environment set up. Read this page for installing the JDK and setting up the environment.Installing Eclipse IDE We use Eclipse IDE through out this tutorial. If you need to install Ecli... (more)
category: JAVA | clicked: 0 | comment | | source: theopentutorials.com
tags: Eclipse, EJB, JBoss 7.1, Setup
1
Pins

toString(): Method 3

posted by tracytracy 634 days, 12 hours, 57 minutes ago
Saturday, July 21, 2012 8:42:22 PM GMT
All Java classes inherit a toString() defined in java.lang.Object that is used to generate a string representation of the object. For example, consider the following: (more)
category: JAVA | clicked: 0 | comment | | source: theopentutorials.com
tags: Java, String
1
Pins

Creating String object – Direct Method

posted by tracytracy 634 days, 12 hours, 58 minutes ago
Saturday, July 21, 2012 8:41:01 PM GMT
TutorialsJavaStringsNithya Vasudevan116 viewsNo CommentGD Star Rating a WordPress rating systemStrings are objects in Java.Just like creating other objects, you can create an instance of a String with the new keyword, like this,String s = new String();But since we will use Strings all the time, the most direct way to create a String is to write:String str = "theopentutorials.com";The above statement creates a new String object with the value “theopentutorials.com” and makes str refer to it. String i... (more)
category: JAVA | clicked: 0 | comment | | source: theopentutorials.com
tags: Direct Method, Object, String
1
Pins

Java Concurrency / Multithreading

posted by tracytracy 634 days, 13 hours, 3 minutes ago
Saturday, July 21, 2012 8:35:47 PM GMT
This article describes how to do concurrent programming with Java. It covers the concepts of parallel programming, immutability, threads, the executor framework (thread pools), futures, callables and the fork-join framework. (more)
category: JAVA | clicked: 0 | comment | | source: www.vogella.com
tags: concurrency, Java, Multithreading
1
Pins

How to work with transient variable in java (an example tutorial)

posted by tracytracy 639 days, 5 hours, 47 minutes ago
Tuesday, July 17, 2012 3:51:30 AM GMT
Transient keyword in java is comparatively less common than any other keyword like volatile.since transient is less common it becomes even more important to understand correct usage of it. In One word transient keyword is used in serialization process to prevent any variable from being serialized, so if you have any field which is not making sense to serialize, you can simply declare that as transient and it won't be serialized.In this article we will revise some basics likeWhat is transient variable in ... (more)
category: JAVA | clicked: 0 | comment | | source: javarevisited.blogspot.com
tags: Java, Keyword, Transient Fields
1
Pins

How to view Javadoc in Netbeans IDE 7.0

posted by tracytracy 639 days, 5 hours, 48 minutes ago
Tuesday, July 17, 2012 3:50:54 AM GMT
Recently I have downloaded Netbeans IDE 7.0 to learn its GUI builder Matisse and I was impressed with the changes I saw in the Netbeans from  my last use of it on 2007. I was a hardcore Netbeans fan when I was developing mobile application using J2ME and Netbeans integrated environment with WTK, Profiler and Network Monitor just rocks and on top of that they had conditional compilation feature based on type of platform you   were working like you could maintain your code easily even if you are using devi... (more)
category: JAVA | clicked: 0 | comment | | source: javarevisited.blogspot.com
tags: IDE, Javadocs, NetBeans
Previous 1 2 3 4 5 6 7 8 9 10 11 Next