[jboss-user] [JBoss Portal] - portlet class name from a portalNode ??

2009-06-12 Thread je.a.le
hi, I use the portalNode/property system of jbp to save some specific informations for portlet instance. I also use my own node tree browser too, authentificated user can use to set/update some properties (No regular use have access to jbp admin pages, never...). When facing a

[jboss-user] [EJB/JBoss] - Re: dependence of libraries - the wide scope of EAR

2009-06-05 Thread je.a.le
Your ear tree doesn't look right (you should use netbeans...) Here one : zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/META-INF zip:/opt/jboss-4.2.1.GA/server/all/deploy/WebTv.ear/META-INF/application.xml

[jboss-user] [EJB/JBoss] - Re: Accessing JBoss service from EJB

2009-06-05 Thread je.a.le
vlotarev wrote : Dear guru! | | Coudl you please tell me how is it possible to access JBoss service (POJO marked with @Service and @Local/@Remote) from EJB? Is it possible just to inject such bean? What will be a JNDI name of a @Service POJO? | | Thanks in advance, | Vadim from an

[jboss-user] [JBoss Portal] - Re: Problem with PortletSession

2009-05-06 Thread je.a.le
you should look for PortalEventListener. when user login, logout or session expire, your listener will get a callback. You can set your portalsession attribute here. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4228867#4228867 Reply to the post :

[jboss-user] [JBoss Portal] - Re: Handling PortalSessionEvent.SESSION_DESTROYED event

2009-05-06 Thread je.a.le
Why not using a portalsession attribute ?? login - set logout or session expired - unset in your portlet, redirect to the appropriate jsp according of this attribute state. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4228871#4228871 Reply to the post :

[jboss-user] [Installation, Configuration DEPLOYMENT] - dependencies between ear at cold start

2009-05-02 Thread je.a.le
hi, I'm facing dependencies issues between several ear. When I deploy the ear in a proper order, everything fine, not when jboss starts ; It sends some class loading issues,of course, it wasn't suppose to load this application before some others :-). jboss keeps ignoring my @depend annotation

[jboss-user] [JBoss Portal] - Re: Portlet, Servlets, cross context

2009-04-30 Thread je.a.le
you can't share session (data) between application. Since you using servlet, you can't use portalsession neither. If i understood, you're using jbossportal as container ( and logging solution) and an external application - on the same server - must get identification before processing. You

[jboss-user] [JBoss Portal] - Re: Add portlet display name programatically.

2009-03-13 Thread je.a.le
Override the getTitle method in the portlet code, and return your own portlet's title. Nota : getTitle is called first, and outside any processAction/doView operation, depending on how you get your data, you may have to do it twice. If the name only change only according to page node, you can

[jboss-user] [JBoss Portal] - Re: Tracking CMS User Activity

2009-01-09 Thread je.a.le
a simple solution would be to add some javascript code in your portlet / jsp to some external log tool, like google analytics. If you really want to do your own stat, you should look at listener. you don't select listener. You instance them. Look at jboss portal api (somewhere page 104). You

[jboss-user] [EJB/JBoss] - Re: pb : having a jboss service depending on jms or NamingCo

2008-12-04 Thread je.a.le
jaikiran wrote : How about doing this: | - Create a *-service.xml to define/configure the queue. For ex: myqueue-service.xml | - Package this myqueue-service.xml at the root of the EAR. | - Create a jboss-app.xml under the META-INF folder of the EAR with the following contents: | |

[jboss-user] [EJB/JBoss] - pb : having a jboss service depending on jms or NamingContex

2008-12-03 Thread je.a.le
hi, I have an entreprise application build like this : - an ejb module, with a jboss service (@service @management annotation), and a mdb - a war module with a servlet and a webservice Only use annotation ; jboss 4.2.1.GA, jdk 1.6.0.10 x64, linux, netbeans 6.1 At startup, the start method of

[jboss-user] [JBoss Portal] - injecting header content at portal level

2008-10-24 Thread je.a.le
hi, it's more a question than a real problem :-) I'm wondering if it's possible to inject header - javascript - for a portal (or page) instance in the same way as portlet, ei, add a tag into an xml descriptor ? I tried to add a header-content script/script/header-content to my

[jboss-user] [JBoss Portal] - Re: Forcing locale

2008-06-03 Thread je.a.le
I managed to inject/force a custorm local by adding a new mbean (ServerInterceptor) into JBossInterceptorStackFactory (jboss-service.xml) My problem now is i'm unable to retrive any session attribure passed from a servlet into the HttpSession. On the servlet side, no pb, can read attribute

[jboss-user] [JBoss Portal] - Re: What exactly is the point of JBoss portal

