[Design of JBoss jBPM] - Re: Status of web console enhancements
by tom.baeyens@jboss.com
"david.lloyd(a)jboss.com" wrote : But the main recurring factor is that we need a good search/navigation system, and that's what I have in progress right now.
|
once you have initial ideas, post them here for review.
"david.lloyd(a)jboss.com" wrote : A search mechanism is specified not only by the console requirements, but also the BAM application (which seems to overlap in functionality with the web console to a degree that remains to be seen).
|
as you say onward, hibernate's criteria api is the way to go. so the thing that i would like to see sketched out is the navigation between search pages, results and other functionality.
"david.lloyd(a)jboss.com" wrote : I've come to the conclusion that the only real practical alternative is to use criteria queries to specify first the search results, and then add on any specified filter criteria.
|
i absolutely agree
I get the impression that you are thinking too generic in this first iteration. I think the best approach is just hack 2 or 3 queries together ad hoc and get them in the web console, just to get a feel of the web console in general. No reusability in mind. Consider this a prototype.
Then we should design the BAM DB (shouldn't we call this a Business Intelligence DB instead ?) and build the generic query framework on top of that.
For the design of the BAM DB, i want to work this out in the jbpm 4 prototyping module: lightning. Once you're ready i can help you on your way in there.
Thoughts ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977776#3977776
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977776
19 years, 6 months
[Design of JBoss jBPM] - Re: MessageService and JMS
by tom.baeyens@jboss.com
"mteira" wrote : Sorry for triggering questions that fast. I will try to control myself and investigate a little more before asking.
|
please keep it up. your contributions are good. let me know if you want committer access. tom dot baeyens at jboss dot com
"mteira" wrote : I've copied jbpm.cfg.xml to the jbpm/jpdl/jar/src/main/config/jbpm.cfg.xml and changed the message service to use the JMS based one:
|
| <service name="message"
| | factory="org.jbpm.msg.jms.JmsMessageServiceFactoryImpl" />
|
| Now, I'm getting NPE in JmsMessageServiceFactoryImpl openService. It happens at line 49:
|
| ConnectionFactory connectionFactory = (ConnectionFactory) initialContext.lookup(connectionFactoryJndiName);
|
| I see that the private member connectionFactoryJndiName is initialized to 'null' and there's no method to change it to another value. Is it injected from another place? Is there some code missing here?
|
try something like this:
<service name="message" factory="org.jbpm.msg.jms.JmsMessageServiceFactoryImpl">
| <field name="connectionFactoryJndiName"><string value="java:/XaConnectionFactory" /></field>
| </service>
although you need to replace the jndi name as i don't know it by heart.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977772#3977772
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977772
19 years, 6 months
[Javassist development Forum] - add a new annotation problem
by coral
Hi all,
I am working on ejb3 project. Ejb3 always use some annotations such as "@Stateless","@Remote", "@RemoteBinding" and etc. Now I want to use javassist to generate these annotations. But have some problem. Can you help me to point out my mistake?
<The class I wanna modify>
| @Stateless
| public class StatelessTest {
| public String sayHello(String user) {
| return "Hello" + user;
| }
|
| }
|
<In this test case, I wanna put a new annotation "@RemoteBinding(jndiBinding = "StatelessTest /remote")" into StatelessTest class>
| public class AnnotationTest extends TestCase {
| public void testAnnotation() {
| ClassPool pool = ClassPool.getDefault();
| pool.insertClassPath
| ("D:/workspaces/.maven/repository/jboss/jars/jboss-annotations-ejb3-4.0.3.jar");
| CtClass c = pool.get
| ("com.quartet.fwk.container.hivemind.qar.models.StatelessModel");
| ConstPool consts = c.getClassFile().getConstPool();
| ByteArrayOutputStream output = new ByteArrayOutputStream();
| AnnotationsWriter writer = new AnnotationsWriter(output, consts);
| writer.numAnnotations(1);
| writer.annotation("RemoteBinding", 1);
| writer.memberValuePair("RemoteBinding");
| writer.constValueIndex("remote");
| writer.close();
| byte[] attribute_info = output.toByteArray();
| AnnotationsAttribute attribute=new AnnotationsAttribute(consts,
| AnnotationsAttribute.invisibleTag, attribute_info);
| c.getClassFile().addAttribute(attribute);
| Object[] objs = c.getAnnotations();
| System.out.println(objs[1]);
|
I think these codes should work very well, but it throws exception:
java.lang.reflect.InvocationTargetException
detailMessage="bad descriptor: RemoteBinding";
thank for any replay!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977754#3977754
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977754
19 years, 6 months