[Messaging, JMS & JBossMQ] - activationConfig for MailListener
by drab
Hi,
I have an MDB that should read incoming mails:
@MessageDriven(activationConfig = {
| @ActivationConfigProperty(propertyName = "mailServer", propertyValue = "mail.com"),
| @ActivationConfigProperty(propertyName = "mailFolder", propertyValue = "Bounce"),
| @ActivationConfigProperty(propertyName = "storeProtocol", propertyValue = "imap"),
| @ActivationConfigProperty(propertyName = "userName", propertyValue = "me"),
| @ActivationConfigProperty(propertyName = "password", propertyValue = "password") })
| @ResourceAdapter("mail-ra.rar")
| @Name("bouncingMailListener")
| public class BouncingMailListenerMDB implements MailListener {
but I get the error message "Failed to execute folder check". It looks like he can't even get far enough to check folders because when I use an incorrect password, I get the same error message.
Now what I think I'm missing is the SSL encryption. How do I specify that I'm using ssl, and how do I specify the port? Unfortunately I could nowhere find a list of activationConfigProperties to check. Anyone has a link to a list with the available properties?
thanks for any help
Dirk
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058942#4058942
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058942
18Â years, 9Â months
[JBoss Seam] - Seam 2.0.0Beta1 and nested conversations
by hstang
I just upgraded to Seam 2.0.0B1 and my app that deals with nested conversations is broken. It was working with 1.3.0A.
Scenario:
--
I have a web page w1, that links to another web page w2. Getting to w1 will start a long-running conversation c1. Getting to w2 from w1 will start a nested conversation c2. w1 uses Seam's EntityHome to load and edit a particular entity e1 given its id. w2 does the same thing as w1 but for another entity e2.
Problem after upgrading:
--
w2 does not load e2 any more
Investigation:
--
When loading w2, I verified the entity home's setId() is being called, and that the instance is set to null, which is expected since it'll prepare for retrieving a new instance from DB the next time getInstance() is called. However, I'm finding that when getInstance() is called, the instance is, for some reason, not null anymore so e2 will not be loaded. I'm stuck here.
Would appreciate if anyone have any insight to this problem. Below is a contrived example to demonstrate this:
## components.xml
| <factory name="department" value="#{departmentHome.instance}" auto-create="true"/>
| <fwk:entity-home name="departmentHome" entity-class="com.mxnmedia.siteaudit.glue.Department"/>
|
| <factory name="employee" value="#{employeeHome.instance}" auto-create="true"/>
| <fwk:entity-home name="employeeHome" entity-class="com.mxnmedia.siteaudit.glue.Employee"/>
|
## Employee.java (e1), Department.java (e2)
| @Entity
| public class Department {
| @Id
| private Long id;
| private String name;
| }
|
| @Entity
| public class Employee {
| @Id
| private Long id;
| @OneToOne
| @JoinColumn(name = "departmentid")
| private Department department;
| private String name;
| }
|
# employee.page.xml
| <begin-conversation join="true"/>
| <param name="id" value="#{employeeHome.id}" converterId="javax.faces.Long"/>
|
| <!-- THIS LINE MUST BE HERE; IF TAKEN OUT, IT WORKS!! -->
| <action execute="#{employeeHome.id}" if="#{departmentHome.managed}"/>
|
## employee.xhtml (w1)
| <!-- THIS APPEARS FINE -->
| <h:outputText value="#{employee.name}"/>
|
| <s:link view="/department.xhtml" value="Go w2" propagation="nest">
| <f:param name="id" value="1"/>
| </s:link>
|
|
# department.page.xml
| <begin-conversation join="true"/>
| <param name="id" value="#{departmentHome.id}" converterId="javax.faces.Long"/>
|
## department.xhtml (w2)
| <!-- DOES NOT SHOW ANYTHING ANYMORE -->
| <h:outputText value="#{department.name}"/>
|
w2 loads fine if you do "http://localhost:8080/myapp/department.seam?id=1"
but it won't load if you go from w1 to w2 where w1 is called by
"http://localhost:8080/myapp/employee.seam?id=1"
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058941#4058941
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058941
18Â years, 9Â months
[JBoss Seam] - Re: Seam 2.0 BETA
by DavidInTx
I don't recall seeing anything indicating that it won't run on Tomcat 5.5--you just have to follow the instructions in the documentation for getting it to run on JBoss 4.0.5 (i.e. copying 4 specific jars to common/lib) in addition to following the instructions for adding JBoss Embedded to your Tomcat installation. When I do that, the booking example deploys properly.
There is one thing in the change from including the microcontainer in the war file (like Seam 1.3.0.ALPHA did) to including JBoss Embedded in your Tomcat installation (like Seam 2.0.0.BETA expects) that does introduce a regression: JBoss Embedded doesn't seem to like spaces in the pathname to Tomcat, so if you try to use JBoss Embedded with Tomcat in its default windows location ("C:\Program Files\Apache Software Foundation\Tomcat 5.5") it will fail. Just install Tomcat to a path with no spaces, and you'll be fine.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058937#4058937
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058937
18Â years, 9Â months
[JBoss Seam] - Re: Multiple WARs ind one EAR... SSO?
by dajevtic
JBoss SSO sounds great. I'll look into it, thanks, Gavin.
If now, due to some incompatibility circumstances, I would need 2 WARs, would it be possible?
We have one app that uses JSPs and the new one that uses facelets, so I would have to go with 2 WARs as an intermediate solutions, while joining Jboss SSO, Seam and my apps.
If your plans are still in the (far) future, I could get started right away and share my code so that you do have a basis.
By the way, did you by any chance get my email a few days ago or did it land in the junk folder?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058933#4058933
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058933
18Â years, 9Â months
[JBoss Seam] - Seam Remoting java.lang.NoClassDefFoundError: com/sun/el/Exp
by p2auljr
I am testing the seam remoting feature on JBOSS 4.2 with seam 1.2.1 ga. I have a bean with bijection annotations that use el expressions to inject the proper object. I get the following error when a remote method is called.:
Caused by: java.lang.NoClassDefFoundError:com/sun/el/ExpressionFactoryImpl
at org.jboss.seam.core.Expressions$1.getValueExpression(Expressions.java:110)
at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:73)
at org.jboss.seam.Component.getValueToInject(Component.java:1877)
at org.jboss.seam.Component.injectAttributes(Component.java:1368)
at org.jboss.seam.Component.inject(Component.java:1195)
at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:37)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
at org.jboss.seam.interceptors.ConversationInterceptor.aroundInvoke(ConversationInterceptor.java:63)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
at sun.reflect.GeneratedMethodAccessor136.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
For example:
@Name("test")
public class Test implements Serializable
{
@In(#{someBean.property})
@WebRemote
public void test()
{
// some code
}
}
Is this a bug or am I not supped to use el-expressions and/or bijection for beans that are to be accessed remotely?
Thank you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058927#4058927
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058927
18Â years, 9Â months