[Messaging, JMS & JBossMQ] - Re: jms client authentication with client certificates
by perzian
Adrian, Thank you for your response. Although, I am still a little confused. Isn't the transport layer configuration for SSL done on the UILServerILService MBean by setting the ClientSocketFactory and ServerSocketFactory attributes? I looked at the javadoc for org.jboss.security.ssl.DomainServerSocketFactory and saw that there is a method called setNeedsClientAuth(boolean). Do I need to extend this class, set that method to true, and then set the ServerSocketFactory attribute to the derived class?
Also in doing this can I still do role based authorization? The code I have above is slightly simplified from what we really are trying to implement in that instead of using the BaseCertLoginModule and UserRolesLoginModule we have a custom LoginModule that extends the BaseCertLoginModule and a custom verifier that connects to a remote server to verify the user's certificate and retrieve the roles the user has.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052718#4052718
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052718
18Â years, 10Â months
[Persistence, JBoss/CMP, Hibernate, Database] - Re: relationships in jbosscmp-jdbc.xml
by paoletto
ok, i tried but clearly i'm making some mistake.
i tried to define a CMR field for entity Document that references "many" accounts, and i added in both bean and localhome interface the getters and setters for this CMR field named "account" in the <ejb-relation>.
I also added the block into jbosscmp-jdbc.xml and a join query.
Here's the code:
ejb-jar.xml
| [...]
| <entity >
| <description><![CDATA[Description for Dipartimento]]></description>
| <display-name>Name for Dipartimento</display-name>
|
| <ejb-name>Dipartimento</ejb-name>
|
| <local-home>servizioDipartimentale.interfaces.DipartimentoLocalHome</local-home>
| <local>servizioDipartimentale.interfaces.DipartimentoLocal</local>
|
| <ejb-class>servizioDipartimentale.ejb.DipartimentoBean</ejb-class>
| <persistence-type>Container</persistence-type>
| <prim-key-class>java.lang.Integer</prim-key-class>
| <reentrant>False</reentrant>
| <cmp-version>2.x</cmp-version>
| <abstract-schema-name>Dipartimento</abstract-schema-name>
| <cmp-field >
| <description><![CDATA[Getter for CMP Field idDipartimento]]></description>
| <field-name>IdDipartimento</field-name>
| </cmp-field>
| <cmp-field >
| <description><![CDATA[Getter for CMP Field Descrizione]]></description>
| <field-name>Descrizione</field-name>
| </cmp-field>
| <primkey-field>IdDipartimento</primkey-field>
|
| <query>
| <query-method>
| <method-name>findAll</method-name>
| <method-params>
| </method-params>
| </query-method>
| <ejb-ql><![CDATA[SELECT OBJECT(a) FROM Dipartimento AS a]]></ejb-ql>
| </query>
|
| <query>
| <query-method>
| <method-name>findRelatedAccounts</method-name>
| <method-params></method-params>
| </query-method>
| <ejb-ql><![CDATA[SELECT OBJECT(a) FROM Dipartimento AS d, IN (d.Accounts) as a WHERE d.descrizione = 'DIPARTIMENTO DI FISICA']]></ejb-ql>
| <!-- ejb-ql><![CDATA[SELECT OBJECT(a) FROM Account AS a WHERE a.Dipartimento.Descrizione = 'DIPARTIMENTO DI FISICA']]></ejb-ql-->
| </query>
| </entity>
| [...]
| <relationships>
|
| <ejb-relation>
| <ejb-relation-name>Dipartimento-Account</ejb-relation-name>
| <ejb-relationship-role>
| <ejb-relationship-role-name>Department-has-accounts</ejb-relationship-role-name>
| <multiplicity>One</multiplicity>
| <relationship-role-source>
| <ejb-name>Dipartimento</ejb-name>
| </relationship-role-source>
| <cmr-field>
| <cmr-field-name>Accounts</cmr-field-name>
| <!-- cmr-field-type>java.util.Collection</cmr-field-type-->
| </cmr-field>
| </ejb-relationship-role>
| <ejb-relationship-role>
| <ejb-relationship-role-name>Account-belongs-to-department</ejb-relationship-role-name>
| <multiplicity>Many</multiplicity>
| <cascade-delete/>
| <relationship-role-source>
| <ejb-name>Account</ejb-name>
| </relationship-role-source>
| </ejb-relationship-role>
| </ejb-relation>
|
jbosscmp-jdbc.xml
| [...]
| <entity>
| <ejb-name>Dipartimento</ejb-name>
| <create-table>true</create-table>
| <remove-table>true</remove-table>
| <table-name>DIPARTIMENTO</table-name>
|
| <cmp-field><field-name>idDipartimento</field-name></cmp-field>
| <cmp-field><field-name>descrizione</field-name></cmp-field>
|
| </entity>
| [...]
| <relationships>
| <ejb-relation>
| <ejb-relation-name>Dipartimento-Account</ejb-relation-name>
| <foreign-key-mapping/>
|
| <ejb-relationship-role>
| <ejb-relationship-role-name>Department-has-accounts</ejb-relationship-role-name>
| <key-fields/>
| </ejb-relationship-role>
|
| <ejb-relationship-role>
| <ejb-relationship-role-name>Account-belongs-to-department</ejb-relationship-role-name>
| <key-fields>
| <key-field>
| <field-name>dipartimento</field-name>
| <column-name>idDocumento</column-name>
| </key-field>
| </key-fields>
| </ejb-relationship-role>
| </ejb-relation>
|
and the error trying to deploy the application:
Finder findRelatedAccounts defined on Dipartimento should return only instances of Dipartimento but the query results in instances of Account
so should i put it in Account bean? but then the relationship? how to change it in bidirectional way?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052717#4052717
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052717
18Â years, 10Â months
[Installation, Configuration & Deployment] - Jboss 3.2.2 : Adobe form server rendering issue
by shilps
We have developed a web application through which we are opening forms (designed in Adobe esigner 6.0) in HTML as well as PDF version.
JBoss is used to deploy form server. User through a browser make ca call to WebServer , the call from Web Server to AdobeFormServer is routed by adding an ISAPI filter as 'Jakarta' in WebServer.
Navigation buttons are given in forms to traverse from one page to the other. After the page-level script execution in the form, a java servlet (custom written) is called to render the next intended page.
Sometimes, clicking on a navigation button (say Next Page button), intended page is not opened. Rather, progress bar is shown in the bottom of the page and it continues to show the same as if stuck and java script error is shown in the bottom left of the page as 'this._peer is null or not an object'. This behavior is not consistent.
Initially, we had set IIS timeout in Web Server to 90 minutes and kept jboss3.2.2 timeout as default (which was 20 minutes), so, thought this mismatch to be the reason for same. But even on increasing the session-timeout property to 90 minutes in \\\jboss-3.2.2\server\all\deploy\jbossweb-tomcat41.sar\Web.xml, at times the problem is faced.
This issue is not form specific and is also not consistent. Thus, unable to track the reason for same. Not sure whether its an issue with jboss server configuration or with some coding in form!!
The jboss log says "ERROR [STDERR] com.adobe.formServer.interfaces.ProcessFormSubmissionException: RequestBuffer not specified"
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052715#4052715
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052715
18Â years, 10Â months
[Tomcat, HTTPD, Servlets & JSP] - Jboss 3.2.2 : Adobe form server rendering issue
by shilps
We have developed a web application through which we are opening forms (designed in Adobe esigner 6.0) in HTML as well as PDF version.
JBoss is used to deploy form server. User through a browser make ca call to WebServer , the call from Web Server to AdobeFormServer is routed by adding an ISAPI filter as 'Jakarta' in WebServer.
Navigation buttons are given in forms to traverse from one page to the other. After the page-level script execution in the form, a java servlet (custom written) is called to render the next intended page.
Sometimes, clicking on a navigation button (say Next Page button), intended page is not opened. Rather, progress bar is shown in the bottom of the page and it continues to show the same as if stuck and java script error is shown in the bottom left of the page as 'this._peer is null or not an object'. This behavior is not consistent.
Initially, we had set IIS timeout in Web Server to 90 minutes and kept jboss3.2.2 timeout as default (which was 20 minutes), so, thought this mismatch to be the reason for same. But even on increasing the session-timeout property to 90 minutes in \\\jboss-3.2.2\server\all\deploy\jbossweb-tomcat41.sar\Web.xml, at times the problem is faced.
This issue is not form specific and is also not consistent. Thus, unable to track the reason for same. Not sure whether its an issue with jboss server configuration or with some coding in form!!
The jboss log says "ERROR [STDERR] com.adobe.formServer.interfaces.ProcessFormSubmissionException: RequestBuffer not specified"
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052713#4052713
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052713
18Â years, 10Â months