2008-06-02 Thread je.a.le
I'm not an expert :-) but i can answer you from the point of view of someone in your situation, months back. 1) it works ! ... not always the same with liferay or opencms I think everybody will agree with me : j2ee is entreprise, big projects oriented. So there're few opensource cms. for me

[jboss-user] [JBoss Portal] - Re: Problem with picture in portlet

2008-06-02 Thread je.a.le
as said only the server see WEB-INF. Put your images into the to directory (best a sub dir). If you use netbeans, this is the Web pages node. project : ac.war images inside gfx subdir in netbeans -- ac.war/web Pages/gfx/myimage.png in the war -- ac.war/gfx/myimage.png in your jsp : |

[jboss-user] [JBoss Portal] - Re: Forcing locale

2008-06-02 Thread je.a.le
I'm pushing this old thread back on top because i'm having the same problem. I would like to offer users the posibility to choose language not only throw brower language setting (request.getLocale() ) but also throw an interface (js/jsp etc...) For my datas, I can walk around with session. The

[jboss-user] [JBoss Portal] - Re: Problem regarding renderURL param

2008-05-22 Thread je.a.le
with plain jsp i don't know, but using a little trick inside the portlet do view you could. the problem is from the processAction / doView method. doView keep renderParam (set in processAction), therefore, render 'old' data when switching back using the tab button. Unfortunately ActionRequest

[jboss-user] [JBoss Portal] - Re: Including a javascript in a portlet

2008-05-21 Thread je.a.le
let's put javascript into : MYWARPROJECT/WEB-INF/js/myscript.js on your jsp : | [EMAIL PROTECTED] uri=http://java.sun.com/portlet; prefix=portlet% | portlet:defineObjects / | | script src=${renderRequest.contextPath}/js/myscript.js/script | note for your script, the project IS the

[jboss-user] [Beginners Corner] - Re: error when used JBossPortlet instead of GenricPortlet

2008-05-14 Thread je.a.le
Just had the same error and found the answer. It's because you do not overide the right doview method :-) (public!=protected); you just add a new one... beside it seem the default for JBossPortlet.doView is to send a PortletException (when geneiric do nothing...) btw which portlet container

[jboss-user] [JBoss Portal] - Re: Need a portlet that display

2008-05-13 Thread je.a.le
sky2rain wrote : Someone please help tell how to write a simple portlet that shows loged in as : username; we are frustrated by the lack of docs. Please simply point out which packages are needed to import in order to do this and we can handle the rest. Thanks a million!! the answer is

[jboss-user] [EJB 3.0] - no more ejb3 EA with netbeans 6.1 !!??

2008-05-03 Thread je.a.le
I'm using netbeans 6.0 beta for month, worlking in an ejb3.0 entreprise application for jboss (4.2.1GA) (linux x64 jdk 1.6) I have no problems, injections work fine. I tried to the new build 6.1. Surprisly, if i create a new project, now I have only j2ee 1.4 for jboss !! - for glassfish, j2ee5

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: jboss 2.4 ga on a celeron 2008/512Mb ok ???

2008-03-31 Thread je.a.le
gabewong wrote : You pretty much will be maxing the server. | So anything can happen depending on the | exact resource used by your app. | Just use top to check resources used. | thks, It's what i thought :-( I'm not even sure a 1Gb server will work perfectly... View the original post

[jboss-user] [JBoss Portal] - Re: Wrong tx on thread in UserModule

2008-03-30 Thread je.a.le
look like the exception is from the transaction ; andif i'm correct, findUserByUserName return null when user not found. On my own code i use bean instead and throw the exception by myself : | | MBeanServer mbeanServer = MBeanServerLocator.locateJBoss(); | UserModule userModule =

[jboss-user] [Installation, Configuration DEPLOYMENT] - jboss 2.4 ga on a celeron 2008/512Mb ok ???

2008-03-29 Thread je.a.le
I look everywhere and I couldn't found the minimal hardware requirement for jboss (well, there one for 2003 with celeron 1G/128Mb !! don't think it apply anymore :-) ) I could rent a celeron 2008 with 512Mb, unlimited trafic for less than 150€/year, so it looks like a good bargain for a

[jboss-user] [JBoss Portal] - cross auth between jportal and dwr/servlet better solution t

2008-02-29 Thread je.a.le
I convert a project from form submit based to dwr (ajax) submit. both work fine together. At the top security(login, portlet access) level i will use jboss. Like in any project :-) some actions must be valid only to some users. Since dwr is just servet, i must check user right here too. From

[jboss-user] [JBoss Portal] - session/transction mandatory when calling UserModule/RoleMod

