john milr

Greenhorn
+ Follow
since May 31, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
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
Hi!

I am trying to install & configure James Server.

I am following the process given in: http://james.apache.org/server/2.3.1/installation_instructions.html

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(SMTPTransport.java:1481)
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1512)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1054)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:634)
at javax.mail.Transport.send0(Transport.java:189)
at javax.mail.Transport.send(Transport.java:118)
at com.contestdesign.model.services.LoginRegisterAuthenticateImpl.getAuthenticated(LoginRegisterAuthenticateImpl.java:45)
at com.contestdesign.BusinessDeligate.getAuthenticated(BusinessDeligate.java:11)
at com.contestdesign.controller.common.LoginAction.execute(LoginAction.java:30)
at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown 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
Hi!

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
Hi!

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.
Hi!

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