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
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
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
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 :
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 :
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
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
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
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
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:
|
|
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
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
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
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
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 :
|
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
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
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
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
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
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
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
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 =
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
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
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 {
|
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
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
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 !!
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
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
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,
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
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
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 :
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
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
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
38 matches
Mail list logo