[JBoss Seam] - Re: Out of Memory Leaks
by tom_goring
Hi,
We had this issue in production.
For us it was a bug in hibernate and java assist when using remote interfaces to the SLSB's.
The fix is to replace javaassist.jar and hibernate jars in jboss.
We used javaassist 3.4 and hibernate 3.2.3.ga.
Hope this helps.
Here is our patch script.
| <copy file="../JNET-LIBS/jboss-patch/javassist.jar" todir="${jboss.home}/client"/>
| <copy file="../JNET-LIBS/jboss-seam-1-1-6-lib/hibernate3.jar" todir="${jboss.home}/client"/>
| <copy file="../JNET-LIBS/jboss-seam-1-1-6-lib/hibernate-annotations.jar" todir="${jboss.home}/client"/>
| <copy file="../JNET-LIBS/jboss-seam-1-1-6-lib/hibernate-commons-annotations.jar" todir="${jboss.home}/client"/>
| <copy file="../JNET-LIBS/jboss-patch/javassist.jar" todir="${jboss.home}/server/default/lib"/>
| <copy file="../JNET-LIBS/jboss-seam-1-1-6-lib/hibernate3.jar" todir="${jboss.home}/server/default/lib"/>
| <copy file="../JNET-LIBS/jboss-seam-1-1-6-lib/hibernate-annotations.jar" todir="${jboss.home}/server/default/lib"/>
| <copy file="../JNET-LIBS/jboss-seam-1-1-6-lib/hibernate-commons-annotations.jar" todir="${jboss.home}/server/default/lib"/>
| <copy file="../JNET-LIBS/jboss-seam-1-1-6-lib/hibernate-entitymanager.jar" todir="${jboss.home}/server/default/lib"/>
| <copy file="../JNET-LIBS/jboss-seam-1-1-6-lib/hibernate-validator.jar" todir="${jboss.home}/server/default/lib"/>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039784#4039784
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039784
19 years
[JBoss Portal] - setting a security for individual portlet instances
by mohan_chaudhari
Hi,
I am using jboss-portal-2.6-BETA1. Basically i want that user which is not having a role of admin is not able to add some default portlets like CMSportlet,role portlets to his dashboard so
I try to set security for individual portlet instances so i login as admin
and goto management portlet. After selecting security
link for proper portlet instance a window opens which has checkboxes for user roles but after selecting proper checkbox there is no update button so the changes i made were lost.
eg: I want to change the security of CMSportletInstance so that user (except admin role) can not be able to view or add CMSportletInstance in his dashboard.
I also try to put
<security-constraint>
<policy-permission>
<role-name>Admin</role-name>
<action-name>view</action-name>
</policy-permission>
</security-constraint>
for CMSportletInstance in portlet-instances.xml located at jboss-portal.sar\portal-core.war\WEB-INF which creates instances of these portlets. But it wont work.
Any suggections !!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039781#4039781
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039781
19 years
[JBoss Seam] - Re: Can not persist EJB3 Timer since Jboss 4.2.0cr2 + seam
by gena777
Hello, i'm using the seam-wrapper for EJB3 timers via @Asynchronous. In a simple case it works fine:
Timer iface:
@Local
| public interface TimerTester {
| @Asynchronous
| public abstract Timer say(String what, @Expiration
| Date expireTime, @IntervalDuration
| Long intervallDuration, @Duration Long duration);
| }
Timer Bean:
@Name("timerTester")
| @AutoCreate
| @Stateless
| public class TimerTesterImpl implements TimerTester{
| @In
| Timer timer;
| @Resource
| TimerService timerService;
| public Timer say(String what, Date expireTime, Long intervallDuration, Long duration) {
| System.out.println(what);
| return timer;
| }
| }
controller (stateless bean with local iface):
public void sayHello() {
| Timer timer =timerTester.say("hello", new Date(System.currentTimeMillis()+1000), 10000l,10l);
| log.info(timer, null);
| }
Page
| <h:commandLink value="Say Hello!" action="#{sampleController.sayHello}"/>
My case, which doesn't work anymore:
SFSB:
| ...
| @In(create = true)
| OfferLifecycle offerLifecycle;
| ...
| if (persistOffer()) {
| if (schedule) {
|
| timer = offerLifecycle.scheduleOfferStart(inOffer.getId(), inOffer.getStartTimestamp());
|
| debug("offer start pending with timer ");
|
| timer = offerLifecycle.scheduleOfferEnd(inOffer.getId(), inOffer.getEndTimestamp());
|
| debug("offer end pending with timer");
| }
Timer bean:
@Local
| public interface OfferLifecycle {
| @Asynchronous
| public abstract Timer scheduleOfferStart(Long offerId, @Expiration
| Date startTime);
| @Asynchronous
| public abstract Timer scheduleOfferEnd(Long offerId, @Expiration
| Date expireTime);
| }
@Stateless
| @Name("offerLifecycle")
| public class OfferLifecycleBean implements OfferLifecycle {
|
| @In(create = true)
| OfferDAO offerDAO;
| @In
| Timer timer;
| @Resource
| TimerService timerService;
|
| public Timer scheduleOfferStart(Long offerId, Date startTime) {
| offerStart(loadOffer(offerId));
| return timer;
| }
| public Timer scheduleOfferEnd(Long offerId, Date expireTime) {
|
| offerEnd(loadOffer(offerId));
| return timer;
| }
| private Offer loadOffer(Long offerId) {
| return offerDAO.findById( offerId,
| LockMode.UPGRADE);
| }
persistOffer() has flushed the session (because of flush mode manual)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039778#4039778
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039778
19 years