Is it possible to inject the user and role information from an external authentication engine through HTTP headers? I want to somehow configure the portal to blindly use the user/role that are being passed as HTTP headers in the first request.
>From what I have been reading so far, I believe it's possible to write a custom login module and override validatePassword method to not verify the password in portal's data source. But I am not sure how I can make the portal blindly use the user/role strings in the HTTP header of the incoming request?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104801#4104801
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104801
Folks,
When seam-gen generates an entity with a one-to-many association to another entity, it appears to always set the cascade attribute to CascadeType.ALL.
My sense is that this is incorrect behavior when the foreign key's constraint in the database is set to ON DELETE RESTRICT.
Is this an "undocumented feature", or an misunderstanding of the expected behavior on my part. If so, could you please give me a quick explanation of why CascadeType.ALL is correct when a foreign key's constraint is ON DELETE RESTRICT.
Thanks,
Stephen
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104799#4104799
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104799
I have MDBs which sometimes run lengthy processes. I want to be able to drop a new EAR into the /farm directory, and all of the apps should restart/redeploy. But what is happening is that the apps which are running these long-running MDBs are waiting for the MDBs to finish before restarting/redeploying.
What is the recommended solution? I don't care about the MDBs not finishing -- they will just restart once the app is redeployed, correct? The MDBs are bean-managed.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104798#4104798
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104798
I have sent a number of conflicting messages due to various circumstances, but my bottom line now is that neither my 2.1 nor 3.0 beans deploy. My environment is JBoss 4.0.3SPI (with RC5 update), Redhat Linux 3.5 ES, Java 1.5.0_12, J2EE 5 persistence apis....
Here is what I've done thus far:
(1) Cleaned all jars/ears/wars of outside jar imports - I now rely 100% on JBoss supplied libraries
(2) Packaged my product as so:
myapp.ear
| |
| -- META-INF/application.xml
| |
| -- myapp-ejb.jar
| |
| -- META-INF/persistence.xml
| |
| -- META-INF/ejb-jar.xml
| |
| -- META-INF/jbosscmp-jdbc.xml
| |
| -- META-INF/jboss.xml
| |
| -- myapp-war.war
| |
| -- WEB-INF/web.xml
|
(Note that EJB 2.1 and 3.0 beans are in the same ejb.jar file).
Below is my persistence.xml:
<?xml version="1.0" encoding="UTF-8"?>
| <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistencehttp://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
| <persistence-unit name="vramPu" transaction-type="JTA">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/nicweb/DataSource</jta-data-source>
| <properties>
| <property name="hibernate.hbm2ddl.auto" value="update"/>
| </properties>
| </persistence-unit>
| </persistence>
Here is the declaration for my web.xml:
<?xml version="1.0" encoding="UTF-8"?>
| <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http
| ://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/x
| ml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
| <display-name>vram-dos</display-name>
Here is my application.xml:
| <?xml version="1.0" encoding="UTF-8"?>
| <application version="5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/application_5.xsd">
|
| <display-name>vram-dos-server</display-name>
|
| <!-- Service configurations -->
| <module>
| <ejb>nicweb-jboss-ds.xml</ejb>
| </module>
|
| <module>
| <ejb>mail-service.xml</ejb>
| </module>
|
| <module>
| <ejb>vram-dos-server-ejb.jar</ejb>
| </module>
|
| <module>
| <web>
| <web-uri>vram-dos-server-war.war</web-uri>
| <context-root>/vram-dos-server-webapp</context-root>
| </web>
| </module>
|
| </application>
Any help is appreciated.
Thanks,
Mike
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104796#4104796
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104796