[JBoss Seam] - Re: COMPOUNDs, ATOMs & MOLECULEs - don't try this at home!
by javalars
You think this was the good easy screen for new seam developer and team ? :-))
We look at seam for all this week in Goteborg company. Today seam is working good already in many sample application (booking is very good) with jBoss distribution. seam is good on Eclipse IDEs. Seam gen is working good for on simple tables and simple screen. Architecture looks clever and scalable.
We will propose soon a solution for bank company with jBoss and maybe seam (Operational Risk).
Of course we must have also manay to many with this schema in the bank so we try this problem today in office and also now, tonight in home :-(
We want to use seam and java (not sure Ruby so far) with our project, rich-intranet bank application also.
This question is nice for us with this customer, and schema and SQL works good in hsql, cheers, but seam gen haves mappings problem to deploy. So we cant deploy toniht and tired now. We can look tomorow more because we have same problem for this bank.
Is this what does happen for you? Have you now way to make it work? I look with my team tomorrow and architect as well.
RedHat: Is it easy to build a screen in SEAM for this screen with add molecule? Can anybody from RedHat know this before Thurdag morning in centrum Europe time? If it is not possible can you write it in a reply.
PS Gavin, how you do find time to help everybody ?
PPS If you have know the solution cja987, we can promise not sell your solution to BASF or a US pharmaceuticals ;-))
Thank you if you can help us.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032239#4032239
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032239
19Â years
[JBoss Seam] - Re: Conceptual/Best Practice Question
by tony.herstellï¼ gmail.com
I also have a stateful page view that displays a list of xxxx as a @DataModel.
I also have conversations external to the page that manipulate entries int he model.
I call back from the conversations... and manipulate the mode.
In my code that requires to manipulate the model Inject it.
| /**
| * Biject the Find Users Controller which has to refine its list of Users
| * When we update the Users then we have to laise with the FindUsersController to refine its list of users.
| */
| @In(create=true)
| private FindUserController findUserController;
|
then call back to it
| @End
| @TransactionAttribute(TransactionAttributeType.REQUIRED)
| public String create() {
| log.info("> create");
| user.getDates().setCreationDate(new Date());
| user.setPassword(encryptionController.encrypt(user.getPassword()));
| em.persist(user);
| em.flush();
| facesMessages.addFromResourceBundle(FacesMessage.SEVERITY_INFO, "user_create_successful");
|
| /*
| * We need to add this user to the list of users in the session scoped FindUserController
| */
| if (findUserController != null) {
| findUserController.addUserToExistingList(user);
| }
|
| log.info("< create");
| return "success";
| }
|
|
In my model, it doesn't have to re-read anything from the database.
I found this useful as I had problems managing to get my stateful model to "re-read" from the database as it only kept reading from the cache! and I didn't know how to invalidate the cache.
It did save any reads from the database.
However, I am sure Gavins way is better.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032237#4032237
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032237
19Â years
[JBoss jBPM] - Re: setting and accessing process variables in jpdl
by shea.phillips
ok - so I now have 'script' contents being executed. Had to uncomment the Script.hbm.xml reference from jbpm's hibernate config file and include bsh.jar in my classpath. There is doco on this, but it didn't jump out at me initially. IMO, having Script support disabled by default is a bit weird.
In the following jpdl, I get to the point of executing the contents of my script element. However bsh pukes saying it can't resolve the variable 'ecgProcessNameLookup', which is a seam component, and is already successfully used in the decision's expression attribute. The variable element referencing this does nothing to help the situation.
My next step is to learn more about the context that script has available, and how to work with it.
dslevine - Thanks very much for your help so far.
| ?xml version="1.0"?>
| <process-definition name="DispatchInboundECG"
| xmlns="urn:jbpm.org:jpdl-3.1">
|
|
| <start-state name="start">
| <transition name="begin" to="determineInterpretationProcess"/>
| </start-state>
|
| <decision name="determineInterpretationProcess"
| expression='#{ ( ecgProcessNameLookup.determineInterpretationProcessName == null ) ? "Yes" : "No" }'>
| <transition to="completed" name="Yes"></transition>
| <transition to="doInterpretation" name="No">
| <script>
| <expression>
| String interpretationName = ecgProcessNameLookup.determineInterpretationProcessName();
| </expression>
| <variable name='interpretationName' mapped-name="intepretationName" access='write'/>
| <variable name='ecgProcessNameLookup' mapped-name="ecgProcessNameLookup" access='write'/>
| </script>
| </transition>
| </decision>
|
| <node name="doInterpretation">
| <action expression="#{eCGInterpretationGenerator.execute(interpretationName)}"/>
| <transition to="completed"/>
| </node>
|
| <end-state name="completed"/>
| <end-state name="doInterpret"/>
|
| </process-definition>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032220#4032220
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032220
19Â years
[JBoss Seam] - Re: Seam in a J2EE Environment
by gavin.kingï¼ jboss.com
1) Depends what you mean. We currently have no special integration of JBoss AOP into Seam (though it is something we will probably do at some point in the future). However, by nature, JBoss AOP can enhance *any* class, it does not need to be any special kind of component. OTOH, most things that you might think you need AOP for can be accomplished via a Seam interceptor, which is just a MUCH easier construct. Add a meta-annotation to an annotation, then use the annotation on your Seam components. For things like logging, this is more than what you need...
2) Yes, but you would need to write some kind of factory or manager component for the EJB 2 bean (this is not hard, but nor is it as simple as it could be if Seam had built-in support for EJB3). We don't have anything built-in to Seam today. However, if this is some kind of blocking issue for you, let us know and we will implement it, it is already on the todo list, but no-one asked for it yet.
3) Depends. If you have the same interface, with multiple roles, you disambiguate via the component name. If you are simply trying to mock stuff out for tests, you use @Install(precedence=MOCK), which is IMO waywaywayway easier to use and more elegant than the XML-based solutions found in other IoC solutions. This is very well-covered in the latest reference docs for 1.2.1.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032217#4032217
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032217
19Â years