Issue Details (XML | Word | Printable)

Key: MGP-23
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Dave Whitla
Reporter: olivier liechti
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
maven-glassfish-plugin

Trouble creating JMS resources

Created: 04/Sep/09 05:40 AM   Updated: 04/Sep/09 05:40 AM
Return to search
Issue 8 of 12 issue(s)
Component/s: None
Affects Version/s: 2.2
Fix Version/s: None


 Description  « Hide
I am not sure to understand how to create JMS resources with the plugin. I have been able to create a connectionfactory, but I have an issue with the creation of queues. In the example, the following section is provided:

Why is the queue defined relatively to a connectionfactory? The problem is that if I want to create several queues, then when I build my project the plugin ends up creating the connectionfactory several times (I don't want one factory per queue), which ends up in error.

I believe that this is because of this code (in org/glassfish/maven/plugin/CreateDomainMacro.java):

    private void createJMSDestination(ProcessBuilder processBuilder, JmsDestination jmsDestination)
            throws MojoExecutionException, MojoFailureException {
        new CreateJMSResourceCommand(sharedContext, domain, jmsDestination.getConnectionFactory()).execute(processBuilder);
        new CreateJMSDestinationCommand(sharedContext, domain, jmsDestination.getDestination()).execute(processBuilder);
        new CreateJMSResourceCommand(sharedContext, domain, jmsDestination).execute(processBuilder);
    }

Maybe I am missing something?

Cheers,

Olivier

Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.