[JBoss jBPM] - Eclipse 3.3.1.1 + jbpm-jpdl-3.2.2.zip freeze
by s.rzytki
Hello
I've just tried migrate from eclipse 3.1 to newest version of eclipse 3.3.1.1 (Europa) with the new plugin of jbpm designer (3.2.2). There is a problem with openning and saving jbpm diagrams. First opening of diagrams there is a standard conversion to the newest gpd format it's takes a lot but that could be normal. But after all every opening an closing takes 20 seconds - few minutes depends on diagram. What is the problem. I was tested it with normal eclipse version and with europa the problem is the same.
Other knonw issues:
- creating new swimlane in src devastate all diagram schema
- editing name of node on diagram shows in strange place
- where is the standard property window for node where we can easly change the name of the node
Info:
WinXP
Eclipse Europa 3.3.1.1
jbpm-jpdl-3.2.2, jbpm-jpdl-3.2.1
Thx for help
Regards
Sebastian
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131741#4131741
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131741
18 years, 1 month
[Remoting] - Can a TransporterServer generate port?
by gcollis
I want to randomly generate ports using TransporterServer. Currently I can wrap POJO's and beam them with a server with a known port number.
To get around this I am currently storing the last port used and incrementing by one, then creating a Locator, then passing it to one of the TransporterServer.create??? methods. The issue is that sooner or later I will clash on an already in use port.
OK, I can catch the exception and loop but is there a better way.
If I try and use a PORT of 0 for the port in the locator string, when passed to the a TranporterServer.create??? this should produce a server on a random port. Unfortunately I cannot find a way get the actual PORT it used and therefore cannot create a locator for the client.
Note the POJO's carry state so I need a server for each client.
Any suggestions welcome, thanks, Graeme
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131735#4131735
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131735
18 years, 1 month
[JBoss Tools (users)] - Seam Generate Entities
by nsakiya
Seam Generate Entities
I'd like this take this opportunity to thank Max Andersen and the gangs at JBossWorld for hand-on lab. I was a Seam virgin there, but learn a lot from you guys. The lab was excellent, and everything works great.
The problem I got here now is when I tried to adapt this and use my Oracle database. Using "Seam Generate Entity -> Reverse Engineer from Database" doesn't seem to work. I have like 100 tables in schema in the schema, and maybe they're causing the problem. The dialog box just sit there and got locked up after clicking Finish button. I wait for hours, but nothing changed or happened. I tried this in both Linux and Windows version, and they both seemed to stuck at the same place.
If I may, I'd also like to suggest one thing in "Reverse Engineer from Database." It would be nice if we can pick and choose which tables and their dependend tables include instead of importing the entire schema.
Thanks! :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131734#4131734
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131734
18 years, 1 month
[JBoss Portal] - Re: help needed in LDAP authentication in portal environ.
by rammy1984
first of all thanks for the response for which i was waiting ,
this is the code iam using to retrieve users from the LDAP. here i try to get the usermodule reference.
UsernamePasswordHandler handler = new UsernamePasswordHandler(userName, password.toCharArray());
LoginContext loginContext = new LoginContext("portal", handler);
loginContext.login();
Subject subject = loginContext.getSubject();
System.out.println("Subject: "+subject);
Set groups = subject.getPrincipals(Group.class);
Group roles = (Group) groups.iterator().next();
UserModule module ;
module = (UserModule) new InitialContext().lookup("java:/portal/UserModule");
am i goin in a right way ? i have configured the server for authenticating against the LDAP.
i have added the entry in joss-service.xml , and in ldap_identity-config.xml.
in login-config.xml i added the following :
<!DOCTYPE policy PUBLIC
"-//JBoss//DTD JBOSS Security Config 3.0//EN"
"http://www.jboss.org/j2ee/dtd/security_config.dtd">
<!-- For the JCR CMS -->
<application-policy name="cms">
<login-module code="org.apache.jackrabbit.core.security.SimpleLoginModule" flag="required"/>
</application-policy>
<application-policy name="portal">
<login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required">
<module-option name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</module-option>
<module-option name="java.naming.provider.url">ldap://localhost:10389/</module-option>
<module-option name="java.naming.security.authentication">simple</module-option>
<module-option name="bindDN">cn=Directory Manager</module-option>
<module-option name="bindCredential">password</module-option>
<module-option name="baseCtxDN">ou=People,dc=example,dc=com</module-option>
<module-option name="baseFilter">(uid={0})</module-option>
<module-option name="rolesCtxDN">ou=Roles,dc=example,dc=com</module-option>
<module-option name="roleFilter">(member={1})</module-option>
<module-option name="roleAttributeID">cn</module-option>
<module-option name="roleRecursion">-1</module-option>
<module-option name="searchTimeLimit">10000</module-option>
<module-option name="searchScope">SUBTREE_SCOPE</module-option>
<module-option name="allowEmptyPasswords">false</module-option>
</login-module>
<login-module code="org.jboss.portal.identity.auth.SynchronizingLoginModule" flag="optional">
<module-option name="synchronizeIdentity">true</module-option>
<module-option name="synchronizeRoles">true</module-option>
<module-option name="additionalRole">Authenticated</module-option>
<module-option name="defaultAssignedRole">User</module-option>
<module-option name="userModuleJNDIName">java:/portal/UserModule</module-option>
<module-option name="roleModuleJNDIName">java:/portal/RoleModule</module-option>
<module-option name="membershipModuleJNDIName">java:/portal/MembershipModule</module-option>
<module-option name="userProfileModuleJNDIName">java:/portal/UserProfileModule</module-option>
</login-module>
</application-policy>
can u tell me how to retrieve users stored in LDAP?
is there anything wrong iam doing? i read the jboss docs and followed them to configure LDAP.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131732#4131732
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131732
18 years, 1 month
[JBoss jBPM] - Problem with Timer, Scheduler
by sid82
I am facing a problem while trying to use the Timer and Scheduler service of jBPM.
The process definition that I am using is:-
<process-definition name='SchedulerService'>
| <start-state name='StartState'>
| <transition to='next'>
| <action class='jBPM.action.ActionClass'/>
| </transition>
| </start-state>
| <state name='next'>
| <timer name='Timer' duedate='3 seconds' repeat='1 seconds'>
| <action class='jBPM.action.ActionClass'/>
| </timer>
| <transition to='EndState'>
| </transition>
| </state>
| <end-state name='EndState'></end-state>
| </process-definition>
Within jbpm.cfg.xml, I am using 'DbSchedulerServiceFactory' :-
<jbpm-context>
| ...
| <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
| ...
| </jbpm-context>
Everything works fine with this except that no action (named ActionClass) is executed at the specified time i.e. after 3 seconds of coming onto the node named 'next'. The action is not even called once so no wonder that it never gets repeated after every 1 second.
I have used the same action while transitioning from the 'StartState' to 'next', and it gets executed when a signal is given. But the same action is not called with the Timer.
I am using Timer along with persistence, i.e. all the data goes into database. So, I create jbpmContext before using timer (which is required). Also, till the time I am at node 'next', timer data still remains in database in JBPM_JOB table but when the process instance moves forward to the next state (i.e. 'EndState') the timer gets cancelled and deleted from database, which is also correct. So, the point is that everything is working as expected but still the action specified on the timer is not getting executed at all.
If you can please find out some time and look into the issue, it will be of great help.
Thanks in Advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131731#4131731
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131731
18 years, 1 month
[EJB 3.0] - requiresnew
by Mr_Anonymous
I have a 2 methods on a session bean:
1. void sendEmail(SomeEmailBean) # marked as REQUIRED
2. void saveFailedEmailToDatabase(SomeEmailBean) # REQUIRESNEW
I want the first method to call the second internally when the email fails (ex: SMTP server down). So I have:
try { // code to send email
}
catch (Exception e) {
// lookup remote interface to EmailServiceBean (using remote on purpose to try to force the REQUIRESNEW)
// call saveFailedEmailToDatabase method on the remote interface
// throw a runtime exception at this point in case we are part of a larger transaction so it will rollback
}
.. now I have debug code in the saveFailedEmailToDatabase method, so I see it getting called from the catch block and I see it trying to write data to the database (I use db generated sequence #s and I see those getting populated after the db calls). *But* when I actually look at the database the table is empty (which makes it look like the call on the remote interface is getting tied to the current transaction so it is rolling back). Has anyone seen anything like this? FYI: I'm on JBoss 4.2.1.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131730#4131730
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131730
18 years, 1 month