把Session session = Session.getDefaultInstance(props, null);
改成Session session = Session.getDefaultInstance(props);
试试吧!
改成Session session = Session.getDefaultInstance(props);
试试吧!
解决方案 »
- 求助了。Spring动态定时器。。。
- NoSuchMethodError 大家帮忙看看!
- Spring中Hibernate jdbc同时操作导致数据读取不出来
- 加载jdbc驱动时异常
- 面试题目讨论!!
- 关于beanutils.copyproperties的问题
- 远程调用EJB
- 求助一个Struts模块划分的问题
- select方法如何使用?
- 请问各位大侠:如何在页面中设置,使当不能显示APPLET时候,自动让用户去我们自己的tomcat服务器(局域网内)而不要从sun站点上下载JAVA
- 做了一段时间的JSP开发啦,现在想学EJB,请各位指点一二,要从什么地方入手
- 将EJB发布成soap服务成功,然后用客户端去调用出现问题,在线等!!!
protected boolean mailSave = false;
protected Store mailStore = null;
protected Folder mailFolder = null;
protected Session mailSession = null;
protected String mailHost = null;
protected int mailPort = 110;
protected String userName = null;
protected String userPass = null; public MailReceiver(String mail_host, int mail_port, String username, String password, boolean is_save)
{
this.mailHost = mail_host;
this.mailProperties.put("mail.smtp.host", mail_host);
this.userName = username;
this.userPass = password;
this.mailSave = is_save;
this.mailPort = mail_port;
this.mailSession = Session.getDefaultInstance(mailProperties, null);
}