j2ee

How to make a spam tester

In my project I need to make a spam tester to check the spam score of the mails prepared to be sent. When I searched, I found Spam Assassin, which they say is used as sapm filters in many mail servers. Can I create a spam tester using Spam Assassin? Another option I found is one Litmus API, which is a paid service. Is there any options o...

How to use com.sun.security.auth.module.LdapLoginModule in J2EE, example.

I am using JDeveloper 10.1.3.4 as my IDE and OC4J 10.1.3 as AppServer. We have Novell eDirectory for LDAP. I would like to use this new API of Java 6. Can you help me provide example / usage of it for my web applicatin that requires login to the application. ...

J2EE: Default values for custom tag attributes

So according to Sun's J2EE documentation (http://docs.sun.com/app/docs/doc/819-3669/bnani?l=en&amp;a=view), "If a tag attribute is not required, a tag handler should provide a default value." My question is how in the hell do I define a default value as per the documentation's description. Here's the code: <%@ attribute name="visible" ...

Which to learn first: Java/J2EE or .NET ?

Possible Duplicate: Should I choose to learn Java or .NET? Is there an advantage to learning Java or .NET first? (ie. would the transition from J2EE to .NET be significantly easier than the reverse?) Do you think that one platform has overtaken the other in terms of industry use? (feel free to be as biased or as objective a...

seeking j2ee books recommendation

Hi, I'm thinking of a serious training in j2ee and found there are too many books to choose from. Could you kindly share your insights as a practicing professional in this respect? For example, some people in other post recommend "SCWCD Exam Study Kit Second Edition Java Web Component Developer Certification Hanumant Deshmukh, Jignesh...

Looking for design patterns to isolate framework layers from each other

Hi, I'm wondering if anyone has any experience in "isolating" framework objects from each other (Spring, Hibernate, Struts). I'm beginning to see design "problems" where an object from one framework gets used in another object from a different framework. My fear is we're creating tightly coupled objects. For instance, I have an appli...

How easy would it be to refactor a small JSP/Servlet/JDBC project to SpringMVC/Hibernate

With reference to this post, I am considering starting a new web-based Java project. Since I don't know Spring/Hibernate I was concerned if it's a bad plan to start learning them while creating a new project, especially since it will slow down the early development. One idea I had was to write a prototype using tech I do know, namely JS...

What do I need to know before working on an IM application?

I'm looking into building an IM-type application using Java stack (for the server at least). I'd be interested to see any information/advice on how applications like Skype/AIM/MSN work, as well as know any technologies/APIs that might be relevant. Without giving away the idea itself, it's perhaps more akin to Google Wave than Skype, but ...

Building a J2EE dev/test setup on a single PC

It's been a while since I did Java work, and even then I was never responsible for starting a large project from the very start... there were test/staging/production systems already running, etc, etc. Now I am looking to start a J2EE project from scratch on my trusty workstation, which has never been used for Java development and runs W...

Please help me with java ee and eclipse tutorial

im new to java ee platform and im having a hard time searching for a book for java ee that uses eclipse IDE. So please can you tell me any book that involves java ee and eclipse for beginners. and some tips from you how to learn this stuff and a follow up question, is java EE still good 20 years from now? ...

deploying MDB dynamically in jboss

I'm using jboss 4.2 AS and I want to dynamically undeploy an MDB, what is the way to do it ? The MDB is defined using EJB 3.0 (@MessageDriven annotation) which means that the jboss deploys it automatically once it detects it in the classpath. I want to have control on whether the MDB is deployed or not. maybe utilizing JBoss specific MBe...

why we can't initialize a servlet using constructor itself?

Why do we have to override init() method in Servlets while we can do the initialization in the constructor and have web container call the constructor passing ServletConfig reference to servlet while calling constructor? Ofcourse container has to use reflection for this but container has to use reflection anyway to call a simple no-arg ...

Contexts of data storage in EJB3 (transactional, request, session)

Limits: JBoss AS 5. Business logic based on stateless EJB3. Some methods very long calculate data process. Client based on Swing. I want to: Various context of data storage (transactional, request, session context). Caching the result of calling methods in EJB3 (in context). Emulate pure function of the functional programming (M...

How to convert gp4 file to pdf

There is any opensource convertor available or java api for converting gp4 file to pdf Thanks in advance ...

Is there an Open Source J2EE Server that works with IIS 7

I have a (old) web app that is using Jrun and IIS. I would like to replace JRun with something free and OS. Can you recommend something that I can just install and copy the app jar files over and be up and running? ...

Which Java MVC Framework best aligns with the Web Application Security Framework Manifesto?

Has anyone in the stackoverflow community ever studied the security characteristics of various J2EE frameworks? I would love to understand what framework best aligns with the Web Application Security Framework Manifesto http://labs.securitycompass.com/papers/secure-web-application-framework-manifesto-v0-08.pdf ...

URL Routing in Java

Coming from other web frameworks, I'm used to being able to map parts of a URL to method parameters. I know that web.xml provides a way to map an entire URL to a Servlet but is there a way to get more features out of this, such as mapping pieces of the URL to method parameters? ...

Talking J2EE 1.4 with JEE 5

Is it possible to use Enterprise Bean from JEE 5 server application in client application written in J2EE 1.4. What about difference in interfaces in this two technologies? ...

Memory Profiling: How to detect which application/package is consuming too much memory

Hi, I have a situation here at work where we run a JEE server with several applications deployed on it. Lately, we've been having frequent OutOfMemoryException's. We suspect some of the apps might be behaving badly, maybe leaking, or something. The problem is, we can't really tell which one. We have run some memory profilers (like Your...

Is it possible load all properties files contained in a package dynamically? i.e. MyClass.class.getResource('*.properties');

I am familiar with obtaining the contents of a properties file given the name of the file, and obviously MyClass.class.getResource('*.properties') will not work, but how can I obtain a list of ALL the properties files located in the same package as my class? ...