[JBoss Portal] - Re: ClassCastException accessing EJB3 from portlet
by cuoz
Ok, I made progress and got it to "work", but it's not 100% of what I was hoping for. Here's what I did, maybe there is a way to improve on it to obtain my ultimate goal.
1. I packaged all of the applications into their own ear files, with loader-repository entries in jboss-app.xml.
2. I switched from local interfaces to remote
3. I needed to include the server classes (ClientEJB) as well as the client classes with the web application.
4. I tested this setup with a portlet and also a full webapp. I was able to hot deploy any piece(s) that I wanted without affecting operation of the others.
The only drawback is that I needed to have all the server classes in the client applications. I'm guessing that I didn't have to do this with my EJB2.1 application because I was actually dealing with proxies for the home & local/remote interfaces.
At some point I'll test to see if I actually need the loader-repository entries or not.
Thanks again for the assistance. Let me know if you have better ideas for how to accomplish what I'm looking for.
Gary.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961138#3961138
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961138
19 years, 9 months
[JBoss jBPM] - Re: Ripping out identity component
by kukeltje
Extending the ExpressionAssignmentHandler is indeed one thing to implement. Replacing the existing one is another.
The reason it was probably not answered may have to do that if the source is used (a very good source of information), you will see a limited number of references and a conclusion could be very easy to draw:
Currently, from what I FOUND, it is not configurable, at least not without adapting the source. The file org.jbpm.jpdl.xml.JpdlXmlReader contains a fixed reference to the default ExpressionAssignmentHandler : assignmentDelegation.setClassName("org.jbpm.identity.assignment.ExpressionAssignmentHandler");
so it could be that changing this, recompiling the code and running it, solves it. Give it a go....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961136#3961136
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961136
19 years, 9 months
[Beginners Corner] - MJB / XDoclet in JBoss
by hamffjs
Hello,
I hope everyone is doing well today. I have a question about MDB deployment configurations. I am using Xdoclet to generate the ejb-jar.xml and jboss.xml files needed for deployment.
Using XDoclet, are there any annotations or ant tasks I can use indicate the desired size of the MDB pool? For example, I want only one MDB listening on the designated queue at all times. If I cannot use XDoclet to do this, how can I edit the deployment descriptors manually to achieve this effect?
I don't know if this will help, but here are the current XDoclet annotations that I am using.
/**
* @ejb.bean name="IntegrationConsumer"
displayname="TestConsumerMDB"
* acknowledge-mode="Auto-acknowledge"
* destination-type="javax.jms.Queue"
* subscription-durability="NonDurable"
transaction-type="Container"
*
* @jboss.destination-jndi-name
name="queue/ExpressReportsIntegrationQueue"
*/
public class IntegrationConsumerBean implements MessageDrivenBean,
MessageListener {
Thank you very much for your time and assistance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961131#3961131
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961131
19 years, 9 months
[JBoss Seam] - @Out Question
by Holger Prause
Hello,
i wrote a register wizard bean where u can register member.
How can i tell @Out that it should only export values into context when the value is not null?
I found out that @Out always export a value even when null.
//export the tester as our logged in user
@Out(scope=ScopeType.SESSION, required=false)
private Customer user;
The thing is when i reuse my wizard bean for edit action(code above) , the logged in user will be exported as a null value.
So i changed to code below,which will fix the problem , but i am still wondering if can tell @Out that it should only export non null values
@In(required=false)
@Out(scope=ScopeType.SESSION, required=false)
private Customer user;
Thank u very much hope i could describe what i am searching for ^^
Bye,
Holger
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961129#3961129
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961129
19 years, 9 months