Issue Details (XML | Word | Printable)

Key: GLASSFISH-19863
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Mahesh Kannan
Reporter: Anissa Lam
Votes: 0
Watchers: 0
Operations

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

using REST to configure-batch-runtime always fails

Created: 13/Mar/13 10:04 PM   Updated: 15/Mar/13 01:28 AM   Resolved: 15/Mar/13 01:28 AM
Component/s: batch
Affects Version/s: 4.0_b79
Fix Version/s: 4.0_b81

Time Tracking:
Not Specified

Tags: console
Participants: Anissa Lam and Mahesh Kannan


 Description  « Hide

Calling configure-batch-runtime is giving back a status 405 FAILURE.
I believe i am passing in the correct payload and using the correct endpoint.

[#|2013-03-10T21:00:27.225-0700|SEVERE|glassfish 4.0|org.glassfish.admingui|_ThreadID=78;_ThreadName=admin-listener(1);_TimeMillis=1362974427225;_LevelValue=1000;|
RestResponse.getResponse() gives FAILURE. endpoint = 'http://localhost:4848/management/domain/configure-batch-runtime'; attrs = '{executorServiceLookupName=java:comp/DefaultManagedExecutorService, dataSourceLookupName=jdbc/__TimerPool}'|#]



Mahesh Kannan added a comment - 15/Mar/13 01:28 AM

svn commit -m "Fix for 19863: The RestEndpoint.opType should have been a POST (instead of a GET)"
Sending batch-connector/src/main/java/org/glassfish/batch/ConfigureBatchRuntime.java
Sending batch-connector/src/main/java/org/glassfish/batch/ListBatchJobExecutions.java
Sending batch-connector/src/main/java/org/glassfish/batch/ListBatchRuntimeConfiguration.java
Transmitting file data ...
Committed revision 60482.