2008-02-29 Thread je.a.le
I only need read only operations like getting list of role, user, etc... I notice that in order for a MBeanProxy to works, the call must be done inside a session (ok) but into a transaction too (?) here a working code : | Session session = null; | Transaction t = null; | try { |

[jboss-user] [JBoss Portal] - Re: How can I to include JavaScript files in Portlets to JBo

2008-02-28 Thread je.a.le
swisst wrote : So you are having a single portlet download common javascript files that are used by multiple portlets? That sounds like a bad ideaIf this is truly common js code, why not have the theme load it for you? Or reference it in every portlet, the browser will be smart enough to

[jboss-user] [JBoss Portal] - Re: How can I to include JavaScript files in Portlets to JBo

2008-02-28 Thread je.a.le
oops ! look like someone eat my lines :-D Correct sentence is : anonymous wrote : | You cannot relly on the cache neither : every time the browser found a , it runs it, that a major problem. not only it's time consuming, but it could create some js exception. | | A solution is

[jboss-user] [JBoss Portal] - Re: header.jsp - How To?

2008-02-06 Thread je.a.le
JohnnyTheHun wrote : But what if one of my portals use my custom header or tabs.jsp, while another uses the default one. | Your suggestion would kill the one using the default core files, wouldn't it? just tried and not only it change tab menu for all portals but the admin portal too !!

[jboss-user] [JBoss Portal] - portalNode from portlet or layout ?????

2008-02-06 Thread je.a.le
jboosportal api look great except i don't see how to use it outside...jbossportal core. So right now : pointless. A simple exemple : How to acces the portal page tree !?? (and thanks, not by editing jboss-service.xml or tabs.jsp) I have nothing against building some new mbean but a little

[jboss-user] [JBoss Portal] - Re: Use Apache mod_proxy or mod_rewrite to redirect to jboss

2008-02-05 Thread je.a.le
I had the same issues weeks ago and i already got an answer from the forum :-) jboos hidding on localhost behind apache. Here one vhost config : virtualhost 127.0.0.1 ServerName s1 RewriteEngine on RewriteRule .* - [E=DEFAULT_PORTAL:s1] RewriteRule .* - [E=DEFAULT_PAGE:p1] RewriteCond

[jboss-user] [JBoss Portal] - Re: How to access EJB3 beans from a portlet !???

2007-12-13 Thread je.a.le
in netbeans, right click on editor, entreprise resources-call entreprise bean select your ejb, remote/local depending where you add your portlet. netbean add a method to your portlet for you... except the jndi is wrong :-) so too call an ejb MediaDirSessionBean, from the application project AC,

[jboss-user] [JBoss Portal] - set property/preference for a portlet instance according to

2007-12-13 Thread je.a.le
Hi, Using the preference system i can pass specific values to a portlet instance at runtime. I'm going to need the same portlet, on different pages, and with dif preferences values. The only solution I found is to create an instance each time... I would like to use the same instance :I see a

[jboss-user] [JBoss Portal] - Re: Using external LDAP server for username/password login O

2007-11-07 Thread je.a.le
dashaun wrote : Can you share with us what you did? | indeed... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4102541#4102541 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102541

[jboss-user] [JBoss Portal] - Re: jbossportal with apache proxy help ! (accessing portal f

2007-11-06 Thread je.a.le
last word : in your apache vhost directive, don't forget : ProxyPreserveHost On else, when login into the portal you will fall into localhost:8080 url... A+ View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4102174#4102174 Reply to the post :

[jboss-user] [JBoss Portal] - Re: jbossportal with apache proxy help ! (accessing portal f

2007-10-31 Thread je.a.le
Thanks for your reply, it helps a lot; in a matter of fact it's the direction i were just looking at. btw it seem you have to add RewriteEngine on in each virtualhost directive, even if set in http.conf ; else rewrite doesn't process. second mistake of me was to remove proxy_http (instead of

[jboss-user] [JBoss Portal] - jbossportal with apache proxy help ! (accessing portal from

2007-10-30 Thread je.a.le
let's say I created 2 portals s1 and s2 ; I can perfectly access them with : http://xxx/portal/portal/s1 and http://xxx/portal/portal/s2 for exemple i want to access them throught s1.org and s2.org. since apache will keep the 80 port (and jboss 8080), i'm trying apache proxy (mod_jk didn't work

[jboss-user] [JBoss Portal] - site using jbossportal

2007-10-26 Thread je.a.le
For our current project, jboss + jbossportal is the solution I want to go with. Looking for references it seem jbp is one of the top choose, except I found barrely no one telling they're using it for this site of this one etc.. (with is strange : for typo3, ez, etc... there're plainty of