john milr

+ Follow
since May 31, 2006
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by john milr

Thank you! James.

I have still some doubts:

In my view the ServiceImplementer classes should access DAOs & BOs.
By using those it should generate response, & the response is sent to Action & Jsp, using DTOs.
It means, it is ServiceImplementer classes which generate DTOs.

BOs should be implemented with the concept of loose coupling & tight cohesion.
Hi! Ulf,

Thank you very much!!
I just removed the semicolon from the environment variable, and now the out put is:

Command Prompt:

C:\>cd "Program Files"

C:\Program Files>cd james-2.3.1

C:\Program Files\james-2.3.1>cd bin

C:\Program Files\james-2.3.1\bin>run.bat
Using PHOENIX_HOME: C:\Program Files\james-2.3.1
Using PHOENIX_TMPDIR: C:\Program Files\james-2.3.1\temp
Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_06

Phoenix 4.2

James Mail Server 2.3.1
Remote Manager Service started plain:4555
POP3 Service started plain:110
SMTP Service started plain:25
NNTP Service started plain:119
FetchMail Disabled

15 years ago

I am trying to install & configure James Server.

I am following the process given in:

When I try to start the server using the run.bat command, I am getting response: "The system cannot find the path specified."
What is the problem?

In content from the above URL instructs to stop the server...! How to stop? What is the command to stop it.

Please help... I am providing the command line view.

Command Prompt:

C:\>cd "Program Files"

C:\Program Files>cd james-2.3.1

C:\Program Files\james-2.3.1>cd bin

C:\Program Files\james-2.3.1\bin>run.bat
Using PHOENIX_HOME: C:\Program Files\james-2.3.1
Using PHOENIX_TMPDIR: C:\Program Files\james-2.3.1\temp
Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_06;
The system cannot find the path specified.
C:\Program Files\james-2.3.1\bin>

15 years ago
I want to send mail through my web application:

this is my trial code:

I also extended Authenticator:

This code is throwing Exception:

Here is the stack trace:

javax.mail.MessagingException: [EOF]
at com.sun.mail.smtp.SMTPTransport.issueCommand(
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(
at com.sun.mail.smtp.SMTPTransport.mailFrom(
at com.sun.mail.smtp.SMTPTransport.sendMessage(
at javax.mail.Transport.send0(
at javax.mail.Transport.send(
at com.contestdesign.BusinessDeligate.getAuthenticated(
at com.contestdesign.controller.common.LoginAction.execute(
at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(
at org.apache.struts.chain.commands.AbstractExecuteAction.execute(
at org.apache.struts.chain.commands.ActionCommandBase.execute(
at org.apache.commons.chain.impl.ChainBase.execute(
at org.apache.commons.chain.generic.LookupCommand.execute(
at org.apache.commons.chain.impl.ChainBase.execute(
at org.apache.struts.chain.ComposableRequestProcessor.process(
at org.apache.struts.action.ActionServlet.process(
at org.apache.struts.action.ActionServlet.doPost(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11Processor.process(
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(
at org.apache.tomcat.util.threads.ThreadPool$
at Source)

I need help to find the problem.....

Thanks Ilja!!

I think I have few reasons:

1) To separate the business layer & presentation layer.
2) Client should not interact directly with the components in Business tier & Integration tier.
3) Later on I want to implement ORM. Then I can use the BOs.
4) DTO can aggregate data from DAOs, Application Service & BOs.
5) I have no idea but I may need to update & upgrade my application more frequently, and perhaps need to implement load balancing & clustering.

I really need some guidance.
Hi! I am developing a struts based application.

I don't want to use EJB.
Using JDBC for connection. Using Connection Pooling.

For separating the business tier from the view tier, using an External Interface(BusinessDeligate class).
For all services, using ServiceImplementer classes. Saparating the data access using DAO.
BO to loosely couple the business objects.
ServiceImplementer classes can access BOs & DAOs.
We use DTO to separate view layer from business layer.

My question is:

Where to create the DTO & which classes mentioned above can access DTO?
Where to put the state of BO in to DTO?
Can we access the DTO in Jsp?

DTO - Data Transfer Object.
BO - Business Object.
DAO - Data Access Object.
DTO - Data Transfer Object.
Business Deligate - Service Facade.
Service Implementer - Application Service.

Please help!!
Masoud can you explain how I can check the memory leak.

Thanks for the information.
15 years ago
Thank you Peter. This link is really helpful.
15 years ago

Can any buddy help me to know-

How to come out of a situation like heap memory full?
Is it possible to allot more memory space?
What are the alternatives to solve the first problem?

Can any one throw light on Load Balancing & Clustering!!
Any tutorial will be a great help.
15 years ago
Hi! Ujjwal,

Great help!
Thank you very much!!
15 years ago
I have a JBoss project & I want to open the project using Eclipse.
Please help me to configure it with the Eclipse.

Any proper tutorial or link would be a great help.
15 years ago

I developed a Servlet/JSP based application. Trying to implement Connection Pooling. While searching I came across the JNDI. I am curious to learn, configure & use it.

Please suggest me some good, clear readings on this subject.

I have tried searching the connection pooling related content and discussion but no relevant information found.

In the mean while, I get some connection pooling related code in "Java Servlet Programming by Mr.Jason Hunter, O'Reilly 2ndEdition, Indian Print, Page No. 286-287. Will it address the desired results with all of the security concern s?
15 years ago