[JBoss Seam] - Re: PDF - is there a way?
by Kragoth
OK,
I have tried everything at CONVERSATION scope but the PDF document will never be able to find the variable. I've tried the BEAN, and all the OUT variables on CONVERSATION but that does not seem to change the outcome.
As I stated in my original post the only way I get any data is if I outject to SESSION scope.
@thejavafreak
I can't see how changing the scope to EVENT would help as EVENT scope is even shorter then conversation, but I'll give it a go.
@norman.richards
The PDF works fine if I take out all reference to my outjected values.
And I believe you that the PDF is stored in the conversation as I see the conversation ID in the url to the pdf, but for some reason whatever the process is for generating the pdf the conversation variables are not available. I'll keep playing around and stepping through the code..... problem is I'm not entirely sure where it all goes wrong so....it's taking me a long time to make progress.
I believe this is probably a good case for doing some more in depth examples of using the seam pdf functionality, as it is the itext example does not work out of the box if I run the ant targets I still can't run the app in tomcat so not sure what's going on there. It just hangs forever on the index page. I don't get any errors or anything.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106195#4106195
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106195
18 years, 8 months
[EJB/JBoss] - NameNotFound Exception error when stateless EJB deployed in
by gopal_mk234
Hi,
I am deploying EJB3.0 stateless session bean in JBoss on Linux.
But, client is getting JNDI NameNotFoundException when trying to lookup.
Looks like only the local interface is bind to JNDI tree when deployed on Linux.
jboss-4.2.1.GA
These are the classes:
ExternalSearchService.java
package com.attomic.infoservices.common;
import java.util.List;
import java.util.Map;
import javax.ejb.Remote;
@Remote
public interface ExternalSearchService {
public List search(String args,int linkCount,String searchSource,Map params)throws ExternalSearchServiceException;
}
ExternalSearchServiceBean.java
package com.attomic.infoservices.services;
import java.util.List;
import java.util.Map;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import org.jboss.annotation.ejb.Clustered;
import org.jboss.annotation.ejb.RemoteBinding;
import com.attomic.infoservices.common.ExternalSearchService;
import com.attomic.infoservices.common.ExternalSearchServiceException;
import com.attomic.infoservices.external.ExternalSearchInterfaceFactory;
@Clustered
@Stateless
@Remote ({ExternalSearchService.class})
@RemoteBinding (jndiBinding="services/ExternalSearchServiceRemote")
public class ExternalSearchServiceBean implements ExternalSearchService{
public List search(String args,int linkCount,String searchSource,Map params)throws ExternalSearchServiceException{
try{
return ExternalSearchInterfaceFactory.search(args, linkCount, searchSource, params);
}catch(Throwable t){
throw new ExternalSearchServiceException(t);
}
}
}
deployed jar file contains:
ExternalSearchService.class
ExternalSearchServiceBean.class
ExternalSearchServiceException.class
SearchResultElement.class
please let me know if you need the jboss log for reference.
This is intended to work in a Jboss cluster. It works fine on Windows XP but not on Linux.
Regards
Gopal
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106190#4106190
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106190
18 years, 8 months