[JNDI/Naming/Network] - Deploying EJBs with same name in different application JARs
by mauricecoyle
Hi,
We are attempting to deploy entity beans with the same name in 2 different EJB application jars on jboss 3.2.5. One bean is an extension of the other, so some of the DB columns they refer to are the same (they access different DB tables in different tablespaces). However, the field names corresponding to these DB columns in the beans themselves are different (i.e. DB column serviceid is associated with the field serviceid in one bean and service_id in the other).
We have altered jboss.xml for one of the EJB applications so that the jndi-name used to access that application's bean is different to the jndi-name used to access the entity bean in the other EJB jar.
However, when we attempt to deploy both jar files on the same jboss server, one of the applications deploys successfully and when we deploy the other, we get EJB spec violation errors, such as the following:
14:18:34,631 WARN [verifier] EJB spec violation:
Bean : CommunityAddress
Section: 10.6.2
Warning: The entity bean class must define a get accessor for each CMP field.
Info : Field: service_id
I'm presuming that this is because the bean which references the serviceid DB column with a field called serviceid is being mixed up with the other bean, which has a service_id field.
Can anyone tell me if there is anything else that is required to get entity beans/EJBs in different applications but with the same names (and some overlapping fields, etc) deployed successfully on the same jboss server apart from editing jboss.xml for one of the applications?
Is this a jbosscmp-jdbc.xml issue?
Any help much appreciated,
Maurice
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076878#4076878
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076878
18Â years, 8Â months
[JBoss jBPM] - assigning user to taskinstance, does nothing
by ricardomarques
Hi guys
I'm trying to reassign a task instance to a new user, but i can't, the information don't get saved on database, and i get no error output, i think that's some with the way that the connection to the engine is made.
I open a connection when the first JSF phase begins and ended when the JSF las phase ends.
were are some code:
Code from my Command interface implementation:
| public Object execute(JbpmContext jbpmContext) throws Exception {
|
| /* Verify if all the needed attributes are set */
| if ((this.taskInstanceId == 0) || (this.username == null))
| throw new NotSetWorkflowException("missing required command attributes!");
|
| /* updates the task instance with new actor */
| TaskInstance taskInstance = jbpmContext.getTaskInstanceForUpdate(this.taskInstanceId);
| taskInstance.setActorId(username,true);
|
| return taskInstance;
| }
|
This code is called like this:
| Command cmd = new AssignUserToTaskCommand(taskInstanceId,username);
| engine.execute(cmd); // -> this calls the command.execute()
|
my phase listenner:
| public void beforePhase(PhaseEvent phaseEvent) {
|
| if (phaseEvent.getPhaseId() == PhaseId.RESTORE_VIEW) {
| getJbpmEngine(phaseEvent).openJbpmContext();
| }
|
| }
|
| public void afterPhase(PhaseEvent phaseEvent) {
|
| if (phaseEvent.getPhaseId() == PhaseId.RENDER_RESPONSE) {
| getJbpmEngine(phaseEvent).closeJbpmContext();
| }
|
| }
|
|
Jbpm: 3.2.1
mysql 5
Jboss 4.0.5
I appreciate some feedback on this please, thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076876#4076876
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076876
18Â years, 8Â months