Sometimes when you get an exception like this:
javax.naming.NameNotFoundException: Name "comp/UserTransaction" not found in context "java:"
you want to see what entries are visible in JNDI. No problem, place this code somewhere near lookup problem code location:
InitialContext ic = new InitialContext();
NamingEnumeration it = ic.list("java:comp");
System.out.println("JNDI entries:");
while (it.hasMore()) {
NameClassPair nc = it.next();
System.out.println("JNDI entry: " + nc.getName());
}
You will see all JNDI names availailable on console then (you can use your logging library instead of course).
Oops! Someone forgot to renew a SSL certificate

Recently I was asked to integrate WXS (Websphere Extreme Scale, commercial cache implementation from IBM) into existing WPS (Websphere Process Server)-based project to implement read-only non-distributed cache (one independent cache instance per JVM). The idea is to plug cache implementation using 2nd level cache interfaces defined by Hibernate.
I plugged in the objectgrid.jar into hibernate configuration:
<property name="cache.provider_class">
com.ibm.websphere.objectgrid.hibernate.cache.ObjectGridHibernateCacheProvider
</property>
(more…)
When your customer enters your website they do not want to make their passwords / credit card information to be visible for everyone (sniffing local network or one of routers in the way). That’s why SSL (Secure Socket Layer) was born. Is simple words it wraps HTTP connection in a secure tunnel.
Another story is man-in-the-middle attack possibility or faking DNS servers response. You (as customer opening the webpage) should ensure that you are connecting to website you intended to (fake bank websites are big risk for your money, so it’s important). That’s why certification is closely bundled with connection encryption.
I’ll show you how obtain and install SSL certificate under Lighttpd web server to make your website more trustworthy for your customers.

(more…)
System rezerwacji med.aplikacja.info pozwala rezerwować wizyty pacjentów u specjalistów poprzez Internet. Dotychczas w pierwszym kroku pacjent wybierał specjalistę by móc zarezerwować wizytę. Aby ułatwić wybór w przypadku wielu specjalistów system rezerwacji został rozszerzony o możliwość wyboru usług.
- Usługi mogą mieć różny czas trwania (i taki czas będzie rezerwowany w kalendarzu specjalisty)
- Można przypisać usługi do różnych specjalistów
Uruchomienie mechanizmu jest bardzo proste: po pierwsze definiujemy usługi i przypisujemy je do wybranych lekarzy (zakładka “Usługi”).
(more…)