[jBPM] - Variables from HistoryService are always Strings
by Philipp Ossler
saig0 [http://community.jboss.org/people/saig0] created the discussion
"Variables from HistoryService are always Strings"
To view the discussion, visit: http://community.jboss.org/message/560391#560391
--------------------------------------------------------------
Hi all!
I'm using jBPM 4.4 and try to get different variables from an ended process instance with the HistoryService.
The problem is that the HistoryService only get variables with type String. When I try to get a variable with an other type, it transfer the variable into String.
If the variable is a number, I'm able to cast it into number. But in case the variable is a Boolean, I get "T" or "F". And if the variable is a date, it will cast into an unusual format.
It seems that the variable will be transform into String with a toString() method, when the process instance end.
Is this behavior correct? If it is correct, the return type of getVariable() from HistoryService have to change from Object to String.
Thank you for answer!
Phil
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/560391#560391]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months
[Datasource Configuration] - Verified MS Sqlserver2005 XA datasource config
by Thunder Lei
Thunder Lei [http://community.jboss.org/people/Thunder.Farmer] created the discussion
"Verified MS Sqlserver2005 XA datasource config"
To view the discussion, visit: http://community.jboss.org/message/560664#560664
--------------------------------------------------------------
When I try to config xa datasource for MS sqlserver 2005 driver, I encounter some issues, and I see there are a lot of people have the similar issue.
Eventually after I google and test, I make it.
post the config here for reference, maybe it's not best practice, but it works.
<datasources>
<xa-datasource>
<jndi-name>peoplesoftXA</jndi-name>
<!-- uncomment to enable interleaving <interleaving/> -->
<track-connection-by-tx></track-connection-by-tx>
<isSameRM-override-value>false</isSameRM-override-value>
<xa-datasource-class>com.microsoft.sqlserver.jdbc.SQLServerXADataSource</xa-datasource-class>
<xa-datasource-property name="ServerName">@peoplesoft-database-server@</xa-datasource-property>
<xa-datasource-property name="PortNumber">@peoplesoft-database-port@</xa-datasource-property>
<xa-datasource-property name="DatabaseName">@peoplesoft-database-name@</xa-datasource-property>
<xa-datasource-property name="SelectMethod">cursor</xa-datasource-property>
<xa-datasource-property name="User">@peoplesoft-connection-pool-user-name@</xa-datasource-property>
<xa-datasource-property name="Password">@peoplesoft-connection-pool-password@</xa-datasource-property>
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<metadata>
<type-mapping>MS SQLSERVER2005</type-mapping>
</metadata>
</xa-datasource>
</datasources>
<datasources>
<xa-datasource>
<jndi-name>jndiName</jndi-name>
<track-connection-by-tx></track-connection-by-tx>
<isSameRM-override-value>false</isSameRM-override-value>
<xa-datasource-class>com.microsoft.sqlserver.jdbc.SQLServerXADataSource</xa-datasource-class>
<xa-datasource-property name="ServerName">DB Host</xa-datasource-property>
<xa-datasource-property name="PortNumber">1344</xa-datasource-property>
<xa-datasource-property name="DatabaseName">DB Name</xa-datasource-property>
<xa-datasource-property name="SelectMethod">cursor</xa-datasource-property>
<xa-datasource-property name="User">user</xa-datasource-property>
<xa-datasource-property name="Password">password</xa-datasource-property>
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<metadata>
<type-mapping>MS SQLSERVER2005</type-mapping>
</metadata>
</xa-datasource>
</datasources>
SQL Server JDBC Driver version, 2005 - 1.2.2828
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/560664#560664]
Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months
[JBoss Portal] - Jboss Portal + Richfaces 3.0 + Primefaces - Will it work?
by Shashidhar Yarabati
Shashidhar Yarabati [http://community.jboss.org/people/yshashidhar] created the discussion
"Jboss Portal + Richfaces 3.0 + Primefaces - Will it work?"
To view the discussion, visit: http://community.jboss.org/message/560554#560554
--------------------------------------------------------------
Hi there
Well, let me come to the point straight forward.
We are using Jboss Portal server 4.3_05, Richfaces 3.0 in our project. Life is good so far.
We would like to have the feasibility to resize datatable/scrollabledatatable ( will matters?) on the browser. It should be custmaziable to client from the browser. While walking through, we came to know primefaces resiable is the component we should use.
As a draft first I tried adding below line to one of my scrollable data table in our application.
<p:resizable minWidth="950" minHeight="160" maxWidth="950" maxHeight="360" />
I don't see the scrollable data table component allows me to resize. No idea why it is. I even tried this for simple textbox as well, but of no use.
Can any one of you tell me please, the combination I mentioned will work first of all?
Cheers & Have a good day.
Shashidhar
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/560554#560554]
Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months
[JNDI and Naming] - Make a call to an EJB3 this on a machine with weblogic through JNDI
by Javier Godoy
Javier Godoy [http://community.jboss.org/people/suter] created the discussion
"Make a call to an EJB3 this on a machine with weblogic through JNDI"
To view the discussion, visit: http://community.jboss.org/message/560227#560227
--------------------------------------------------------------
Hello everyone.
I'm still working with jboss and thanks to your help I could do my job perfectly.
In this instance, a new complication has arisen. We expose it below:
I have two machines, one with jboss and another with Weblogic 10.3. The fact is that most applications will be executed through weblogic JBoss while for technical reasons it is responsible for implementing EJB3 session. The idea is through the remote JNDI call these sessions from JBoss to Weblogic.
My first implementation has been to add the charge to seek properties in the jndi tree as follows:
propertie.put (InitialContext.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
propertie.put (InitialContext.PROVIDER_URL, "t3: / / 192.168.147.98:7001");
The case is not working and do not know if I have to configure some file in jboss or weblogic.
I would appreciate any contribution that you can do about it.
A greeting and thanks in advance.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/560227#560227]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months