[JBoss Portal] - Re: JBoss Portal when using Cyreilc Characters for Page Name
by J0Ke
np but :+)
which objects.xml file are you speaking ? default-object.xml ? becouse there is no description there how the Pages and portlets in this pages are organized.
btw i found a
D:\JBoss\server\default\data\portal\hypersonic\database.script
there is a line like this :
INSERT INTO JBP_OBJECT_NODE VALUES(62,'default.Partners','Partners',2)
i was understood that the default.Partners vaule is the Vaule of the what is the link of the page in the portal e.g. to a some Page
the secound value 'Partners' is the display value .. or kind of it .. but when i do it Unicode .. it looks OKEI in the Portal the link looks Okei ( i mean non Unicode - just partners ) but when i click nothink happens ;> it doesnt work . :)
wanna show screenshot or im touching where is not my work :>
so the problem stays : how to set a unicode name for a "page name" :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000937#4000937
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000937
19 years, 3 months
[Management, JMX/JBoss] - How to detect that a NotificationListener was lost after net
by aluca
Here is the probleme to solve:
A webapp is registering toward a jmx service to receive a notification.
How to figure out when we lost the listener?
The normal behaviour of the JBossNotificationBroadcasterSupport is to cancel the listener from the list during the next notification sending is there was a network problem i.e. a tcp failure.
But the web-app is not aware of that and then doesn't receive any notif any more w/o knowing.
Our current temporary solution is :
-first introduce a keepalive methode in the jmx service with the handback as a param,
-second to overload all the methodes of JBossNotificationBroadcasterSupport that access to the registery (which is private) containing all the listener to access to a local registery instead, to be able to double check if the handback given in the keep alive param still corresponds to a listener in the registery map. If not answer false to the keepalive. Then the web-app reregister. Problem is a strong glueing w/ the current jboss version/code.
Well, our problem seems pretty common and we are surprised not to be able to determine what is the standard pattern for that.
Does anyone know it.
Season's greetings
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000934#4000934
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000934
19 years, 3 months
[JBoss Seam] - Tomahawk File Upload
by yj4jboss
Hello ....
I am using tomahawk for uploading files in a SEAM application ... I followed the guide on
http://www.onjava.com/pub/a/onjava/2005/07/13/jsfupload.html?page=1
An example of my code in the uploadBean is as follows:
|
| public void importActions() throws FileNotFoundException, IOException{
| this.upload();
| String path=this.uploadFile.getName();
|
| CSVReader reader = new CSVReader(new FileReader(path));
|
| List<Action>importList = new LinkedList<Action>();
|
|
|
| String [] nextLine;
|
| while ((nextLine = reader.readNext()) != null) {
| Action instance = new Action();
|
| String instanceName = nextLine[0];
| instance.setActionId(actionDAO.getNewActionId());
| instance.setActionIndex(actionDAO.getNewActionIndex());
| instance.setActionName(instanceName);
|
| if(actionDAO.IsActionNameValid(instanceName)){
| actionDAO.merge(instance);
| }
| Events.instance().raiseEvent("refreshActions");
| }
| }
|
|
This method correctly uploads a csv file on to the specified directory on the machine where the jboss AS is running .... Everything worked fine as long as the application was running on my local machine !!
When i deployed the application onto one of our remote servers, the file upload process failed as the filepath variable assigned as the file path of the file which is found on pc !!
Can anyone tell me how to retrieve the filePath of the file which has been uploaded on the remote server itself ?/
Regards,
Yogesh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000927#4000927
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000927
19 years, 3 months