Commit 35b0b056 by Tuomas Riihimäki

Sähköpostijuttuja.

1 parent 9d9eefd1
......@@ -25,9 +25,10 @@ import fi.insomnia.bortal.util.MailMessage;
*
*/
@MessageDriven(
activationConfig = { @ActivationConfigProperty( propertyName = "destinationType", propertyValue = "javax.jms.Queue" ) },
activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue") },
mappedName = "jms/mailque")
public class MailMessageBean implements MessageListener {
@Resource(name = "mail/lanbortal")
private Session mailSession;
private static final Logger logger = LoggerFactory.getLogger(MailMessageBean.class);
......@@ -42,6 +43,7 @@ public class MailMessageBean implements MessageListener {
/**
* @see MessageListener#onMessage(Message)
*/
@Override
public void onMessage(Message message) {
MailMessage mailmsg = null;
......
package fi.insomnia.bortal.beans.mail;
import javax.ejb.Local;
@Local
public interface MailBeanLocal {
}
......@@ -14,6 +14,7 @@ public class GenericEntity extends EntityEquals implements ModelInterface<Intege
private static final long serialVersionUID = -9041737052951021560L;
public static final String ID_COLUMN = "id";
@Id
@Column(name = ID_COLUMN, nullable = false)
@GeneratedValue(strategy = GenerationType.IDENTITY)
......
......@@ -47,7 +47,6 @@ public class User extends GenericEntity {
private static final long serialVersionUID = -1632200627103418206L;
@Column(name = "created", nullable = false)
// , columnDefinition = "timestamptz default now()")
@Temporal(TemporalType.TIMESTAMP)
private Calendar created = Calendar.getInstance();
......
......@@ -23,14 +23,19 @@
</h:inputText>
<h:outputLabel value="#{i18n['bill.billNumber']}:" />
<h:inputText value="#{billEditView.bill.billNumber}" />
<h:outputLabel value="#{i18n['bill.addr1']}:" />
<h:inputText value="#{billEditView.bill.addr1}" />
<h:outputLabel value="#{i18n['bill.addr2']}:" />
<h:inputText value="#{billEditView.bill.addr2}" />
<h:outputLabel value="#{i18n['bill.addr3']}:" />
<h:inputText value="#{billEditView.bill.addr3}" />
<h:outputLabel value="#{i18n['bill.addr4']}:" />
<h:inputText value="#{billEditView.bill.addr4}" />
<h:outputLabel value="#{i18n['bill.addr5']}:" />
<h:inputText value="#{billEditView.bill.addr5}" />
......
......@@ -42,6 +42,7 @@ public class UserView extends GenericCDIView {
private CroppedImage croppedImage;
private User user;
@Inject
private transient Conversation conversation;
......@@ -56,6 +57,7 @@ public class UserView extends GenericCDIView {
private boolean canSave = false;
private String password;
private String passwordcheck;
@EJB
private CardTemplateBeanLocal cardBean;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!