[JBoss jBPM] - Re: Tutorial or guide to create instances of processes in ja
by joestevens
Ronald,
Thanks a lot for your thoughts. Hopefully I can pick your brain a little further here.
"kukeltje" wrote : "joestevens" wrote : Is the preferred way of interacting here through the CommandService bean using Commands? I'm sort of leaning that way from poking around, but I'm not sure.Not the preferred way, but an option, especially if you want to connect remotely
Here's what I'm trying to get my head around. A while back when I was first using jbpm, the main way to deploy was using the jmx service. Then any local apps that wanted to use jbpm would just grab the configuration object out of jndi and be happily on their way. I'm trying to understand if that's still considered a good way to do things. I see the MBean for jbpm in the source tree. I don't see any mention of it in the docs or any examples.
So, what method would typically be used by a few local apps that need to share a configuration of jbpm? Is the jmx service a reasonable solution? Any thoughts you can give on accepted practice would be great.
Thanks again.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152428#4152428
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152428
17 years, 11 months
[JBoss Cache: Core Edition] - Re: ClusteredCacheLoader
by lovelyliatroim
Ok found the problem area!!!
It is something to do with my custom MBean, why it causes this behaviour i dont know.
To replicate, just take the following. (Sorry i didnt get a chance to put in test case but it should be easy to copy and paste this into one).
| {
| CacheFactory factory = DefaultCacheFactory.getInstance();
| Cache cache = factory.createCache(configPath);
| CacheJmxWrapperMBean wrapper = new CacheJmxWrapper(cache);
| wrapper.create();
| wrapper.start();
| System.out.println("Cache created");
|
| String quotePath = "/quotes/quoteA";
| String ricPath = "/ricIds/A/B/C";
|
| String key = "quote", value = "10;19";
| Long future = new Long(System.currentTimeMillis() + 604800000);
|
| cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
| cache.put(quotePath, key, value);
| cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
| cache.put(quotePath,CacheConstants.EXPIRATION_KEY, future);
|
|
| cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
| cache.put(ricPath, key, value);
| cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
| cache.put(ricPath,CacheConstants.EXPIRATION_KEY, future);
|
| cache.getRoot().getChild("quotes").setResident(true);
|
|
| //Remove this block and works as normal
| StringBuilder b = new StringBuilder();
| Node n = cache.getRoot();
| Node node = n.getChild(Fqn.fromString("/"));
| Iterator i = node.getChildren().iterator();
| while(i.hasNext()){
| Object child = i.next();
| if(child instanceof NodeInvocationDelegate){
| getLastNode((NodeInvocationDelegate)child,b);
| }
| }
|
| System.out.println(b.toString());
|
|
| Object quoteObj = cache.get(quotePath, key);
| Object ricObj = cache.get(ricPath, key);
|
| System.out.println("quoteObj= " +quoteObj);
| System.out.println("ricObj =" +ricObj);
|
| cache.stop();
| cache.destroy();
| }
|
| private void getLastNode(NodeInvocationDelegate parent,StringBuilder nodeList){
| if(parent.getChildren().size() == 0){
| //reached the end node
| nodeList.append(parent.getFqn().toString()+"("+parent.dataSize() +")\n");
| return;
| }
| Iterator<Object> i = parent.getChildren().iterator();
| while(i.hasNext()){
| Object child = i.next();
| if(child instanceof NodeInvocationDelegate){
| NodeInvocationDelegate subNode = (NodeInvocationDelegate)child;
| getLastNode(subNode,nodeList);
| }
| }
| }
|
|
I have taken snippets of all code and mashed it all together to reproduce whats happening.Its not exactly happening in the above snippet as i explained earlier.
What i see as output for the above running is
anonymous wrote :
| Cache created
|
| quoteObj= null
| ricObj =null
|
|
I would have expected to see
quotes/quoteA(2)
/ricIds/A/B/C(2)
Maybe i shouldnt be doing what im doing to see whats in the tree, i wanted to create something similar to whats in the jmx-console so i can have a nice tree path view of whats paths and how many elements in the tree.
Wont be around till monday but if you dont call the mbean code, it works as normal!! Strange though!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152427#4152427
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152427
17 years, 11 months
[JBoss Portal] - Re: Map LDAP Group to Portal Role
by drekun
Hi,
I already connect to the Microsoft AD
I have the same issue about mapping LDAP group to the portal role
this my schema for ldap server or Microsoft AD
o=office.com
|
|- ou=poeple
| |
| - ou=jakarta,
| |
| - ou=internal
| |
| - cn=user1
| |
| - cn=user2
|
- ou=groups
|
- cn=finance
|
- member=uid=user1,ou=internal,c=jakarta,ou=people,o=office.com
- cn=accounting
|
- member=uid=user2,ou=internal,c=jakarta,ou=people,o=office.com
In the portal i already created roles for accouting and finance.
Now i just can retrieve the user name and the pass word only for finance group.
this is my configuration in jboss portal
<option-group>
<group-name>common</group-name>
userCtxDN
ou=internal,c=jakarta,ou=people,o=office.com
uidAttributeID
sAMAccountName
userSearchFilter <![CDATA[(&(sAMAccountName={0})(objectClass=User))]]>
roleCtxDN
<![CDATA[cn=finance,ou=groups,o=office.com]]>
roleSearchFilter
<![CDATA[(&((cn={0})(objectClass=group)))]]>
searchScope
SUBTREE_SCOPE
</option-group>
I need to to configure the user from group accounting is automaticly assign to accounting role in the jboss portal and the same with the finace group in ldap. have any one done that with jboss portal ?
Any sugestion will be highly appriciated
Regards
Hendra
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152421#4152421
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152421
17 years, 11 months
[Installation, Configuration & DEPLOYMENT] - Caused by: java.lang.NoClassDefFoundError: Ljavax/xml/namesp
by Jessica134
Hy, I'am a new user in this forum.
I have a difficulty please:
When I use JaxB in Eclipse with maven2 to load .jar, all it works.
But when I deploy my project, there is an error on JAXBContext jc = JAXBContext.newInstance( "my package" ); The error in Jboss is:
Caused by: java.lang.NoClassDefFoundError: Ljavax/xml/namespace/QName;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2259)
at java.lang.Class.getDeclaredField(Class.java:1852)
at com.sun.xml.bind.v2.model.nav.ReflectionNavigator.getDeclaredField(ReflectionNavigator.java:218)
at com.sun.xml.bind.v2.model.nav.ReflectionNavigator.getDeclaredField(ReflectionNavigator.java:22)
at com.sun.xml.bind.v2.model.impl.RegistryInfoImpl.(RegistryInfoImpl.java:45)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.addRegistry(ModelBuilder.java:304)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:274)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:416)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:270)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:103)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:81)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:133)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
at org.publimap.webapp.metadata.MetadataActionsBean.retour(MetadataActionsBean.java:288)
at org.publimap.webapp.metadata.MetadataActionsBean.saveMetadataXmlFile(MetadataActionsBean.java:272)
at org.publimap.webapp.metadata.MetadataActionsBean$$FastClassByCGLIB$$14a7eafe.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:21)
... 123 more
My config:
jboss-4.0.5.GA
Eclipse Platform Version: 3.3.0
Jaxb: 2.1.3
Thanks :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152419#4152419
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152419
17 years, 11 months
[JBossWS] - Load balancer problem
by tnfink
Hi,
we are developing a clustered application with webservices as interface for the clients. We use Apache and mod_jk for load-balancing and fail-over and JBoss 4.2.2 in the all configuration.
To measure the performance of our system we implemented a small load test application. It uses some threads to send requests concurrently to the server. Each thread uses one (its own) web service stub.
It appears that the stub reuses its connection and, thus, the requests are not dispatched by the load-balancer. We see in the mod_jk-status page much less requests than our threads created.
Does anybody know, if connections are reused?
If yes, how can we avoid this?
We tried to disable the maintaining of sessions, but it had no effect:
| final javax.xml.ws.BindingProvider bp =
| (javax.xml.ws.BindingProvider) paymentServicePort;
| final Map<String, Object> context = bp.getRequestContext();
| context.put("javax.xml.ws.session.maintain", Boolean.FALSE);
|
Any help would be greatly appreciated!
-- Torsten
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152393#4152393
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152393
17 years, 11 months